Two factor authentication (2FA) is a login method that asks for two different kinds of proof before you get into an account: something you know, such as a password, and something you have or are, such as a phone app code, a hardware key or a fingerprint. Even if a criminal steals your password, they cannot sign in without the second factor. You set it up in the security settings of each account, and it takes about five minutes.
Most major services now support it, and for email, banking and social media it is one of the most effective steps you can take to protect an account.
Every login proof falls into one of three categories, called factors:
| Factor | What it is | Examples |
|---|---|---|
| Knowledge | Something you know | Password, PIN, security answer |
| Possession | Something you have | Phone, authenticator app, hardware security key |
| Inherence | Something you are | Fingerprint, face scan |
Two factor authentication combines two different categories. Two passwords do not count, because both are knowledge. A password plus a code from your phone does count.
The flow is simple. You enter your username and password. The service then asks for a second proof, for example a six-digit code that changes every 30 seconds. Only after both are correct are you signed in. The term multi-factor authentication (MFA) is used for the same idea when two or more factors are required.
Passwords leak all the time. They are stolen in data breaches, guessed, reused across sites, or captured by fake login pages. When you reuse a password and one site is breached, attackers try the same combination elsewhere, a trick called credential stuffing.
With 2FA turned on, a stolen password alone is not enough. The attacker would also need your phone or key. This does not make an account impossible to attack, but it raises the effort enormously, and most automated attacks simply move on.
Not all second factors are equally safe. Choose the strongest one the service offers.
A code is sent to your phone number. This is better than nothing and easy to use, but it is the weakest option. Attackers can sometimes trick a mobile carrier into moving your number to their SIM card (SIM swapping), and codes can be read from a stolen, unlocked phone.
Apps such as Google Authenticator, Microsoft Authenticator, Aegis or 2FAS generate a time-based one-time password (TOTP). The code is created on your device from a secret shared at setup, so nothing travels over the phone network. This is the best everyday choice for most people.
Some services send a prompt to your phone asking you to approve or deny the login. Read the details before tapping Approve. Attackers sometimes spam requests hoping you accept one just to make them stop, which is called push fatigue.
A hardware key (a small USB or NFC device) or a passkey stored on your phone or computer uses public-key cryptography and checks the real website address. This makes it resistant to phishing, because it will not work on a fake lookalike site. Passkeys are now supported by many large services and can replace the password altogether.
The exact menu names differ, but the steps are almost always the same.
Start with the accounts that matter most: your main email (because it can reset every other password), banking, cloud storage, your phone account (Apple ID or Google account) and social media.
Losing your phone is the most common problem. Before it happens, do three things:
If it has already happened, use a backup code to sign in, then remove the old device and set up 2FA again on the new one. If you have no backup, you must go through the service's account recovery process, which can take days and may need identity proof.
In everyday use, yes. Strictly, two-step verification can use two steps of the same kind, while true two-factor uses two different categories. For ordinary users the setup and benefit are the same.
It can be bypassed, usually by tricking you into giving up a code on a fake site or approving a prompt. SMS codes can also be intercepted through SIM swapping. Authenticator apps are much harder to attack, and passkeys or hardware keys resist phishing.
No. Authenticator apps calculate codes locally using the clock, so they work in airplane mode.
Not much. Most services let you mark a trusted device so you are asked for the second factor only occasionally.
Two factor authentication requires two different kinds of proof, so a stolen password alone cannot open your account. Turn it on for email, banking and other important accounts, prefer an authenticator app, passkey or security key over SMS, and always store your backup codes safely. Never share a verification code with anyone.