Privacy

How to Set Up Two-Factor Authentication (2FA) in 2026: A Step-by-Step Guide

Two-factor authentication stops a stolen password from opening your accounts. Here is how to set it up the right way, in the right order, on the accounts that matter most.

Cysoro Security TeamPublished · 8 min read
Sign in✓Second factor OK 2FA • • • 482 913 PRIVACY Two-factorauthentication Set it up in minutes.
Quick answer

To set up two-factor authentication, open the account's security settings, find the two-factor or two-step authentication option, and choose the strongest method offered: a passkey or security key first, then an authenticator app, and SMS only as a last resort. Save your backup codes, add a second method, and repeat the process for your email, banking and social accounts.

Key takeaways

  • Passkeys and security keys are the strongest second factor because a fake login page cannot reuse them.
  • Start with your email, then banking and your phone carrier, because those accounts can reset almost everything else.
  • Save backup codes offline and remove SMS as a second factor once a stronger method is working.

A password alone is a single point of failure. Once it leaks in a breach or is typed into a fake login page, anyone can use it. Two-factor authentication adds a second check that the attacker does not have — and setting it up takes about two minutes per account.

What is two-factor authentication?

Two-factor authentication (2FA) asks for two different kinds of proof when you sign in: something you know, like a password, and something you have, like a code from an app or a security key.

NIST groups authentication factors into three types: something you know (a password or PIN), something you have (a token, phone or security key), and something you are (a fingerprint or face). Two factors must be different kinds — two passwords are still one factor. NIST's electronic authentication guideline sets out those assurance levels.

CISA puts it simply: even if someone steals your password, they still cannot meet the second requirement, so they cannot reach the account. That is why CISA tells people to turn on MFA for email, banking, social media, shopping and business accounts.

People also call it 2-step verification, two-step authentication or login verification. The names vary by service, but the idea is the same: a password plus a second, separate check.

How does two-factor authentication work?

You enter your username and password as usual, the service asks for a second proof, and you provide it — a code, a tap, a fingerprint or a security key — before you are let in.

With an authenticator app, the app generates a new six-digit code every 30 seconds from a secret shared with the service when you set it up. The code changes constantly, so a code stolen last week is useless today.

With a passkey or security key, your device proves it holds a private key that only works for the real website address. A fake login page cannot reuse that proof, which is what makes FIDO/WebAuthn phishing-resistant.

With SMS, the service texts you a code. It works the same way in principle, but the code travels over the phone network, which is why it is the weakest option.

How a two-factor login works1Enter passwordsomething you knowusername + password2Second factorsomething you haveapp code, tap or key3Access grantedboth checks passedpassword alone failsAn attacker with your password still stops at step 2.
The three steps of a two-factor login. Illustration by Cysoro.

Which 2FA method should you choose?

Choose the strongest method the account offers: a passkey or security key first, an authenticator app second, push with number matching third, and SMS only as a last resort.

CISA ranks MFA methods in that order. Its fact sheet calls FIDO/WebAuthn the only widely available phishing-resistant authentication, and describes SMS as vulnerable to phishing, SS7 attacks and SIM swaps. NIST's SP 800-63B-4 gives telephone-network verification a restricted status, as CISA's own best-practice guidance explains.

MethodHow it worksPhishing-resistant?Best for
Passkey / security keyFIDO/WebAuthn, unlocked by fingerprint, face or PINYesEmail, banking, work accounts
Authenticator app codeSix-digit code, new every 30 secondsNoMost accounts, no hardware needed
Push with number matchingApprove and type the number shown on screenNoWork accounts using Microsoft or similar apps
Push without matchingTap approve on your phoneNoOnly if nothing better is offered
SMS or voice codeCode sent by text or callNoLast resort only
Email codeCode sent to your inboxNoAvoid — it protects an account with itself

CISA still holds that any MFA is better than no MFA. If SMS is the only option an account offers, turn it on — then check back later for a stronger method.

How do I set up two-factor authentication step by step?

Open the account's security settings, find the two-factor option, pick your method, and save the backup codes. The exact labels differ, but the path is nearly the same everywhere.

  1. Open security settings. Look under Settings, Profile or Account, then Security, Password and security, or Sign-in and security.
  2. Find the 2FA option. It may be called two-factor authentication, two-step verification, login verification or multi-factor authentication. Turn it on.
  3. Choose the strongest method offered. Look for passkey, security key or sign in without a password first. If those are absent, choose authenticator app.
  4. Set up an authenticator app. Install an app such as Google Authenticator, Microsoft Authenticator or Authy, scan the QR code shown on screen, then type the six-digit code the app shows to confirm.
  5. Or register a passkey or security key. Follow the prompts, unlock with your fingerprint or PIN, and insert or tap the key when asked.
  6. Save your backup codes. Copy the recovery codes shown, print them or store them in a password manager, and keep them somewhere separate from your phone.
  7. Add a second method. Register a second authenticator device or a spare security key so losing one device does not lock you out.
  8. Test it. Sign out and sign back in to confirm the second step works, then remove SMS as a method if a stronger one is now active.

Do this for one account at a time, starting with the most important ones below. A password manager helps here too: it generates strong unique passwords, so the first factor is not the weak link. Try our free password generator when you reset passwords during setup.

Which accounts should I protect first?

Protect your primary email first, then anything holding money, then your phone carrier account. Those three set the ceiling for everything else.

Your email can reset almost every other account, so it is the key to the whole chain. Banking, payment apps and anywhere your card is stored come next, because the loss there is direct and immediate.

Your phone carrier account is the one people miss. If SMS codes are used anywhere, control of your phone number is control of those codes — exactly what SIM swap attacks target. Add a carrier PIN and turn on its own account protections.

After those three, work through social media, cloud storage, shopping, gaming and work accounts. CISA recommends turning MFA on for every account or app that supports it, so keep going until the list is done.

How do I set up 2FA on Google, Apple and Microsoft?

All three support passkeys and authenticator apps, and all three put the setting under security in your account page. Use the strongest option each one offers.

For Google, open your Google account, go to Security, then 2-Step Verification, and add a passkey or an authenticator app. Google also offers an Advanced Protection Program for people at higher risk, which requires security keys.

For Apple, open Settings on your iPhone, tap your name, then Sign-In and Security, and turn on two-factor authentication. Apple uses trusted devices and phone numbers for verification codes.

For Microsoft, open your Microsoft account security page, choose Advanced security options, and add a passkey, an authenticator app or a security key. Microsoft Authenticator also supports number matching for work and school accounts.

On each one, check the recovery options after setup. A passkey plus an SMS fallback is only as strong as the SMS fallback, so remove weaker methods once the stronger one works.

What mistakes should I avoid with 2FA?

The most common mistakes are leaving SMS enabled alongside a passkey, saving backup codes only on the phone they protect, and approving push prompts you did not start.

  • Leaving SMS on. CISA notes that enrolling in authenticator-based MFA does not automatically unenroll SMS. Remove it once a stronger method works.
  • No backup plan. Losing your only phone without backup codes can mean days of account recovery. Keep a spare key or printed codes.
  • Approving unexpected prompts. A flood of push notifications is a push fatigue attack: the attacker has your password and hopes you tap approve to make it stop. Never approve a login you did not start.
  • Sharing codes. A real support team will never ask for your 2FA code. Anyone asking for it is running a scam — see our guide to spear phishing for how these requests are framed.
  • Reusing passwords. 2FA helps, but a unique password per account still matters. Check whether a password has already leaked with our pwned password checker.
Your 2FA setup checklist✓Strongest method chosen — passkey or security key where offered✓Backup codes saved somewhere separate from your phone✓A second method registered, in case the first device is lost✓SMS removed as a factor once a stronger method worksTick all four for every important account.
Four checks that make a 2FA setup genuinely strong. Illustration by Cysoro.

How should a small business roll out 2FA?

Require 2FA for every account, starting with administrators and anyone with access to money, customer data or remote access, and enforce it with a setting rather than a memo.

CISA's small-business guidance says to require MFA wherever possible, beginning with admin accounts and remote access, and to use a phishing-resistant method where the system offers one. A request that says please turn it on is not a control — an enforced setting is.

Roll it out in this order: email and cloud services, VPN and remote desktop, admin and finance accounts, then everyone else. Give people security keys for admin accounts first, since those are the highest-value targets.

Then audit: look for accounts that never enrolled, including new hires and people who changed phones. Our small business cybersecurity checklist covers MFA alongside backups, updates and device security.

What do I do if I am locked out of 2FA?

First try your backup codes or a second registered method, then use the service's account recovery process. Do not create a new account and abandon the old one.

Backup codes are the fastest way back in, which is why saving them matters. A spare security key or a second phone with the authenticator app also works immediately.

If neither is available, start account recovery from the service's help page. Expect identity checks — a recovery email, a photo ID, or a waiting period. The delay is deliberate: it stops an attacker from using recovery to bypass 2FA.

Once you are back in, set up 2FA again immediately, register two methods this time, and save fresh backup codes.

The bottom line

Two-factor authentication is the single highest-value security step most people can take, and it costs nothing. Start with your email, pick the strongest method each account offers, and save your backup codes.

Once the important accounts are done, keep going until every account that offers 2FA has it on. Check your passwords as you go with the free password strength checker, and make the second factor a habit, not a one-off project.

Frequently asked questions

What is two-factor authentication?

Two-factor authentication, or 2FA, is a login check that asks for two different kinds of proof: something you know, like a password, and something you have, like a phone app code or a security key. A stolen password alone is not enough to get in.

Is two-factor authentication the same as multi-factor authentication?

Two-factor authentication is a type of multi-factor authentication that uses exactly two factors. Multi-factor authentication is the broader term and can use two or more factors, such as a password plus a fingerprint plus a security key.

Which two-factor authentication method is safest?

Passkeys and hardware security keys using FIDO/WebAuthn are the safest, because they are phishing-resistant: the login is tied to the real website, so a fake page cannot reuse it. Authenticator apps are next, and SMS codes are the weakest option.

What should I do if I lose my phone with my authenticator app?

Use the backup codes you saved when you set up 2FA, or sign in with a second registered method such as a security key. If neither works, use the account recovery process, which usually means proving your identity with another email address or ID.

Should I use SMS for two-factor authentication?

Use SMS only when the account offers nothing stronger. SMS codes can be stolen by phishing, SIM swap attacks and weaknesses in phone networks, and CISA advises migrating away from SMS-based MFA where a stronger option exists.

Do I need two-factor authentication on every account?

Turn it on for every account that offers it, starting with email, banking, social media and shopping. Your email account matters most because it can reset the passwords of many other accounts.

What are backup codes and where should I keep them?

Backup codes are one-time codes the service gives you when you enable 2FA, for use if your phone or security key is lost. Print them or store them in a password manager, and keep a copy somewhere separate from your phone.

Can two-factor authentication be hacked?

Yes, in limited ways. One-time codes and push approvals can be phished on a fake login page, and push fatigue attacks trick people into approving a login they did not start. Passkeys and security keys resist those attacks because they cannot be reused on a different website.

Sources

  1. CISA — Mobile Communications Best Practice Guidance
  2. NIST — Electronic Authentication Guideline (SP 800-63-2)
  3. CISA via CyberArtical — Turning on a second factor, in the order the agencies rank them
  4. GotRnd — How Does Two-Factor Authentication Work?
  5. Bereg-IT — Two-factor authentication for business
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against CISA guidance on phishing-resistant MFA and NIST SP 800-63 authentication guidance.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free