Two very different systems
Face unlock is not one technology. Many phones simply use the ordinary front camera to take a flat, two-dimensional picture and compare it with stored images of the owner's face. That is quick and cheap but relatively easy to trick with a good photograph or video, so manufacturers often restrict it to unlocking the screen and block it from approving payments. A smaller group of phones adds dedicated depth-sensing hardware. The best-known example, Apple's Face ID, introduced in 2017, projects more than 30,000 invisible infrared dots. Measuring the shape of a face in three dimensions changes the problem from recognising a picture to recognising a physical object, and that is much harder to counterfeit.
Painting with invisible light
The depth system uses a technique called structured light. A tiny projector shines a known pattern of infrared dots, a wavelength the human eye cannot see. On a flat wall the pattern would look regular. On a face it bends: dots on the tip of the nose land in different positions from those on the cheeks or in the eye sockets. A dedicated infrared camera photographs the distorted pattern, and software calculates how far each point is from the phone, producing a depth map. A separate infrared flood light illuminates the face evenly, so the system also works in a dark bedroom. Other phones measure depth by timing how long pulses of light take to bounce back.
From map to match
The raw depth map and infrared image are processed by a neural network running on the phone's own chip. It does not store a photograph to compare pixel by pixel. Instead it converts the face into a mathematical representation, a long list of numbers capturing its distinctive geometry. At enrolment, the phone records several such templates from slightly different angles. Each later attempt is converted the same way and scored for similarity. If the score passes a threshold, the phone unlocks. The templates are kept in an isolated security processor and, according to the maker, never leave the device. The system also updates gradually, so a new beard, glasses or ageing do not lock you out.
How often it gets it wrong
No biometric is perfect, and makers quote odds. Apple says the chance that a random person could unlock Face ID is about one in a million with a single enrolled appearance, compared with about one in 50,000 for its older fingerprint sensor. Those odds worsen markedly for identical twins, close siblings and children under 13, whose faces are still developing and may not be distinct. Attention detection adds protection: the system checks that your eyes are open and looking at the screen, so a sleeping owner's phone cannot simply be held up to their face. After repeated failures, or after a restart, the phone insists on the passcode, which remains the ultimate key.
Why masks and photos struggle
A printed photograph is flat, so its depth map looks nothing like a face, and it does not reflect infrared light the way skin does. A video on another screen fails for the same reason. Fooling a 3D system requires a physical replica with the right shape and surface properties, which demands detailed measurements of the victim and specialist work. Security researchers have occasionally demonstrated elaborate masks against particular systems, but such attacks are expensive and impractical for an ordinary thief. The more realistic risks are simpler: someone forcing the owner to look at the phone, or watching them type the passcode, which can bypass face recognition entirely.
Privacy and practical limits
Because the template stays on the phone, unlocking does not send your face to a server. That differs from the facial recognition used by airports, police or social networks, which matches faces against large central databases and raises separate legal debates. Face unlock also has practical limits. Some systems struggle with sunglasses that block infrared light, at extreme angles or with face coverings, though newer software can work from the eye area alone, which helps where face coverings are common. For most owners, the sensible approach is to use a strong passcode as the foundation and treat face unlock as a convenient, well-protected shortcut on top.
Sources & further reading
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



