How does a phone recognize your face?

Kohaku
KohakuJust look at your phone and the lock slides open. What exactly is it looking at?
The answer in 30 seconds
KohakuIt is actually measuring the shape of your face with invisible light.

Apple's Face ID shines thousands of invisible dots of light onto your face to make a "depth map" of its bumps and curves. It turns this into a mathematical form and compares it with the face data you saved, unlocking only when it decides you are the same person.

Kohaku
KohakuNow, let’s look at it in more detail.
Many dots of light projected from an iPhone
Dots of light projected from an iPhone (top center) by the Face ID system.Photo: Phiarc / CC BY-SA 4.0 / Wikimedia Commons

Measuring your face with invisible dots

Different phones do face unlock in different ways, so here we look at how Apple explains its Face ID. The TrueDepth camera shines thousands of invisible infrared dots onto your face. From how those dots land, it builds a "depth map" that shows the bumps and dips of your face, the high parts and the low parts. At the same time, it takes an infrared picture of your face.

Turning your face into math and comparing

The depth map and the infrared picture are turned into a mathematical representation inside a specially protected part of the phone called the Secure Enclave. This is then compared with the face data you saved when you set it up, which is also stored as a mathematical representation. Computing systems called neural networks are used for jobs such as this matching.

Figure: How Face ID unlocks a phone
A phone shines dots of light on a head shape, compares the depth map with saved data, and the lock opens
  1. 1A phone projecting invisible dots of light
  2. 2A head shape covered with the dot pattern
  3. 3The measured depth map of the face's bumps and dips
  4. 4The face data saved in advance
  5. 5The lock opening when it's judged to be the same person

Why photos can't easily fool it

Face ID always needs depth information. A printed photo or a photo shown on a screen is flat and has no depth, so on its own it can't unlock the phone. Face ID also checks whether your eyes are open. It is built to adjust automatically to changes in how you look, such as wearing makeup or growing facial hair, and it is designed to work even in total darkness.

Kohaku
KohakuHard to fool with a flat photo. Isn't that a clever design?

Twins and look-alike siblings, take care

According to Apple, the chance that a random person could unlock your phone is less than 1 in 1,000,000 when one appearance is saved. But that chance is higher for twins, brothers and sisters who look like you, and children under the age of 13. After 5 failed face matches in a row, you have to type your passcode. Apple says your face data does not leave the phone and is not backed up to iCloud or anywhere else.

Figure: The chance someone else unlocks it
Chance a random personunder 1 in 1,000,000(one appearance saved)Higher chance fortwinslook-alike siblingschildren under 13

Based on Apple's explanation.

Want to know more?

  • Google says face unlock on Pixel phones also keeps your face model on the phone, and that someone who looks a lot like you, such as an identical sibling, might be able to unlock it.
  • On Pixel phones, face unlock might not work when there isn't enough light, or when you wear a face covering or sunglasses.
  • Face ID is built to work with hats, glasses and many sunglasses, but after a big change, such as shaving off a full beard, it checks that it's you with your passcode.
Kohaku
KohakuInvisible dots measure depth, and the result is turned into math and compared. That is how face unlock works. Twins and look-alike siblings, please take a little care.

Quick quiz: test yourself

KohakuRemember what you just read? Give it a try!

What does Face ID use to measure the shape of your face?

Show the answer
  1. The colors in a photo of your face
  2. Invisible dots of light
  3. The temperature of your face

Invisible dots of light It shines thousands of invisible infrared dots onto your face and builds a depth map of its bumps and curves from how the dots land.

Sources
  1. About Face ID advanced technologyApple サポート
  2. Face ID and Touch ID security(Apple Platform Security)Apple
  3. Unlock your Pixel device with your faceGoogle Pixel ヘルプ

This article was written after checking the sources above as of 2026-10-03. Explanations may change as research progresses. Photo credits are shown below each photo.

Next fun fact ▶

TechnologyHow does an AI chatbot come up with its answers?Ask a question and an AI answer flows right back. How is that text actually made?
NANI?! Animal Encyclopedia
Our book is on AmazonNANI?! Animal Encyclopedia

40 surprising animal facts with big photos and short, easy text. A fun-facts book for kids and grown-ups to read together.

See it on Amazon