Text size
All guides

Home › iPhone help

Forgot your iPhone passcode?

Short answer: if you changed your passcode in the last 72 hours, tap Forgot Passcode? and use your old one. Otherwise you'll need to erase and reset the iPhone, then restore from a backup. For a forgotten Apple Account password, go to iforgot.apple.com, or reset it on a trusted device.

Checked against official help pages, October 2026

Quick answers

Will I lose my photos?

Resetting erases the iPhone. You get your photos and data back only if they were in a backup, like iCloud.

Can Apple unlock it for me?

No. Apple's own steps are to reset the iPhone. Be wary of anyone selling an unlock service.

I just changed my passcode and forgot it.

For 72 hours after a change, you can tap Forgot Passcode? and enter your old passcode.

I forgot my Apple Account password.

On a trusted iPhone: Settings > your name > Sign-In & Security > Change Password. Or go to iforgot.apple.com.

Forgot the iPhone passcode: reset on the phone

This page is about the passcode that unlocks the iPhone. If the phone is in Assistive Access and it's that mode's own passcode you forgot, see how to turn off Senior Mode on iPhone.

You need Wi-Fi or mobile data, Find My turned on, and your Apple Account password.

  1. Keep trying the passcode until iPhone Unavailable or Security Lockout appears.
  2. Tap Forgot Passcode? If you changed it in the last 72 hours, you can enter the old one here.
  3. Otherwise tap Start iPhone Reset.
  4. Enter your Apple Account password.
  5. Tap Erase iPhone. This deletes everything on it.
  6. When it restarts, follow the steps to set it up and restore from your backup.

No Forgot Passcode? button: use a computer

You'll need a Mac or Windows PC, a charging cable, and up to an hour. This also erases the iPhone.

  1. Turn the iPhone off.
  2. Connect it to the computer and hold the side button (iPhone 8 or newer) until you see a computer-and-cable picture. This is recovery mode.
  3. On the computer, choose Restore and follow the steps.
Tip

Stuck at any step? Apple Support or an Apple Store can help.

Forgot your Apple Account password

  1. On a trusted iPhone: open Settings, tap your name, then Sign-In & Security > Change Password.
  2. No trusted device? Go to iforgot.apple.com on any computer or phone.
  3. If you can't verify who you are, Apple offers account recovery. It can take a few days, on purpose, to keep thieves out.

Get the free printable pack

The scam texts list, the phone setup checklist and an emergency contact card, in large print, ready to stick on the fridge.

Three real pages from the pack: the scam texts list, the phone setup checklist and the emergency contact card.
Real pages from the pack (5 pages, letter size).

Get the free pack by email

Enter your email on our free newsletter page (run on Beehiiv) and we'll email you the pack right away. Unsubscribe any time.

Where this comes from

We checked these official pages on October 27, 2026:

Menus can change after updates. If a step doesn't match your screen, tell us and we'll fix it.