Skip to main content

iPhone (iOS) · Privacy & Security

Set Up Face ID and Passcode on iPhone

Face ID (or Touch ID) and Passcode settings control how you unlock your iPhone, authorize purchases, and protect sensitive data with biometric or code-based security.

How to open Face ID & Passcode

  1. Open Settings → Face ID & Passcode.
  2. Enter your current passcode.
  3. Tap 'Set Up Face ID' and follow the on-screen motion prompts.
  4. Choose which features should use Face ID.

What you should know

  • You can register multiple Face ID appearances or fingerprints for more reliable recognition.
  • A passcode is always required as a backup to Face ID or Touch ID.
  • You can choose which features require Face ID: unlocking, Apple Pay, App Store purchases, and more.
  • Erase Data can be turned on to wipe the device after 10 failed passcode attempts.

If you forget your passcode, you may need to erase your device to regain access — always keep a way to recover your Apple Account.

Why it matters

Face ID and your passcode are the single point of failure protecting everything else on your iPhone — messages, banking apps, saved passwords, and photos are all only as secure as this setting. Because a passcode is always required as a fallback, weak or simple passcodes undermine even a well-configured Face ID setup. This is also the setting that determines what happens after failed unlock attempts, making it central to what happens if your phone is lost or stolen.

Best practices

  • Use a 6-digit or custom alphanumeric passcode instead of a 4-digit one, since it's dramatically harder to guess or shoulder-surf.
  • Register an Alternate Appearance in Face ID if you regularly wear glasses, a hat, or have facial hair changes, to reduce failed unlock attempts.
  • Enable Face ID for App Store purchases and Apple Pay to avoid separately re-entering passwords for those actions.
  • Turn on 'Erase Data After 10 Failed Attempts' only if you're confident about your backup situation, since it's irreversible once triggered.

Common problems and fixes

Face ID stops recognizing your face after wearing a mask or new glasses
Add an Alternate Appearance in Settings → Face ID & Passcode → 'Set Up an Alternate Appearance' rather than resetting Face ID entirely.
iPhone keeps asking for the passcode instead of using Face ID
This happens after a restart, after 48 hours of no unlock, or after several failed Face ID attempts — all are intentional security fallbacks, not a bug.
Forgot the passcode and can't get back in
Use 'Erase iPhone' from the passcode entry screen (after enough failed attempts) or connect to a computer in recovery mode, then restore from your most recent iCloud or computer backup.
Face ID setup fails repeatedly during the initial scan
Make sure nothing (a screen protector edge, dirt, or a case) is blocking the TrueDepth camera area, and try setup again in better lighting.

Tips and tricks

  • Double-clicking the side button at the Lock Screen brings up Apple Pay directly, using Face ID for authentication without unlocking the whole phone first.
  • You can disable the 'attention-aware' requirement under Accessibility settings if you find the deliberate-glance requirement for Face ID inconvenient or inaccessible.
  • Set up Face ID indoors under normal lighting rather than in very bright sunlight or complete darkness for the most reliable initial scan.

Frequently asked questions

Is Face ID or a strong passcode more secure?

They work together — Face ID is convenient for daily unlocking, but the passcode remains the ultimate fallback and is what protects the device if Face ID fails or is disabled, so both need to be strong.

Can someone unlock my phone by holding it up to my face while I'm asleep?

Face ID includes attention awareness that checks your eyes are open and directed at the device by default, which makes this much harder, though you can require a more deliberate look for extra protection.

What happens if I enter the wrong passcode too many times?

After several failed attempts iOS adds increasing time delays between tries, and if 'Erase Data' is enabled, the device wipes itself entirely after 10 consecutive failures.

Does Face ID work with sunglasses on?

Face ID can work with many sunglasses since it uses infrared, not just visible light, but very dark or infrared-blocking lenses may prevent recognition.

More Privacy & Security guides for iPhone (iOS)

See every iPhone (iOS) guide