The fastest way: use a computer and your Apple ID

If you have access to another computer or device, you can unlock your iPhone through iCloud or by connecting to a Mac or Windows PC. This method works whether you forgot your screen lock password, your Apple ID password, or both — though you will need to know your Apple ID email address and password to complete it.

The process erases your iPhone and sets it up fresh, so you will lose any data that was not backed up to iCloud. If you have a recent backup, you can restore from it after unlocking. This is the route most people take because it does not require a trip to an Apple Store and works from home.

Key Takeaways

  • Using iCloud on another device is the fastest method and works from home, but it erases your iPhone unless you have a backup to restore from.
  • You will need your Apple ID email address and password, not your iPhone password, to unlock through iCloud.
  • If you do not have access to another device or do not remember your Apple ID password, you can visit an Apple Store with proof of ownership and they will help you unlock it.
  • Recovery Mode on a connected computer is an alternative if you have a Mac or Windows PC but no access to iCloud.
  • Do not attempt to guess your password repeatedly — after too many wrong attempts, your iPhone will lock you out for increasingly long periods.

Unlocking through iCloud on another device

Go to iCloud.com on any web browser from a computer, tablet, or another phone. Sign in with your Apple ID email and password. Click the Find My app icon (it looks like a radar or target), then select Find My iPhone from the menu.

Choose your locked iPhone from the list of devices. Click "Erase iPhone" — this will wipe the device and remove the password. Once the erase completes, your iPhone will show the setup screen. You can then set a new password and restore your data from an iCloud backup if one exists.

This method works even if your iPhone is offline at the moment you start the erase. The erase will complete the next time your phone connects to the internet. The whole process usually takes 10 to 30 minutes once your phone is online.

Using Recovery Mode if you have a computer

If you have a Mac or Windows PC, you can connect your iPhone with a USB cable and use Recovery Mode to unlock it. This method also erases your iPhone but does not require iCloud access — only a computer with iTunes or Finder installed.

On a Mac, open Finder and plug in your iPhone. Select your phone from the sidebar, then click "Restore." On Windows, open iTunes, plug in your iPhone, click the device icon, and select "Restore iPhone." Both will read the latest iOS software and reinstall it on your phone, erasing the password in the process.

After the restore completes, your iPhone will restart and show the setup screen. You will then create a new password and can restore from a backup. This takes 20 to 45 minutes depending on your internet speed and which iPhone model you have.

What to do if you do not remember your Apple ID password

You will need to reset your Apple ID password before you can use iCloud to unlock your iPhone. Go to iforgot.apple.com on any device, enter your Apple ID email address, and follow the steps to verify your identity. Apple will ask you to confirm your identity through a trusted phone number, a trusted device, or security questions you set up previously.

Once you have reset your Apple ID password, return to iCloud.com and sign in with your new password. Then follow the steps above to erase and unlock your iPhone. This adds 10 to 20 minutes to the process but is still faster than visiting a store.

Visiting an Apple Store if you cannot use other methods

If you do not have access to another device, do not remember your Apple ID email or password, or prefer in-person help, you can visit an Apple Store. Bring a photo ID and proof that you own the iPhone — a receipt, credit card statement, or the original box with your name on it.

The staff will verify your ownership and then unlock your iPhone using their tools. This process takes 15 to 30 minutes. You will leave with an unlocked phone that you can set up with a new password and restore from backup. There is no charge for this service.

Call ahead to your nearest Apple Store and ask about wait times. Many locations now require an appointment, and walk-ins may have a long wait during busy hours.

Avoiding this problem in the future

Write down your Apple ID email and password and store it somewhere safe — a password manager, a locked drawer, or a trusted family member. Your Apple ID is the key to unlocking your iPhone, so losing access to it is more serious than forgetting your screen password.

Turn on iCloud backups in Settings > [Your Name] > iCloud > iCloud Backup. This way, if you ever need to erase your iPhone to unlock it, you can restore all your photos, messages, and app data afterward. Backups happen automatically when your phone is plugged in and connected to Wi-Fi overnight.

If you use Face ID or Touch ID, enable both on your iPhone. These biometric methods are harder to forget than a typed password, and you can still use them even if you forget your screen password — you just cannot change settings without it.

What happens if you keep guessing wrong

After six wrong password attempts, your iPhone will disable for 1 minute. After the tenth wrong attempt, it disables for 5 minutes. After the fifteenth wrong attempt, it disables for 60 minutes or longer. If you reach the limit, you cannot guess anymore — you must use one of the methods above (iCloud, Recovery Mode, or Apple Store) to unlock it.

This is why the methods in this guide exist: they are the only way forward once you have exhausted your guesses. Do not waste your attempts. If you are not confident in your password, go straight to iCloud or a computer instead.

Frequently Asked Questions

Can I unlock my iPhone without erasing it?

Not if you have forgotten your password. Any method that unlocks your iPhone without the correct password will erase it as a security measure. This is intentional — it prevents someone else from accessing your phone if they steal it. If you have a backup, you can restore your data after unlocking.

What if my iPhone is not connected to Wi-Fi?

If you erase it through iCloud, the erase will happen the next time your iPhone connects to the internet — you do not need to wait. If you use Recovery Mode with a computer, your phone does not need Wi-Fi; the computer handles everything. Either way, you will need internet eventually to restore from backup or read apps.

Do I need to pay Apple to unlock my iPhone?

No. iCloud and Recovery Mode are free. If you visit an Apple Store, there is no charge for unlocking your phone. You only pay if you need hardware repairs, which is not the case here.

Can I unlock my iPhone if I do not have the original receipt?

Yes, if you have iCloud access or a computer. You only need proof of ownership if you visit an Apple Store in person. A credit card statement showing the purchase, a photo of the box with your name, or even a statement from your carrier can work as proof.

What if I forgot my password and my Apple ID password at the same time?

Reset your Apple ID password first at iforgot.apple.com using a trusted phone number or security questions. Once you have access to your Apple ID again, use iCloud to unlock your iPhone. If you cannot reset your Apple ID password, visit an Apple Store with proof of ownership and they will help you.