How Does Apple Face ID Work? Explained Simply (2026)

A person unlocking an iPhone with Face ID in soft natural light

How Does Apple Face ID Work? Explained Simply (2026)

A person unlocking an iPhone with Face ID in soft natural light

How does Face ID work explained simply? When you look at your iPhone, the TrueDepth camera projects thousands of invisible infrared dots onto your face, builds a depth map of its shape, and compares that map with the one stored in the Secure Enclave. If they match, the phone unlocks.

The whole process takes a fraction of a second, and it works in the dark, because the system uses infrared light rather than the visible light your eyes need. Your face data never leaves the phone, and it is never sent to Apple or stored in the cloud.

This guide explains the TrueDepth camera, the Secure Enclave, how Face ID compares with Touch ID, and the limits you should know about, including masks, sunglasses, and twins, plus fixes for when Face ID stops working.

The Short Answer

Face ID maps your face in three dimensions. A dot projector casts more than 30,000 invisible infrared dots onto your face, an infrared camera reads the pattern, and the flood illuminator lights your face so the system works in darkness.

The phone turns that pattern into a mathematical model and compares it with the model stored at setup.

The comparison happens in the Secure Enclave, a separate chip that holds your face data encrypted. The main processor never sees the raw face map, which is why Apple says the data cannot be extracted, even if the phone is stolen.

A close-up of an iPhone showing the lock screen with a face icon
Key Takeaways

  • Face ID uses the TrueDepth camera to project 30,000 infrared dots and build a 3D depth map of your face.
  • The face map is stored and matched in the Secure Enclave, a separate encrypted chip, and never leaves your iPhone.
  • Face ID works in the dark and with glasses, hats, and most beards, because it maps bone structure, not surface detail.
  • It struggles with masks unless Face ID with a Mask is enabled, and it can be fooled by identical twins.
  • Apple says the chance of a random person unlocking your phone with Face ID is about 1 in 1,000,000, versus 1 in 50,000 for Touch ID.

The TrueDepth Camera: How It Sees Your Face

The TrueDepth camera sits in the notch or Dynamic Island at the top of your iPhone. It has four parts that work together: a flood illuminator, a dot projector, an infrared camera, and a front camera.

When you glance at the phone, the flood illuminator bathes your face in infrared light, so the system can see you in a dark room.

The dot projector then casts its pattern of more than 30,000 dots, and the infrared camera reads how the dots deform across the curves of your face. The phone turns that deformation into a depth map, a three-dimensional model of your cheekbones, nose, eyes, and jaw.

From Depth Map to Mathematical Model

The depth map is not a photograph. It is a set of measurements, which the phone converts into a mathematical model of your face. That model is what gets stored, and it is what future scans are compared against.

The model adapts over time. If you grow a beard, put on glasses, or age, Face ID updates the model with each successful unlock, so it keeps working as your face changes. That learning is local, and it happens on the device, not in the cloud.

Hands holding an iPhone at arm's length while setting up Face ID
The Secure Enclave: Where Your Face Data Lives

The Secure Enclave is a separate coprocessor inside the iPhone’s chip, with its own encrypted memory. Your face model lives there, and the matching happens there too. The main processor asks the Enclave whether the face matches, and the Enclave answers yes or no, without revealing the model.

That design is the main security answer to the obvious question: what if someone steals my face? The face data never leaves the phone, it is never backed up to iCloud, and Apple says it cannot be extracted, even with physical access to the chip.

Face ID also checks attention. By default, it requires your eyes to be open and looking at the phone, so it will not unlock while you are asleep or looking away. You can turn attention awareness off in Settings, but that makes the phone easier to unlock without your cooperation.

Face ID vs Touch ID

Touch ID reads your fingerprint, while Face ID reads the shape of your face. Both are convenient, and both are more secure than a passcode alone, but they fail differently. Touch ID fails with wet hands, gloves, or a damaged sensor. Face ID fails with a mask, dark sunglasses, or a face it cannot see.

Apple’s published odds favour Face ID. The company says the chance of a random person unlocking your phone is about 1 in 1,000,000 with Face ID, against 1 in 50,000 with Touch ID. Those are estimates from Apple’s own testing, not independent measurements, and they assume a single enrolled face.

FeatureFace IDTouch ID
What it reads3D face depth mapFingerprint pattern
Works in the darkYes, infraredYes
Fails withMasks, some sunglassesWet hands, gloves
Random unlock odds (Apple)1 in 1,000,0001 in 50,000
Attention checkYes, eyes openNo
SpeedUnder a secondUnder a second
Available oniPhone X and later, iPad ProOlder iPhones, iPad, Mac

The table shows that neither system is strictly better. Face ID is more convenient when your hands are full or dirty, and Touch ID is more reliable when your face is covered. Many people use both, on different devices, without thinking about it.

Limits: Masks, Sunglasses, and Twins

Masks are the best-known limit. Face ID was designed to see the whole face, and a mask hides the nose and mouth, which are key parts of the model.

Apple added Face ID with a Mask, which uses the area around your eyes, and it works well for most people, though it is less accurate than full Face ID.

Sunglasses are a mixed case. Most sunglasses work fine, because Face ID maps the shape of the face rather than the eyes, but dark lenses that block infrared light can confuse it. If Face ID fails with sunglasses, try lifting them, or turn off the attention requirement, which removes the eyes-open check.

Identical twins are the hardest case. Face ID can struggle to tell identical twins apart, because their bone structure is so similar. Apple warns about this at setup, and if you have an identical twin, a passcode is the safer choice for sensitive apps.

When Face ID Stops Working: Fixes That Work

Most Face ID failures have a simple cause. The TrueDepth camera is dirty, the case is covering the sensors, or the phone needs a restart. Clean the top of the screen with a soft cloth, remove the case, and try again before you change any settings.

If it still fails, check that Face ID is turned on for the feature you need. Go to Settings, then Face ID and Passcode, and confirm that iPhone Unlock, and any other toggles you need, are on. A software update sometimes resets these, so it is worth checking after an update.

As a last step, reset Face ID and set it up again. Go to Settings, then Face ID and Passcode, tap Reset Face ID, and follow the setup, holding the phone 25 to 50 centimetres from your face in good light.

If the camera hardware is damaged, the phone will show a Face ID is not available message, and the sensor needs repair.

Face ID Security Checklist

Use this checklist to get the most security from Face ID.

  1. Keep Require Attention for Face ID turned on, so the phone needs your eyes open.
  2. Enrol only your own face, and do not add an alternate appearance for someone else.
  3. Use Face ID with a Mask only when you need it, because it is less accurate.
  4. Set a strong alphanumeric passcode as the fallback, because Face ID always falls back to it.
  5. Turn on Erase Data after ten failed passcode attempts if you want the strongest protection.
  6. If you have an identical twin, use a passcode for banking and sensitive apps.

The checklist works because Face ID is only as strong as its fallback. A weak passcode undermines the whole system, since anyone who guesses it can bypass Face ID entirely.

Frequently Asked Questions

How does Face ID work?

Face ID uses the TrueDepth camera to project more than 30,000 infrared dots onto your face, building a 3D depth map. The phone compares that map with the model stored in the Secure Enclave, and unlocks if they match. The process takes a fraction of a second and works in the dark.

Is Face ID secure?

Yes, for most people. Your face data is stored and matched in the Secure Enclave, it never leaves the phone, and Apple says the chance of a random person unlocking your phone is about 1 in 1,000,000. The main risks are an identical twin, or a weak passcode that bypasses Face ID.

Does Face ID work with a mask?

Yes, with Face ID with a Mask enabled, which uses the area around your eyes. It works well for most people, though it is less accurate than full Face ID. You can enable it in Settings, then Face ID and Passcode, then Face ID with a Mask.

Can Face ID be fooled by a photo?

No. Face ID builds a three-dimensional depth map, so a flat photo cannot match it. The system also checks for attention and liveness, which is why a printed photo or a video on another screen will not unlock the phone.

Does Face ID work in the dark?

Yes. The TrueDepth camera uses infrared light, which the human eye cannot see, so it works in complete darkness. The flood illuminator lights your face in infrared, and the dot projector and infrared camera do the rest, without any visible light.

Why is Face ID not working on my iPhone?

Clean the TrueDepth camera area, remove the case, and restart the phone. Then check Settings, Face ID and Passcode, to confirm the feature is enabled. If it still fails, reset Face ID and set it up again. A persistent Face ID is not available message usually means the sensor needs repair.

Is Face ID better than Touch ID?

Face ID has better published odds against a random stranger, and it works when your hands are wet or gloved. Touch ID works when your face is covered, and it is available on more devices. Neither is strictly better, and the right choice depends on how you use your phone.

Conclusion

Face ID works by mapping your face in three dimensions with infrared light, then comparing that map with a model locked inside the Secure Enclave. It is fast, it works in the dark, and your face data never leaves the phone, which is the design that makes it trustworthy.

The limits are honest ones: masks, dark sunglasses, and identical twins. Know them, keep a strong passcode as the fallback, and Face ID will do its job quietly, unlocking your phone hundreds of times a day without you ever thinking about it.

For more on iPhone security and cameras, see our guides to locking apps with Face ID, the best iPhone 17 Pro Max cases, the best iPhone camera, and which iPhone has the best camera.

on this page