<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&family=Raleway:wght@800&family=Gabarito:wght@700&display=swap" rel="stylesheet">

Two-factor authentication (2FA)

Also known as: 2FA, two-step verification, 2-step verification, multi-factor authentication, MFA

Two-factor authentication (2FA)

Two-factor authentication (2FA) is a login method that asks for two different kinds of proof, usually a password plus a code or device, so a stolen password alone is not enough to get into your account.

Updated

How Does Two-Factor Authentication Work?

Authentication factors fall into three groups:

  • Something you know, such as a password or PIN.
  • Something you have, such as a phone, an authenticator app or a hardware security key.
  • Something you are, such as a fingerprint or face scan.

2FA combines two of these groups. You enter your password first. The service then asks for the second factor, for example a six-digit code from an app, a code sent by text message, a tap on a push notification or a hardware key. Only when both checks pass are you signed in.

Two passwords do not count as 2FA, because both are the same kind of factor. A password plus a security question is also not true 2FA, since both are things you know.

Many services remember a trusted device after the first successful check. You then see the second step only when you sign in from a new device, a new browser or an unusual location. When you set up 2FA, most services also give you a set of single-use backup codes for when your second factor is not available.

Example

You sign in to your email on a new laptop. After the password, the site asks for a code. You open the authenticator app on your phone, read the six-digit code and type it in. Later, someone who bought your password from a leak tries to log in. They get stuck at the code screen, because they do not have your phone.

2FA vs MFA

2FAMFA
Number of factorsExactly twoTwo or more
Typical setupPassword plus codePassword plus code plus biometric, or other combinations
RelationshipA type of MFAThe broader category

Common 2FA Methods

MethodStrengthMain weakness
SMS codeBasicCan be intercepted through SIM swapping or phishing
Authenticator app codeGoodCan still be phished on a fake login page
Push notificationGoodPeople may approve a prompt by mistake
Hardware key or passkeyStrongestNeeds a backup method if lost

Why Does It Matter for Your Privacy?

  • It blocks most password-only attacks. Leaked and reused passwords stop working on their own. CISA recommends turning on MFA wherever it is offered.
  • The phone number you use matters. If your 2FA codes go by text, the number receiving them becomes part of your account security. See how SMS verification and 2FA work.
  • Backup codes are part of the setup. Store them offline or in your password manager so you are not locked out.

Quackr ID can store 2FA (TOTP) codes and share them with people so they get working codes without seeing the secret, as described in sharing without revealing.

Turn on 2FA first for your email account, since it can reset the passwords for most of your other accounts.

Frequently asked questions

Which type of 2FA is the safest?

Phishing-resistant methods such as passkeys and hardware security keys are the strongest. Authenticator app codes come next. SMS codes are the weakest common option, but they are still much better than no second factor.

What should I do if I lose my 2FA device?

Use the backup codes the service gave you when you turned on 2FA. If you did not save them, you will need to go through the service's account recovery process, which can take days. Save backup codes when you set up 2FA.

Is 2FA the same as MFA?

2FA is a type of multi-factor authentication (MFA) that uses exactly two factors. MFA is the broader term for any login that needs two or more factors.

Update history

  • : First published