Two-factor authentication
Two-factor authentication (2FA) means a stolen password isn’t enough to get into your account. It’s the single most effective step you can take after using unique passwords.
Last reviewed 15 November 2026
What it is
Logging in normally relies on one thing: something you know (your password). Two-factor authentication adds a second, different kind of proof:
- something you have, like your phone or a security key, or
- something you are, like your fingerprint or face (usually used to unlock the thing you have).
An attacker who phishes or cracks your password still needs that second factor. That’s why Microsoft has reported that 2FA blocks well over 99% of automated account-takeover attacks. You may also see it called two-step verification or multi-factor authentication (MFA). They all mean much the same thing.
The kinds of 2FA, best to worst
Any 2FA is far better than none. But some kinds can be phished or intercepted, and some can’t.
-
Security keys and passkeys Best
A physical key (such as a YubiKey) that you plug in or tap, or a passkey stored on your phone or in your password manager. They use cryptography tied to the real website’s address, so they simply won’t work on a fake site. They are the only common methods that can’t be phished.
-
Authenticator apps Very good
An app that shows a 6-digit code that changes every 30 seconds. These codes are known as TOTP. Examples include Ente Auth, Aegis (Android), 2FAS, Google Authenticator and Microsoft Authenticator. The codes are made on your phone, so they can’t be intercepted on the way. A convincing fake site can still trick you into typing one in, though.
-
Push notifications Good
An “Is this you trying to sign in?” prompt on your phone. Convenient, but attackers sometimes send a flood of prompts hoping you’ll tap Approve to make them stop, a trick called MFA fatigue. Never approve a prompt you didn’t trigger. Prompts that ask you to type in a number shown on screen are much safer.
-
Text message (SMS) or email codes Better than nothing
A code sent to your phone number or inbox. Criminals can hijack phone numbers by talking a mobile provider into moving your number to their SIM (a SIM swap). Email codes are only as safe as your email account. Use these if they’re the only option, and upgrade when you can.
Turning it on
Start with the accounts that unlock everything else:
- Your email, since it can reset all your other passwords. See securing your email.
- Your password manager, if it’s a cloud one.
- Your Apple, Google or Microsoft account, which often holds your photos, backups and saved passwords.
- Banking and payments. Most banks now require it.
- Social media, which is often hijacked to scam your friends.
The setting is usually under Security, Sign-in or Login in your account settings. Direct links for the big three:
- Google: 2-Step Verification settings
- Microsoft: Microsoft account security (look for “Advanced security options”)
- Apple: Two-factor authentication for Apple Account (on by default for most accounts)
To see which methods any other website supports, look it up on 2fa.directory.
Backup codes and lost phones
The most common 2FA problem isn’t being hacked, it’s locking yourself out. Before you finish setting up 2FA anywhere:
- Save the backup codes. Most services give you a set of one-time recovery codes. Print them or store them in your password manager, but not only on the phone that generates your codes.
- Add a second method where you can, such as a second security key or a backup phone number.
- Back up your authenticator app. Many apps can sync or export an encrypted backup. Check yours does before you need it.
Keeping 2FA codes in your password manager? It’s convenient, and far better than no 2FA. But if your codes and passwords live in the same vault, anyone who gets into the vault has both factors. For your most important accounts, keep codes in a separate app.
2FA scams to watch for
- No real company will ever ask you to read out or forward a 2FA code. If someone calls, texts or emails asking for one, it’s a scam, even if they seem to know a lot about you.
- A code you didn’t request means someone has your password. Change it.
- A sign-in prompt you didn’t trigger means the same. Deny it, then change the password.