However good your password is, it can leak one day, get guessed, or be typed into a fake page by mistake. The idea behind two-factor authentication is simple. The password alone shouldn't open the door. Even if a thief gets hold of it, they can't get in without your phone or your key.
Below we've put the common methods side by side. After that we'll look at where each one helps and where it leaves gaps.
2FA methods compared
| Method | How it works | Strength | Weakness |
|---|---|---|---|
| SMS code | A one-time code is texted to your phone number when you sign in. | No setup, works on any phone. | Vulnerable to number porting and SIM swap fraud; the code can also be typed into a fake page. |
| Email code | The code is sent to your registered email address. | No phone needed. | If the email account is compromised, the second step goes with it. |
| Authenticator app (TOTP) | An app on your phone generates a new 6-digit code every 30 seconds. | Not tied to your mobile carrier, works offline. | Trouble if you lose the phone without a backup; the code can still be entered on a phishing page. |
| App approval (push notification) | Your phone shows a "Is this you trying to sign in?" prompt. | Quick and easy. | It's possible to absent-mindedly tap "Yes" on a stream of prompts. |
| Security key / passkey | A USB or NFC key, or hardware built into your device, verifies your identity and checks the address of the site you're signing in to. | The most phishing-resistant method; it doesn't work on a fake site. | Not supported everywhere; physical keys cost money and can be lost. |
Isn't SMS verification secure?
Let's get this out of the way first. An SMS code is better than nothing. But it has two well-known weaknesses.
The first is that control of your number can be taken from you. If a fraudster manages to impersonate you and get your carrier to issue a new SIM card, or port your number to another line, your codes go to their phone instead. Because this takes effort and money, it's mostly aimed at specific targets, but it does happen.
The second, and more common, is phishing. A fake banking page asks first for your password and then for "the code we just sent to your phone". The moment you type it in, the fraudster uses it on the real site. The problem here isn't SMS itself, it's typing the code in the wrong place. The result is the same, though.
There's also a practical point. If you've changed your number and the old one is still registered on your accounts, whoever gets that number next may see your codes. We cover this separately in our article on checking your recovery settings. For a broader look at how SMS and email verification compare, see email or SMS verification?
How do you set up an authenticator app?
Authenticator apps generate short, time-based codes from a secret key that's shared once between your account and your phone. Because the code is calculated on the phone itself, it doesn't need your carrier, a signal or even an internet connection. Popular apps like Google Authenticator and Microsoft Authenticator, as well as open-source alternatives, all use this standard.
- Install an authenticator app on your phone.
- In the security settings of the account you want to protect, find the "two-step verification" or "authenticator app" option.
- Scan the QR code on screen with the app. Don't screenshot this QR code or share it with anyone; it is the key itself.
- Enter the 6-digit code shown in the app on the site to confirm the setup.
- Save the backup codes you're given straight away (more on this below).
Why can push approvals sometimes be risky?
The "Is this you?" prompt is very convenient, and that convenience is also its weak spot. Someone who has your password can fire off login attempts one after another in the middle of the night and flood your phone with prompts. A sleepy person might tap "Yes" on one just to make it stop. This is known as MFA fatigue.
That's why some services now show a number in the prompt and ask you to pick the same number on the sign-in screen. The rule is simple. If you aren't signing in at that moment, don't approve any request. Unexpected approval requests mean someone else has your password, so change it right away.
Why are security keys and passkeys the strongest?
The other methods share one problem. A person hands over the code or the approval, and people can be tricked. Security keys and passkeys check the address of the site you're signing in to by themselves during authentication. A page on a fake domain can't use the key that belongs to the real site. So the trap fails even if your attention slips.
Passkeys are this same technology built into your phone or computer. You confirm with a fingerprint, face recognition or your device PIN, and you don't even type a password. The big email providers and many popular services support them, but not every site does yet. Where they're available, we recommend turning them on.
What are backup codes, and where should you keep them?
Backup codes are a list of codes you get when you turn on 2FA, each of which can be used once. They're your way back into the account when your phone is lost or broken, or your security key isn't with you.
In practice, this is the step people skip most often when turning on 2FA. Then they change phones and lock themselves out. Here's what we suggest:
- Print the codes and keep them somewhere safe at home, or add them as a note in your password manager.
- Don't store the codes inside the account they protect. Keeping your Gmail backup codes only in a Gmail draft is like locking the key inside the box it opens.
- If you've used a code, check how many are left, and generate new ones if you're running low.
- If possible, set up more than one second factor, for example an authenticator app and a security key.
Which accounts should you protect first?
Turning it on everywhere would be nice, but realistically it's easier to go one by one. Start with your main email account. Because the "forgot password" links for your other accounts go there, your email is effectively the master key to your whole online life. After that come banking, your password manager, social media and shopping accounts.
For trivial, one-off sign-ups, it can make more sense to keep that registration completely separate from your main accounts than to bother with 2FA. Using a temporary address on a site you're only joining to download a single document, for instance, means your real address never ends up in that site's database. But never link 2FA itself or a recovery email to a temporary address; you won't be able to reach it reliably days later.
Finally, 2FA doesn't replace a strong password; it complements it. We cover the password side in our guide to creating a strong password.
FAQ
Are two-factor authentication and multi-factor authentication the same thing?
In everyday use they mostly mean the same. Multi-factor authentication (MFA) is the general term for being asked for two or more pieces of proof; two-factor authentication (2FA) is its most common form.
I've lost my phone. How do I get into my account?
Use one of the backup codes you received when you turned on 2FA. If you don't have any, you'll need to go through the service's official account recovery process, which can take time and may ask you to prove your identity.
Should I turn off SMS verification and switch to an app?
If the service supports it, yes. An authenticator app or a security key holds up better than SMS. But if SMS is the only option, keep it on; it's better than no 2FA at all.
What should I do if someone calls and asks for my verification code?
Don't give the code to anyone. Real banks and services don't ask for your verification code over the phone or by message. A request like that is almost always a scam.