What Is Two-Factor Authentication?
Two-factor authentication is a second lock on your online accounts. After you enter your password, the service asks for one more piece of proof, such as a code, a tap on your phone or a physical key. Only then does it let you in.
The Federal Trade Commission (FTC) describes it as an extra layer of security that makes it harder for scammers to get into your accounts, even if they have your password.4 That is the key point: passwords leak, get guessed or are stolen in phishing attacks, but the second factor is much harder to steal at the same time.
You may also hear the terms two-step verification and multi-factor authentication (MFA). MFA is the wider term for using two or more factors. Two-factor authentication is the most common form of MFA. The US Cybersecurity and Infrastructure Security Agency (CISA) uses MFA as its main term and urges everyone to turn it on.1
The Three Types of Authentication Factors
Each factor comes from a different category, and real two-factor sign-in uses two different categories.
| Factor type | What it is | Examples |
|---|---|---|
| Something you know | Information only you should know | Password, PIN, answer to a security question |
| Something you have | A physical item in your possession | Phone with an authenticator app, security key, smart card |
| Something you are | A physical trait | Fingerprint, face scan |
Two passwords are not two factors. A password plus a security question is still two things you know, and both can be stolen the same way. Real protection comes from combining different types, such as a password and a phone.
Fingerprints and face scans usually work locally. When you unlock a passkey with your face, the scan normally stays on your device. It unlocks a cryptographic key stored there, rather than being sent to the website.
How Two-Factor Authentication Works
The process adds one short step to signing in, usually only on new devices or after a set time.
- You enter your username and password as usual.
- The service asks for a second factor. It might send a code, show a prompt on your phone or ask you to touch a security key.
- You provide it. You type the code, approve the prompt or tap the key.
- The service checks it and lets you in. Many services then remember a trusted device for a while.
If someone steals your password and tries to sign in from their own computer, they reach step two and stop. Without your phone or key, they cannot finish. You may also get an alert about the failed attempt, which is a sign to change your password.
Types of 2FA, From Weakest to Strongest
All forms of 2FA are far better than a password alone, but some resist modern attacks much better than others. CISA ranks phishing-resistant methods as the strongest and text messages as the weakest common option.2
| Method | How it works | Strength | Main weakness |
|---|---|---|---|
| Text message (SMS) or voice code | A code is sent to your phone number | Basic | Codes can be phished, and SIM swaps can redirect your number |
| Email code | A code is sent to your email | Basic | Only as safe as your email account |
| Authenticator app code | An app on your phone shows a code that changes every 30 seconds | Good | Codes can still be typed into a fake site |
| Push notification with number matching | Your phone shows a prompt, and you match a number shown on screen | Good | Less effective if you approve prompts without checking |
| Passkey | A cryptographic key on your device, unlocked with your face, fingerprint or PIN | Strongest | Needs a supported device and service |
| Hardware security key | A small USB or wireless key you tap to sign in | Strongest | Costs money and can be lost, so keep a backup key |
The strongest methods are called phishing-resistant because they check the website’s real address. If you land on a fake login page, the key or passkey simply will not work there. That defeats the most common way attackers get around weaker 2FA.2
NIST, which sets US federal digital identity guidelines, also treats phishing-resistant authenticators as the highest-assurance option and places restrictions on using text messages for authentication.3
Why Two-Factor Authentication Matters
Most account takeovers start with a stolen or reused password, and a second factor blocks that path.
- Passwords leak. Data breaches regularly expose millions of usernames and passwords.
- People reuse passwords. One leaked password can unlock several accounts if it is used in many places.
- Phishing is common. Fake emails and sites trick people into typing passwords. Our explainer on phishing shows how to spot them.
- AI makes scams more convincing. Generative tools can write polished phishing messages in any language. Our explainer on generative AI covers these risks.
- Email is a master key. Whoever controls your email can often reset passwords for everything else.
CISA says that turning on MFA makes you significantly less likely to be hacked, and it is one of the simplest steps it recommends to every person and organization.1
Get One Clear Tech Explainer a Week
Online safety, AI and the tech you use every day in plain English: one explainer every Thursday.
Get the Newsletter →Which Accounts to Protect First
Start with the accounts that would hurt most if someone else got in.
- Email: it controls password resets for most other accounts.
- Password manager: it holds the keys to everything else.
- Banking, investing and payment apps: they protect your money directly.
- Phone carrier account: add a PIN or passcode to help prevent SIM swaps.
- Cloud storage: it often holds photos, documents and backups. Our explainer on cloud computing explains why security there is shared.
- Social media and work accounts: takeovers can be used to scam your contacts or reach company systems.
How to Set Up Two-Factor Authentication
Setup usually takes a few minutes per account and lives in the security settings.
- Open the account’s security settings. Look for “two-step verification,” “2FA,” “multi-factor authentication,” “login verification” or “passkeys.”
- Choose the strongest method offered. Prefer a passkey or security key, then an authenticator app, then text messages if nothing else is available.
- Follow the prompts. For an authenticator app, you usually scan a QR code. For a passkey, you confirm with your face, fingerprint or device PIN.
- Save your backup codes. Store them in a password manager or print them and keep them somewhere safe.
- Add a backup method. A second security key or another trusted device helps if you lose your phone.
- Test it. Sign out and back in to make sure everything works.
The FTC suggests checking each important account and turning the setting on wherever it is offered.4 Many services now prompt you to do it, which makes the job easier.
Passkeys: Where Sign-In Is Heading
Passkeys replace passwords with a cryptographic key stored on your devices, and they are phishing-resistant by design.
When you create a passkey, your device makes a pair of keys. The website keeps a public key, and your device keeps a private key that never leaves it. To sign in, you unlock the private key with your face, fingerprint or device PIN.
There is no password to steal, reuse or type into a fake site. Because a passkey only works on the real website it was created for, phishing pages cannot capture it. Passkeys can sync across your devices through your phone or computer’s account, or through a password manager.
Support is growing quickly across major email, shopping, banking and social media services. Where a passkey is offered, it is usually the simplest strong option.
Common Attacks on 2FA, and How to Avoid Them
Two-factor authentication stops most attacks, but criminals have developed ways around weaker methods.
- Real-time phishing: a fake site asks for your password and your code, and passes both to the real site instantly. Phishing-resistant methods stop this.
- SIM swapping: a criminal convinces your carrier to move your number to their SIM card, so they receive your text codes. A carrier account PIN and non-SMS methods help.
- MFA fatigue: attackers send repeated push prompts, hoping you tap approve to make them stop. Never approve a prompt you did not trigger, and use number matching where offered.2
- Code requests by phone or text: scammers pretend to be your bank and ask you to read out a code. Real companies will not ask for your sign-in codes.
The golden rule is simple. Never share a sign-in code or approve a prompt unless you started the sign-in yourself, a moment ago.
Password Managers and 2FA Work Together
A password manager and two-factor sign-in solve different problems, so the strongest setup uses both.
A password manager creates and stores a long, unique password for every account. That stops one leaked password from unlocking others. Two-factor sign-in then protects each account even if its password is stolen.
Many password managers can also store passkeys and generate authenticator codes. That is convenient, but think about where your second factor lives. For your most important accounts, such as email and the password manager itself, a separate security key or phone app adds an extra layer.
Protect the password manager with its own strong master password and two-factor sign-in. It holds the keys to everything else, so it deserves the best protection you have.
Helping Family Members Set Up 2FA
Older relatives and less confident users are often targeted by scams, so a short setup session can make a real difference.
- Start with one account, usually email, and explain why it matters.
- Choose the simplest strong method, such as a passkey or push prompt with number matching.
- Write down backup codes together and store them somewhere safe at home.
- Agree a simple rule: never share a code or approve a prompt they did not start.
Two-Factor Authentication for Businesses
For organizations, turning on MFA for every account is one of the highest-value security steps available. CISA recommends it for all users, and especially for administrators, remote access and email.1
- Require it for everyone, not just as an option.
- Start with high-risk accounts, such as administrators, finance staff and anyone with access to customer data.
- Move toward phishing-resistant methods, such as security keys or passkeys, for the most sensitive access.2
- Plan for lost devices, with a secure way to verify staff and reset access.
- Train staff to reject unexpected prompts and report them.
A Worked Example
Here is a made-up example of two-factor authentication stopping an account takeover.
Chris uses the same password for his email and an old shopping site. The shopping site suffers a data breach, and his password appears in a leaked list. A criminal tries it on his email account.
Because Chris turned on an authenticator app a year earlier, the criminal is asked for a six-digit code and cannot provide it. Chris gets an alert about a sign-in attempt from an unknown location.
He changes his email password, checks his account’s recent activity and sets up a passkey. He also moves to a password manager so every account gets its own unique password. The breach caused a scare, but no damage.
Common Mistakes to Avoid
A few habits undo much of the protection two-factor sign-in offers.
- Not saving backup codes, then getting locked out after losing a phone.
- Approving prompts you did not start, especially repeated ones.
- Reading codes to callers, even if they claim to be from your bank or the service itself.
- Using SMS when better options exist, on your most important accounts.
- Protecting only some accounts, while leaving email or the password manager without it.
Key Terms Explained
- 2FA: two-factor authentication, signing in with two different types of proof.
- MFA: multi-factor authentication, using two or more factors.
- Authenticator app: a phone app that generates short-lived sign-in codes.
- Passkey: a password replacement that uses a cryptographic key stored on your device.
- Security key: a small physical device used to confirm sign-ins.
- SIM swap: a scam that moves your phone number to a criminal’s SIM card.
The Bottom Line
Two-factor authentication means a stolen password is no longer enough to break into your accounts. Turn it on today for email, your password manager and your financial accounts, choose passkeys or security keys where you can, save your backup codes and never approve a prompt or share a code you did not ask for. For more, browse our tech and AI explainers.
A second factor works best alongside unique passwords. Our explainer on password managers shows how to create and store them.
Frequently Asked Questions
It is a second check when you sign in, on top of your password. The second check might be a code, a tap on your phone, a fingerprint or a security key.
Almost. MFA means using two or more factors, and 2FA means using exactly two. In everyday use, the terms are often used to mean the same thing.
Phishing-resistant methods, such as passkeys and hardware security keys, are the safest. Authenticator apps come next, and text-message codes are the weakest common option.
Yes, if it is the only option. It is much safer than a password alone, but switch to an app, passkey or security key where the service allows it.
Use your saved backup codes or a backup method to sign in, then set up 2FA on your new device. Without backups, you may need to go through the service’s account recovery process.
Weaker methods can be bypassed through phishing, SIM swaps or tricking you into approving prompts. Phishing-resistant methods block most of these attacks.
Sources
- 1Cybersecurity and Infrastructure Security Agency: More Than a Password, Multifactor Authentication
- 2Cybersecurity and Infrastructure Security Agency: Implementing Phishing-Resistant MFA (Fact Sheet)
- 3National Institute of Standards and Technology: Digital Identity Guidelines, Authentication and Authenticator Management (SP 800-63B)
- 4Federal Trade Commission: Use Two-Factor Authentication to Protect Your Accounts
Every figure in this article is checked against the sources above. How we research and fact-check →
Get One Clear Tech Explainer a Week
Online safety, AI and the tech you use every day in plain English: one explainer every Thursday.
100% free · No sign-up



