Technology & Digital Life · How-to guide
What is two-factor authentication (2FA) and how do you set it up?
What two-factor and multi-factor authentication are, the main types from text codes to security keys, why 2FA matters, and how to turn it on for your accounts.
- Also called
- 2FA, MFA, two-step verification
- Strongest options
- Security keys and passkeys
- Good option
- Authenticator app
- Weakest option
- Text message codes (better than nothing)

Short answerTwo-factor authentication (2FA) asks for a second proof of identity in addition to your password, such as a code from an app, a text message or a physical security key. It protects your account even if your password is stolen. Authenticator apps and security keys are generally stronger than text codes.
Key takeaways
- 2FA adds a second check, so a stolen password alone is not enough to get into your account.
- Authenticator apps, security keys and passkeys are stronger than SMS codes.
- Never share a one-time code with anyone who contacts you.
- Turn on 2FA first for email, banking and social media, and save backup codes.
- Using 2FA together with a password manager gives strong protection.
A password alone is weak protection. People reuse them, choose guessable ones, and fall for phishing pages that steal them. Two-factor authentication (2FA) adds a second hurdle that criminals must clear.
Why passwords alone are not enough
Passwords leak in data breaches, get guessed, are reused across sites and can be tricked out of people by phishing. If a criminal gets your password for one service and you reuse it elsewhere, they can try it everywhere. A second factor means the password on its own is no longer sufficient.
How it works
2FA combines two of three kinds of proof:
- Something you know: a password or PIN.
- Something you have: your phone, a security key.
- Something you are: a fingerprint or face scan.
After you enter your password, the service asks for the second proof. Without it, a thief with your password still cannot get in.
The main methods compared
| Method | Convenience | Protection |
|---|---|---|
| Hardware security key | Tap or plug in | Very strong, resists phishing |
| Passkey | Face, fingerprint or device PIN | Very strong, resists phishing |
| Authenticator app | Open app, type six digits | Strong, but codes can be tricked out of you |
| SMS text code | Easy to receive | Weakest, because messages can be intercepted or numbers hijacked |
| Email code | Easy | Only as safe as the email account |
| Biometrics on a device | Very easy | Depends on the device and how it is used |
Setting up an authenticator app
- Install an authenticator app from your device’s official app store.
- In your account’s security settings, choose the authenticator option.
- Scan the QR code shown on screen with the app.
- Enter the six-digit code to confirm.
- Save the backup codes in a safe place, such as a password manager or printed copy.
- Test by signing in on another browser.
The setting may be called 2-step verification, two-factor authentication or MFA (multi-factor authentication). Many apps let you back up or move codes to a new phone, so check how yours does it before you replace your device.
Which accounts first
Start with your main email account, since it can reset other accounts. Then protect banking and financial apps, social media, cloud storage, work accounts and anything that stores payment details. Our earlier guide to spotting phishing emails explains the tricks used to steal codes.
Weak spots to know about
Two-factor can be bypassed by criminals who trick you into typing a code into a fake site, which is why they often pair phishing with fake login pages. Never read a code aloud to someone who contacts you. SIM-swap fraud, where a criminal convinces your phone company to move your number, targets text-message codes. If you can, choose an app, key or passkey over SMS.
Beware of “push fatigue” attacks
Some services confirm a login with a simple “Approve?” notification on your phone. Criminals who already have your password sometimes exploit this by triggering request after request, sometimes late at night, hoping you will tap “approve” just to make them stop. This is sometimes called push bombing or MFA fatigue.
The rule is simple: never approve a sign-in you did not start yourself. An unexpected request means someone has your password, so change it straight away. Many apps now use number matching, which asks you to type a number shown on the login screen into your phone; the US Cybersecurity and Infrastructure Security Agency (CISA) recommends it precisely because it blocks this kind of bombardment.
Why security keys and passkeys are the strongest option
Security keys and passkeys close the gap that codes leave open. Instead of something you type, they are tied to the real website’s address, so they simply will not work on an impostor site, however convincing it looks. CISA describes FIDO/WebAuthn authentication, the standard behind security keys and passkeys, as the only widely available form of phishing-resistant authentication.
That does not mean other methods are pointless. As CISA also puts it, any multi-factor authentication is better than none. A sensible approach is to switch on whatever an account offers today and upgrade to a passkey or security key for your most important accounts when you can; our guide to how passkeys work explains the technology.
If you lose your phone
Use your backup codes or the recovery process offered by the service, which can take time. Keep a record of how to recover your most important accounts, and consider a second device or hardware key as a spare.
“Remember this device” and trusted devices
Many sites offer to skip the second step on a device you have already used, often for 30 days or so. It is a useful compromise on your own phone or laptop, because you still have to complete the check when something new appears. Don’t turn it on for a shared or public computer, and sign out of the account when you finish. If you lose a device, remove it from the list of trusted devices in your account’s security settings.
Common questions about 2FA
- “Do I still need a strong password?” Yes. 2FA adds a layer, but it doesn’t make a weak, reused password safe.
- “Is 2FA slow?” It usually adds a few seconds, and on trusted devices it may be rare.
- “Is a texted code better than nothing?” Yes. It is weaker than an authenticator app or a security key, but it still blocks many attacks, so switch it on if nothing better is offered.
- “What if I change my phone?” Move your authenticator app accounts before you wipe the old phone, or have your backup codes ready.
The bigger picture
Two-factor authentication works best alongside strong, unique passwords, a password manager and updated software. The UK’s NCSC and the US CISA both recommend turning it on wherever it is available. To learn how the newest approach removes passwords altogether, read how passkeys work. Keeping your files safe with the 3-2-1 backup rule and setting up your router sensibly, as in our guide to Wi-Fi bands, complete the picture.
Comparison and differences: 2FA methods
Not all second factors are equally strong.
- Security keys and passkeys: The strongest option, and resistant to phishing.
- Authenticator apps: Strong and widely supported, and they work offline.
- Push notifications: Convenient, but approve only sign-ins you started yourself.
- Text message codes: Better than nothing, but vulnerable to SIM-swap fraud.
Backup codes: what they are and where to keep them
When you turn on two-factor authentication, many services give you a list of one-time backup codes. Each code works once and lets you sign in if you lose your phone or security key. Print them or write them down and keep them somewhere safe at home, or store them in a password manager. Do not keep them only on the phone you use for 2FA, because if you lose the phone you lose the codes too. If you use a code, cross it off, and generate a new set when you run low.
Setting up 2FA for a family
Helping family members set up two-factor authentication on their key accounts is one of the most useful security tasks you can do together. Start with email, because it controls password resets for many other accounts. Use an authenticator app where possible rather than text messages. Make sure each person has their own backup codes stored safely, and that you know how they would recover access if they lost their phone. For children's accounts, use the family or parental control options provided by the service.
Final thoughts
Two-factor authentication adds a second lock to your accounts, so a stolen password alone isn't enough. Turn it on for email, banking and social media first, and choose the strongest method each service offers. For more, browse the Technology & Digital Life guides on All Informations.
Sources and further reading
These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.
Frequently asked questions
Is 2FA the same as MFA?
MFA (multi-factor authentication) is the general term for using two or more checks. 2FA means exactly two.
What if I lose my phone?
Save your backup codes somewhere safe when you set it up, and note how to recover your account with each service.
Are text message codes safe?
They are better than nothing, but they can be intercepted or redirected through SIM-swap scams. Use an authenticator app or security key where you can.
What are backup or recovery codes?
They are one-time codes a service gives you when you turn on two-factor authentication, for use if you lose access to your phone or key. Each code works once. Store them somewhere safe and separate from your phone, such as a password manager or a printed copy at home.






