What Is 2FA?
Two-factor authentication explained for everyday users: why to enable it, which second factor to pick, and what to do when it fails.
Last updated: Oct 12, 2026 09:12:48
Two-factor authentication means your password is no longer enough on its own. After typing it, the service asks for a second, different kind of proof — usually a six-digit code from your phone. Someone who steals your password gets stuck at that second step.
This page is the practical version: what the second factor actually is, which type to choose, how to switch it on, what it does not protect you from, and the five-minute task most people skip until the day it costs them an account.
The two factors, concretely
Your password is “something you know”. It can be copied, reused, guessed, and it leaks in breaches — all the time. The second factor is a different category: usually “something you have”, meaning a device holding a secret the service issued to you.
A useful analogy: a password is a key you can photograph and duplicate. A second factor is a key that only works while it is in your pocket, and changes shape every thirty seconds.
| First factor | Second factor | |
|---|---|---|
| Category | Knowledge | Possession (typically) |
| Example | Password or passphrase | App-generated code, hardware key, SMS code |
| If stolen | Attacker can try to log in | Attacker still cannot complete the login |
| If forgotten | Reset by email | Recovery codes, or account recovery |
What 2FA actually protects you from
Three scenarios cover most real-world account takeovers:
- Password reuse after a breach. A site you used years ago is breached, the email/password pair is sold, and automated tools try it on hundreds of other services. With 2FA, the correct password stops being enough.
- A stolen password from a phishing page. You type your password into a convincing fake login. The attacker has it — but not the code, which arrives on your phone for the real site.
- Someone who already knows your password. A colleague, an ex, a family member, a support agent. The second factor turns “they know the password” into “they still cannot get in”.
In all three, the value comes from the attacker having half the credentials. That is also the limit: if they can get both halves, 2FA is not saving you.
Which second factor should you pick?
| Option | Effort | Strength | Pick it when |
|---|---|---|---|
| Authenticator app (TOTP) | Install one app, scan QR codes | Strong | Default choice. No phone number involved, works offline, supported almost everywhere. |
| Passkey / security key | Extra step, sometimes a purchase | Strongest | Email, banking, and anything an attacker would most want. The only option that resists a well-built phishing site. |
| Push notification | Easiest | Medium | You will actually keep it on. Watch for “approve” fatigue and prefer prompts that show a number to match. |
| SMS code | Easiest | Weak | Only when nothing else is offered. Vulnerable to SIM swapping and to anyone who controls your number. |
| Email code | Easiest | Weak | Better than nothing, but only as strong as that email account — which is often the account you are trying to protect. |
If the service offers several, prefer the one higher in this table even if it is more annoying. If it only offers SMS, turn it on anyway; a weak second factor still defeats a password-only attack.
How to turn it on
The menu names vary, the shape is always the same:
- Open security settings. Look for “Security”, “Login & security”, “Privacy & security”, or “Two-step verification”.
- Choose the method. “Authenticator app” is usually listed first; “Text message” is the fallback.
- Scan the QR code with your authenticator app, or choose “Can’t scan?” and type the setup key manually.
- Enter the six-digit code the app shows to prove the pairing worked.
- Save the backup codes the service displays. This step is not optional — see below.
Then sign out and sign back in once to confirm the flow works before you need it in a hurry.
Platform-specific walkthroughs for Google, Microsoft and Apple accounts are in how to set up 2FA.
What 2FA does not protect you from
Being honest about the gaps is what makes the rest of the advice usable:
- Real-time phishing. A proxy site can ask for your password, forward it to the real service, ask for the code, and forward that too — all inside the 30-second window. Only domain-bound credentials (passkeys, hardware keys) stop this.
- Stolen session cookies. If malware lifts an authenticated session, no login step is involved and the code is irrelevant.
- Malware on your device. It can read the screen, log keystrokes, and copy authenticator secrets.
- Account recovery abuse. An attacker who convinces support to reset your factor bypasses 2FA entirely. This is why recovery email and phone details matter.
- SIM swap. Relevant if your second factor is SMS: someone ports your number and receives your codes.
None of these makes 2FA pointless. They define the order of operations: fix the weak recovery path and the reused password too, because attackers take the cheapest route available.
The 30-second code, and why it sometimes fails
TOTP codes are derived from the current time, so they expire. Two consequences people hit constantly:
- A code typed at second 28 is already dead when you press Enter at second 31. Generate, then submit immediately.
- A device clock that is more than ~30 seconds off produces codes that are always wrong, no matter how carefully you type. Turn on automatic time sync.
Time zone is not the problem — TOTP counts UTC seconds, so travelling changes nothing. If codes keep failing, work through 2FA code not working before resetting anything; the reset is the step that can lock you out permanently.
If the app is gone and you have the setup key, the 2FA code generator produces the same six digits in your browser without uploading anything.
Backup codes: five minutes now, or a lost account later
Every service that offers 2FA offers backup codes: a list of single-use strings that work when the authenticator does not. They are the difference between “annoying afternoon” and “account gone”.
- Find them in the same security settings page, usually behind “View backup codes”.
- Store them somewhere reachable without your phone — a password manager entry, or printed and filed.
- Do not keep them only in the phone that holds the authenticator; that is the device you are planning for the loss of.
- Regenerate them after any device change, since old lists may be invalidated.
Details per platform: 2FA backup codes. If a code or backup code still fails, lost your phone walks through the recovery order.
Where the six digits come from
When you scan the QR code, the service hands your app a random secret. From then on, both sides compute the same six digits from that secret and the current time — nothing is sent to your phone, and nothing needs a network connection.
That design has two practical consequences:
- It works offline. Airplane mode does not stop your codes; only a wrong clock does.
- The code can be relayed. A convincing fake login page can forward your password and your code to the real site within the 30-second window. This is why passkeys exist, and why “check the address bar” still matters even with 2FA on.
Five myths worth dropping
- “I have 2FA, so I can reuse passwords.” No. Reuse still lets an attacker into every account that does not have 2FA, and into the recovery email that resets the ones that do.
- “SMS is fine for everything.” It is better than nothing and worse than an app. SIM swapping is a real, routine attack, not a movie plot.
- “Backup codes are optional.” They are the only thing standing between a lost phone and a lost account. Save them when the service shows them, because it will not show them again.
- “2FA slows down every login.” Most services offer “remember this device” for 30 days. You pay the cost once per device, not once per session.
- “With 2FA I cannot be hacked.” You can — through session theft, real-time phishing, or a help desk that resets the factor. 2FA removes the cheapest attack, not every attack.
Setting it up for someone else
Doing this for a parent or a colleague is a five-minute job with three rules:
- Enrol on their device, with their account. Never add their secret to your phone “so you can help later” — you become the single point of failure, and they cannot recover without you.
- Save the backup codes where they can reach them. A password manager entry they can open, or a printed sheet in a drawer they already use for documents. Not a screenshot in a chat.
- Test one full login and one recovery before you leave, and write down the account name and the app used. Future-you will not remember which of four apps holds which entry.
When a service offers no 2FA
Some sites still do not support it. You cannot fix that, but you can limit the damage:
- Give it a unique password that exists nowhere else, generated and stored in a password manager.
- Use an email alias so a breach does not hand attackers your real address to try elsewhere.
- Assume it will leak, and avoid storing payment details or identity documents there.
- Check back annually — services add 2FA quietly, and moving an account to a strong factor later is cheap.
2FA, MFA, and passkeys
2FA means exactly two factors; MFA means two or more. In everyday use the terms describe the same login experience. Passkeys are a newer shape of the same idea: a credential stored on your device, unlocked biometrically, that never leaves the device and cannot be phished because it is bound to the site’s domain.
The comparison, with the cases where the distinction matters, is in what is MFA and MFA vs 2FA.
Changing phones, and how long this all takes
Setup is genuinely quick: about two minutes per account once the app is installed, and less after that.
The part worth planning is the change of device. When you move to a new phone, the authenticator entries do not always come with you — some apps sync, some do not, and backups are frequently older than the accounts they cover. Before wiping the old phone:
- Check whether your authenticator app offers export or cloud sync, and use it if it does.
- Sign in to the important accounts on the new device while the old one still works.
- Re-enrol the accounts that cannot be migrated, using a fresh code from the old device until the new one is confirmed working.
- Only then remove the old device and regenerate backup codes.
The full sequence, including the Android-to-iOS differences, is in move authenticator to a new phone.
Do these five things in the next ten minutes
- Turn on an authenticator app for your email account. It is the master key to everything else.
- Save the backup codes for that account somewhere off the phone.
- Repeat for banking, then for the two or three services that could ruin your week.
- Check that your recovery email and phone number are current.
- Enable automatic time sync on the phone that generates the codes.
That list blocks the overwhelming majority of realistic account takeovers, and it takes less time than reading the rest of this site.
Frequently asked questions
Do I really need 2FA?
Yes. Without it a single leaked or reused password is enough to take over an account, and breached password lists are replayed automatically across services.
Which 2FA method is safest?
A passkey or hardware security key, because it is bound to the site's domain and cannot be phished. An authenticator app is the practical default for everything else.
What happens if I lose my phone?
Use a backup code first, then a signed-in session or the provider's recovery process. This is why saving backup codes when they are offered is not optional.
Why does my 2FA code keep failing?
Usually the device clock is more than 30 seconds off, or the code expired while being typed. Wrong account entries and parameter mismatches cover most of the rest.
Can 2FA be hacked?
Yes, through stolen session cookies, real-time phishing proxies, or a help desk that resets the factor. It removes the cheapest attacks, not every attack.
Do I need 2FA on every account?
Prioritise email, banking and anything that can reset other accounts. Email first, because it is the recovery route for almost everything else.