Quick answer: back up, make sure you know your Apple Account or Google/Samsung account password, then use the reset option in settings. If you’re selling the phone, sign out of your accounts first so the next owner isn’t locked out.
A factory reset permanently erases everything on the phone. Check your backup has finished before you start.
Before you reset
- Back up – how to back up your phone.
- Check you know your passwords. After a reset you’ll need your Apple Account or Google account password to set the phone up again.
- WhatsApp: run a chat backup in WhatsApp → Settings → Chats → Chat backup.
- Two-factor apps: move authenticator codes (bank, email, work) to your new set-up or note the recovery codes.
- Unpair a smartwatch if you have one.
How to reset
iPhone
Settings → General → Transfer or Reset iPhone → Erase All Content and Settings. Enter your passcode and Apple Account password.
Samsung
Settings → General management → Reset → Factory data reset.
Google Pixel
Settings → System → Reset options → Erase all data (factory reset).
Selling or giving it away?
Android phones have Factory Reset Protection and iPhones have Activation Lock. If you reset without removing your account, the next person can’t use the phone. Read getting your phone ready to sell for the full checklist.
After the reset
If you reset to fix a problem, try setting the phone up as new and adding apps one by one, rather than restoring everything – that way you don’t restore the problem too.

Explained
Fix it yourself
Fix it yourself