How Does Face ID Work?

You glance at your iPhone and it unlocks, in the dark, with glasses, as your beard grows. But a photo of you won't work.

That's because Face ID doesn't look at a picture of your face. It measures the 3D shape of your face with invisible light, turns it into numbers inside a locked-down chip, and never sends your face anywhere.

Here's how it works, using what Apple documents in its official Platform Security guide.


🎯 Quick Answer (30-Second Read)

  • TrueDepth camera: projects thousands of invisible infrared dots onto your face to build a 3D depth map, plus an infrared image.
  • Works in the dark: infrared light doesn't need room lighting.
  • Secure Enclave: a separate secure processor turns the depth map and image into a mathematical representation and compares it with your enrolled one.
  • What's stored: that mathematical representation, encrypted, on the device. Not a photo, and not sent to Apple.
  • Odds: Apple puts the chance a random person could unlock your phone at less than 1 in 1,000,000 (with a single enrolled appearance).

Face ID by the Numbers

<1 in 1M
chance a random person unlocks it
5
failed attempts before passcode required
0
face data sent to Apple's servers

Step by Step: What Happens When You Look at Your iPhone

sequenceDiagram participant F as Your face participant T as TrueDepth camera participant SE as Secure Enclave participant OS as iOS T->>F: Flood illuminator + dot projector (infrared) F-->>T: Infrared image + dot pattern T->>SE: Depth map + IR image SE->>SE: Convert to mathematical representation SE->>SE: Compare with enrolled face data SE-->>OS: Match: yes / no (never the face data) OS->>OS: Unlock or ask for passcode
  1. Attention check (optional, on by default): Face ID checks that your eyes are open and looking at the phone, so it won't unlock while you're asleep.
  2. Infrared capture: a flood illuminator lights your face with infrared light, and a dot projector casts thousands of invisible dots. An infrared camera reads how those dots land.
  3. Depth map: the dot pattern reveals the 3D shape of your face: the curve of your nose, the depth of your eye sockets.
  4. Secure Enclave math: a part of the neural engine protected inside the Secure Enclave converts the data into a mathematical representation and compares it with your enrolled face.
  5. Yes or no: iOS only ever receives "match" or "no match". It never gets your face data.

Why a Photo Can't Fool Face ID

A photo is flat. Face ID measures depth, so a printed or on-screen photo has none of the 3D shape it expects. Apple also states that Face ID includes protection against spoofing with photos and masks.

Watch out: the odds are different for twins, siblings who look alike, and children under 13, whose facial features may not have fully developed. Apple recommends a passcode in those cases.

What Apple Actually Stores

Stored Not stored
A mathematical representation of your face, encrypted with a key only the Secure Enclave can use A photo of your face
On your device only Anything on Apple's servers or in iCloud backups

Apps that use Face ID (like banking apps) never see your face data. They only get a yes/no answer from iOS.


How Face ID Keeps Up as You Change

Your face changes: beards, glasses, makeup, ageing. Face ID updates its stored representation over time after successful matches, so it keeps working. If a match is close but not certain and you then enter your passcode, it can use that data to learn the new look.


When Face ID Asks for Your Passcode

Face ID requires your passcode when, for example:

  • the device has just restarted
  • it hasn't been unlocked for more than 48 hours
  • there have been 5 unsuccessful Face ID attempts
  • you've triggered Emergency SOS or a power-off/SOS prompt

These rules stop someone who has your phone from simply trying again and again.


Frequently Asked Questions

Does Face ID store a picture of my face?

No. According to Apple, Face ID stores a mathematical representation of your face, encrypted with a key that only the Secure Enclave can access. It stays on your device and isn't sent to Apple or included in backups.

Why does Face ID work in the dark?

Face ID uses infrared light that it produces itself (a flood illuminator and a dot projector), so it doesn't depend on room lighting. The infrared camera reads the reflected light even in complete darkness.

Is Face ID more secure than a fingerprint?

Apple's published figures put the chance of a random person unlocking with Face ID at less than 1 in 1,000,000. For Touch ID, Apple cites 1 in 50,000 for a single enrolled finger. The odds are different for twins and young children, where a passcode is safer.


Conclusion

Face ID works by measuring the 3D shape of your face with invisible infrared dots, turning that into a mathematical representation inside the Secure Enclave, and comparing it with your enrolled data. Only a yes/no answer ever leaves the secure chip. Your face is never stored as a photo or sent to Apple.


Sources

Last verified: 14 October 2026.


Related reads: How WhatsApp Works at Scale · How Does UPI Work? · Load Balancer Explained

I explain the tech behind everyday products. Follow on LinkedIn or X, or invite me to speak.