Factory reset is the nuclear option when you cannot unlock your phone
A factory reset erases everything on your phone — all photos, messages, apps, and settings — and returns it to the state it left the factory. It is the most reliable way to regain access when you have forgotten the password, but it is also permanent and cannot be undone. Before you start, understand that you will lose all data stored only on the phone itself, though data backed up to cloud services (like Google Drive, iCloud, or OneDrive) can be restored afterward.
The reset process differs depending on whether you know your Google account password (Android) or Apple ID password (iPhone). If you do not know either one, the phone becomes much harder to access, and you may need to contact the manufacturer or visit a carrier store with proof of purchase.
Key Takeaways
- A factory reset wipes your phone completely and cannot be reversed, so back up important data to cloud storage before you start if possible.
- Android phones require your Google account password after the reset to set up again, so you must know or recover that password first.
- iPhones require your Apple ID password after the reset, and Apple's security system will lock you out if you cannot provide it.
- If you do not know your Google or Apple password, use the account recovery process on Google.com or Apple.com before attempting a factory reset.
- Resetting through Settings is faster than using hardware buttons, but hardware button resets work even if the phone will not turn on or respond to touch.
Resetting an Android phone through Settings
If your Android phone still powers on and you can navigate the lock screen, the fastest route is through Settings. Open Settings, scroll down to find System or About Phone (the exact name varies by manufacturer), and look for Reset or Factory Reset. Tap it, then confirm that you want to erase all data. The phone will restart and ask you to sign in with your Google account.
This is where knowing your Google password becomes critical. The phone will not complete setup without it — this is a security feature to prevent theft. If you do not remember your Google password, go to Google.com, click "Sign in," then click "Forgot password?" and follow the recovery steps before you reset the phone. Recovery usually involves confirming your phone number or a backup email address.
The reset itself takes 5 to 15 minutes depending on how much data is on the phone. Do not turn off the phone during this time.
Resetting an Android phone using hardware buttons
If your phone will not turn on, will not respond to touch, or you cannot reach Settings, use the hardware button method. Power off the phone completely. Then press and hold the Volume Down button and the Power button at the same time for 10 to 15 seconds until a menu appears. This menu is called Recovery Mode.
Use the Volume buttons to highlight "Wipe data / factory reset" or "Format data / factory reset" (wording varies), then press the Power button to select it. Confirm the action when prompted. The phone will erase all data and restart. This process takes longer than the Settings method — sometimes 20 to 30 minutes — and the screen may appear frozen during parts of it. Let it finish without interruption.
After the reset completes, the phone will ask for your Google account password just as it does with the Settings method. If you do not have it, the phone will remain locked.
Resetting an iPhone through Settings
On an iPhone, open Settings, tap General, scroll to the bottom, and tap Transfer or Reset. Then tap Erase All Content and Settings. The phone will ask you to confirm and may ask for your Apple ID password as a security check. If you know your Apple ID password, enter it and proceed. The reset takes 5 to 10 minutes.
After the reset, the phone will ask you to sign in with your Apple ID during setup. This is mandatory — iPhones will not complete setup without it. If you do not know your Apple ID password, you must recover it before resetting. Go to iforgot.apple.com, enter your Apple ID email address, and follow the recovery steps, which usually involve confirming your identity through a trusted phone number or email address.
Resetting an iPhone using hardware buttons
If your iPhone will not respond or you cannot reach Settings, use the hardware button method. The exact steps depend on your iPhone model. For iPhone X and newer, press and release the Volume Up button, press and release the Volume Down button, then press and hold the Side button until the power-off screen appears. Do not release — keep holding until the recovery screen shows up (this takes about 15 seconds).
For iPhone 8 and earlier, press and hold the Top (or Side) button and the Volume Down button together until the recovery screen appears. Once the recovery screen is visible, you will see options including "Restore" and "Update." Tap Restore to erase the phone and reinstall the operating system. This process takes 15 to 30 minutes and requires an internet connection.
After the reset completes, the phone will ask for your Apple ID password. Without it, the phone will remain locked to your account.
What to do if you do not know your account password
If you cannot remember your Google or Apple password, you must recover it before the factory reset will help you. For Google accounts, go to accounts.google.com/signin/recovery on any computer or another phone. Enter your email address, then follow the prompts to verify your identity. Google will ask you to enter the last password you remember, or to confirm a recovery email address or phone number. Recovery usually takes a few minutes to a few hours.
For Apple accounts, go to iforgot.apple.com on any device. Enter your Apple ID email, then choose to verify your identity using a trusted phone number, a recovery key, or a trusted device. Apple's process is similar to Google's but may take longer if you do not have access to your recovery methods. If you cannot recover your account through these methods, you will need to contact Apple Support or Google Support with proof that you own the account.
Some carriers and phone manufacturers offer additional recovery options if you have proof of purchase. Visit your carrier's website or the manufacturer's support page to see what documentation they require.
Restoring your data after a factory reset
After the reset completes and you sign in with your account, the phone will offer to restore your data from a backup. If you backed up your phone to Google Drive (Android) or iCloud (iPhone) before you forgot the password, your photos, contacts, messages, and most apps will be restored automatically. This process takes 30 minutes to several hours depending on how much data you have and your internet speed.
If you did not back up your data, anything stored only on the phone is permanently gone. This is why backing up regularly — at least once a month — is important. Going forward, enable automatic backups in your phone's settings so you do not lose data if this happens again.
Frequently Asked Questions
Will a factory reset remove the password?
Yes, a factory reset removes the lock screen password completely. However, it also erases all your data and requires you to sign in with your Google or Apple account afterward. The phone will not be fully usable until you provide that account password.
Can I reset my phone without losing photos and messages?
Only if you backed them up to cloud storage before you forgot the password. If your photos and messages are backed up to Google Drive, iCloud, OneDrive, or another cloud service, they will be restored after you sign in. If they are stored only on the phone, they will be permanently deleted.
What if I do not have access to my Google or Apple account?
Contact Google Support or Apple Support with proof that you own the account, such as a receipt or ID matching the account email. They can help you recover access. If you cannot prove ownership, the phone may remain locked permanently as a theft-prevention measure.
How long does a factory reset take?
A reset through Settings usually takes 5 to 15 minutes. A reset using hardware buttons takes 20 to 30 minutes. An iPhone restore using hardware buttons can take 15 to 30 minutes. Do not turn off the phone during any of these processes.
Can I undo a factory reset?
No, a factory reset cannot be undone. All data stored only on the phone is permanently deleted. This is why it is important to back up your phone regularly to cloud storage.