What Is Two-Factor Authentication, and Which Kind Is Best?

A second step at sign-in stops most attacks that rely on a stolen password. Not all second steps are equally strong.

Short answer

Two-factor authentication (2FA) — also called multifactor authentication or 2-step verification — asks for a second proof after your password, such as a code or a tap on your phone. If someone steals your password, they still can’t get in without the second step. The US cybersecurity agency CISA says any form is better than none, with FIDO security keys and passkeys the strongest and codes by text or email the simplest but weakest.

In this article 9 sections
  1. Why a password isn't enough
  2. The three kinds of factor
  3. The options, compared
  4. Turn it on
  5. Backup codes, explained
  6. Where passkeys fit
  7. Common mistakes
  8. Common questions
  9. Related guides
A YubiKey hardware security key on a white surface
A hardware security key — one of the strongest second factors you can add to an account. Photo: Tony Webster / Wikimedia Commons, CC BY 2.0

Why a password isn't enough

Passwords get reused, guessed and stolen in data breaches. A second step means a stolen password alone doesn't open the account. The US cybersecurity agency CISA says people who use multifactor authentication are significantly less likely to be hacked, and that any kind is better than none.1

You'll see several names for the same idea: two-factor authentication (2FA), 2-step verification (2SV) and multifactor authentication (MFA).1,2

The three kinds of factor

CISA groups sign-in factors into three types: something you know (a password or PIN), something you have (an authenticator app or a text message on your phone) and something you are (a fingerprint or face scan).1 Two-factor authentication combines two of them, so a thief needs more than your password.

A hand holding a small key-ring token showing a one-time code in front of a login screen with user name, password and passcode boxes.
Two factors in one sign-in: a password you know plus a code from a device you have. Photo: Brian Ronald / Wikimedia Commons, CC BY-SA 4.0

The options, compared

Common second factors
MethodHow it worksStrength
Code by SMS or emailA one-time code is sent to youBetter than nothing; codes can be intercepted or phished
Authenticator app codeAn app on your phone shows a new code every few secondsStronger; not tied to your phone number
Push promptYour phone asks “Is this you?”Stronger; don’t approve prompts you didn’t start
Security key or passkey (FIDO)A device confirms the sign-in for the real site onlyStrongest; resists phishing

CISA calls FIDO/WebAuthn — security keys and passkeys — the only widely available phishing-resistant option, because it refuses to sign in on a fake site.1 At the other end, Google warns that codes sent by text or phone call can be vulnerable to attacks on your phone number.3 Authenticator apps sit in between and work even without a mobile signal.2,3

Turn it on

Apple Account (iPhone or iPad)

  1. Open Settings › [your name] › Sign-In & Security.4

  2. Turn on Two-Factor Authentication and follow the on-screen steps. On a Mac, use System Settings.4

  3. From then on, signing in on a new device asks for your password plus a six-digit code, shown on one of your trusted devices or sent to your trusted phone number.4

Two-factor authentication is already the default for most Apple Accounts, and features such as Apple Pay and Sign in with Apple require it.4

Google Account (Android or computer)

  1. Open your Google Account and select Security & sign-in.3

  2. Under How you sign in to Google, select Turn on 2-Step Verification.3

  3. Follow the steps. If you don't use a passkey, Google recommends Google prompts on your phone as the second step.3

  4. Back in 2-Step Verification, find Backup codes and get a set to keep somewhere safe.5

Work or school Google accounts may be managed by an administrator, who decides whether you can change this.3

Your other accounts

  1. Start with your email account — it can be used to reset most of your other passwords.2

  2. Then your bank, social media, online shops and gaming or streaming accounts.1

  3. In each account's security settings, look for two-factor, two-step or multifactor authentication.2

  4. Set up a backup method, such as backup codes, in case you lose your phone.2

Never share a code

Google says it never asks for your backup codes except when you are signing in.5 Anyone asking you to read out a sign-in code is trying to get into your account.

Backup codes, explained

Google gives you a set of 10 backup codes, each 8 digits long, and each one works only once.5 Creating a new set cancels the old one, so you can refresh them if you think someone has seen them.5 The UK's NCSC suggests storing backup codes safely, because they let you in when your phone isn't available.2

Where passkeys fit

A passkey proves you have your device and is unlocked with your screen lock. Google lets a passkey replace both the password and the separate second step.3 See What Is a Passkey?

Common mistakes

  • Approving a prompt you didn't start. Criminals have learned to get past some kinds of MFA by tricking people.6 CISA recommends number matching — typing a number shown on screen into your phone — to stop "push bombing", where attackers send prompt after prompt hoping you'll tap Approve.1
  • Treating security questions as a second step. The NCSC says they don't give the same protection as 2SV.2
  • Having no backup. If your only second step is on a phone you lose, you can be locked out. Set up backup codes or another method.2,5
  • Stopping at SMS when better options exist. Text codes are fine to start with, but switch to an app, prompts or a passkey where you can.3

Common questions

Why are SMS codes the weakest option?

Google says codes by text or call can be vulnerable to phone-number attacks, and that its prompts help against SIM-swap attacks, where a criminal moves your number to their own SIM.3 Still, the NCSC is clear that any 2-step verification is better than none.2

What happens if I lose my phone?

Use one of your backup codes or the other backup method you set up.2,5 For an Apple Account, a code can also go to your trusted phone number.4

Will I have to enter a code every time?

Usually not. The NCSC says services mostly ask for the second step for riskier actions — a new device, a new payee or a password change — and many let you remember a trusted device.2

Can I turn it off later?

On Apple, accounts created with two-factor authentication can't turn it off. If you switched it on recently, Apple allows you to go back within two weeks.4

Do these rules apply at work too?

Yes. The NCSC advises organisations to choose the strongest type of MFA that's practical and to prefer phishing-resistant methods.6

Sources and further reading

  1. More than a Password — US Cybersecurity and Infrastructure Security Agency (CISA)
  2. Setting up 2-Step Verification (2SV) — UK National Cyber Security Centre2022-01-10
  3. Turn on 2-Step Verification — Google Account Help
  4. Two-factor authentication for Apple Account — Apple Support2026-08-13
  5. Sign in with backup codes — Google Account Help
  6. Not all types of MFA are created equal — UK National Cyber Security Centre2024-10-09

Was this article helpful?

Comments

No comments yet. Questions and tips from readers are welcome.