Guide · Updated December 2, 2026

What is two-factor authentication (2FA) and how to turn it on

A phone showing a code next to a padlock and a small security key

Two-factor authentication (2FA) means that logging in takes something besides your password, usually a code from your phone or a tap on a security key. It's the single most effective thing you can do to protect your accounts, because a stolen password on its own is no longer enough to get in.

Why passwords alone aren't enough

Passwords get stolen all the time, and rarely because someone guessed them. The usual routes are:

2FA breaks all three. Even with your password, an attacker still needs the second factor, which lives on your phone or key.

The types of 2FA, from weakest to strongest

Codes by text message (SMS)

The site texts you a six-digit code. It's far better than nothing, and it's the easiest to set up. Its weakness is that text messages can be intercepted, and criminals sometimes persuade a phone company to move your number to their SIM card ("SIM swapping"). Use SMS if it's the only option, and switch to something stronger for important accounts.

Authenticator apps

An authenticator app on your phone generates a new six-digit code every 30 seconds. Because the codes are made on your device, not sent to it, they can't be intercepted in transit and aren't affected by SIM swapping. Well-known free options include Google Authenticator, Microsoft Authenticator and the authenticators built into some password managers. Choose one that lets you back up or transfer your codes, so losing your phone doesn't lock you out.

Push notifications

Some services (Google, Microsoft and many banks) send a prompt to your phone asking "Is this you trying to sign in?" You tap yes or no. It's quick and convenient. The risk is "prompt bombing", where an attacker with your password triggers request after request, hoping you'll tap yes to make them stop. Never approve a sign-in you didn't start.

Security keys and passkeys

A physical security key (a small USB or NFC device) or a passkey stored on your phone or computer is the strongest option for most people. They use cryptography tied to the real website's address, so they simply won't work on a fake phishing site. Passkeys are increasingly offered by big services such as Google, Apple, Microsoft and Amazon, and they often replace the password entirely.

Which accounts to protect first

  1. Your main email account. Email is the master key: password resets for almost everything else go there.
  2. Your password manager, if you use one.
  3. Banking, payment and investment apps (most already require some form of 2FA).
  4. Your Apple, Google or Microsoft account, which often controls your phone, photos and backups.
  5. Social media and messaging, which are popular targets for scams sent to your friends.
  6. Shopping sites with saved payment cards.
  7. Your VPN account, if your provider offers 2FA.

How to turn on 2FA

The wording varies, but the steps are nearly always the same:

  1. Sign in and open the account's Security or Sign-in and security settings.
  2. Look for Two-factor authentication, 2-step verification, multi-factor authentication or passkeys.
  3. Choose your method. For an authenticator app, scan the QR code with the app and type in the code it shows.
  4. Save the backup codes. Most services give you a set of one-time recovery codes. Store them in your password manager or print them and keep them somewhere safe.
  5. Add a second method if offered, such as a backup phone number or a second security key.

Don't lock yourself out

The main risk with 2FA isn't attackers, it's losing access yourself. Protect against it:

2FA and VPNs: different jobs

People sometimes ask whether a VPN makes 2FA unnecessary. It doesn't. A VPN protects your connection, so the network you're on can't see your traffic. 2FA protects your accounts, so a stolen password isn't enough to get in. They solve different problems, and on public Wi-Fi it's sensible to use both. If you travel, note that connecting through a VPN server in a new country can trigger extra sign-in checks. Having 2FA set up properly makes those checks painless.

Common questions about 2FA

Is it a hassle? Less than you'd think. Most services remember trusted devices, so you'll usually only be asked for a second factor on a new device or browser.

What if a site doesn't offer it? Use a long, unique password generated by a password manager. That at least limits the damage if the site is breached.

Can 2FA be bypassed? SMS and push prompts can be beaten by determined attackers using SIM swaps or phishing kits, which is why security keys and passkeys are the gold standard. Any 2FA still stops the vast majority of automated account takeovers.

Do it today: turn on 2FA for your main email account first. It takes five minutes and protects everything linked to it. Then secure your home Wi-Fi and check whether you still need antivirus.

Questions people ask

Is 2FA really necessary?

Yes for important accounts. Most account takeovers use passwords leaked in data breaches; 2FA stops a stolen password on its own from being enough.

Which type of 2FA is the safest?

Security keys and passkeys, because they won't work on fake phishing sites. Authenticator apps come next, then SMS codes, which are still far better than nothing.

What happens if I lose my phone?

Use the backup codes you saved when you set up 2FA, or a second method such as a backup key. That's why saving backup codes matters.

Does a VPN replace 2FA?

No. A VPN protects your connection; 2FA protects your accounts. They do different jobs.

Keep reading