What is two-factor authentication (2FA)?

Two-factor authentication asks for a second proof after your password, so a leaked password alone isn't enough. Here is how the common methods compare and what to prepare first.

Two factors, not two passwords

A factor is a kind of proof: something you know (a password or PIN), something you have (a phone, a security key) or something you are (a fingerprint). Two-factor authentication combines two different kinds. A password plus a security question is still one factor, because both can be phished or leaked the same way.

How the common methods compare

Method Strength Main weakness
SMS code No app needed SIM swaps; easy to trick people into reading it out
Authenticator app (TOTP) Works offline, not tied to a carrier Codes can still be typed into a phishing page
Push prompt One tap Approving a prompt you didn’t start
Security key / passkey Bound to the real website, so phishing pages get nothing usable You need the device with you

Prepare the way back in

Lost phones lock out far more people than attackers do. When you turn 2FA on, save the recovery codes somewhere other than the phone, add a second method if the service allows it, and decide whether you want to keep the setup key so you can rebuild the authenticator entry later.

Next: what a 2FA code is and how TOTP codes are calculated.