How to Set Up Two-Factor Authentication

How to set up two-factor authentication in 6 steps: pick an app or security key, turn it on for email and bank accounts, and save backup codes.

Person holding a smartphone showing a six-digit login code beside an open laptop

Key Takeaways

  • Setting up two-factor authentication takes about 5 minutes per account and blocks most attacks that rely on a stolen password.
  • Start with your email, bank, phone carrier and any account that can reset other passwords, since email is the master key to the rest.
  • An authenticator app or security key is safer than a text message code, but a text code is still much better than nothing.
  • Save your backup codes somewhere offline before you finish setup, or you can lock yourself out if you lose your phone.

How to set up two-factor authentication is simple: open the security settings of an account, choose “two-step verification” or “multi-factor,” pick a method, and save your backup codes. It takes about 5 minutes per account. Once it is on, a stolen password alone is not enough for someone to break in.

What Is Two-Factor Authentication?

Two-factor authentication, often called 2FA or MFA, asks for a second proof of identity on top of your password. That second proof is something you have, such as your phone, or something you are, such as a fingerprint. A thief who steals your password still cannot log in without it.

The Cybersecurity and Infrastructure Security Agency says that turning on multifactor authentication is one of the simplest ways to protect your accounts, and it takes only 2 steps to log in. Passwords leak in data breaches and phishing scams all the time. A second factor limits the damage.

You do not need to be good with computers to use it. Most sites walk you through the steps, and the check takes a few seconds each time you sign in on a new device.

Which Method Should You Choose?

Pick the strongest method each account offers that you will actually use. The common choices differ in safety and ease. All beat having no second factor.

Here is how they compare.

Method How it works Security Ease of use
Text message code 6-digit code sent to your phone Fair Very easy
Authenticator app App makes a new code every 30 seconds Good Easy
Security key Small USB or NFC device you tap or plug in Best Moderate
Passkey Fingerprint or face unlock replaces the password Best Very easy
Email code Code sent to your inbox Fair Easy

Our take: for most people, an authenticator app is the best balance, and a security key is worth buying for your email and any account holding money. Use a text code only when nothing else is offered, because attackers can sometimes hijack a phone number through a SIM swap.

If you are new to authenticator apps, free ones from major tech companies work fine. Pick one and use it for all your accounts, so you have only one app to keep track of.

How Do You Set It Up Step by Step?

The steps are nearly the same everywhere. These work for most email, social media, shopping and banking sites.

  1. Sign in and open Settings, then find Security or Privacy.
  2. Look for “Two-factor authentication,” “Two-step verification” or “Multi-factor.”
  3. Choose your method, such as an authenticator app.
  4. Scan the QR code shown on screen with your authenticator app, or type in the setup key.
  5. Enter the 6-digit code the app shows to confirm it works.
  6. Save the backup codes the site gives you.

Do these steps on a computer if you can, since it is easier to scan a QR code on one screen with your phone. If you only have a phone, most sites let you copy the setup key into the app instead.

Which Accounts Should You Protect First?

Start with the accounts that would hurt most to lose. Your email comes first, because it can reset almost every other password. Then add your bank and credit card accounts, your phone carrier, and your cloud storage.

Government accounts matter too. A Social Security account requires a second step through Login.gov or ID.me, so your benefits and records are protected. The Login.gov site lets you add up to several methods, and it is worth adding 2 in case one fails.

After that, protect social media, shopping, health portals and anything that stores a credit card. If your identity is ever stolen, our guide on what to do if your identity is stolen walks through the recovery steps.

What Are Backup Codes, and Why Do They Matter?

Backup codes are one-time codes that let you sign in if you lose your phone or cannot get your second factor. Most sites give you 8 to 10 of them when you finish setup. Each one works once.

Save them in a safe place offline. Print them and keep the page in a drawer or a safe, or store them in a password manager. Do not keep them in a note on the same phone that runs your authenticator app.

Also record any recovery email or phone number on the account. Without backup codes or a recovery path, you could be locked out for days. If you want a safe place for codes and passwords, see our guide to free password managers.

What Should You Do If You Lose Your Phone?

Use a backup code to sign in, then move your two-factor setup to the new phone. Do this before you wipe or sell the old one. Some authenticator apps can sync across devices, which makes switching easier.

If you have no backup codes, use the account’s recovery process. It usually asks for ID or answers to security questions, and it can take days. Call your phone carrier too, and ask them to add a PIN to your account so no one can move your number.

When you get a new phone, set up each account again, and remove the old device from the account’s list of trusted devices. Do this for each account that has a trusted device list.

Can You Use Two-Factor Authentication Without a Phone Number?

Yes. Many accounts accept an authenticator app, which works without cell service once it is set up.

A hardware key plugs into a USB port or taps against your phone. Both avoid the SIM swap risk tied to text codes.

Some people share one phone number across several accounts, and that is fine for low-risk sites. For banking and email, use an app or key when the site allows it. If a site only offers text codes, use a number that is not publicly listed.

Passkeys are a newer option that many big sites now support.

A passkey lets you sign in with your fingerprint, face or device PIN, and there is no code to type. It is also much harder to steal through a fake login page, so turn it on wherever it is offered. Keep one backup method set up too.

What Scams Target Two-Factor Codes?

Scammers know that codes are valuable. A common trick is a text or call that claims to be your bank and asks you to read back the 6-digit code you just received. Never share a code with anyone, even someone who says they work for the company.

The Federal Trade Commission warns that real companies do not ask for the 6-digit verification codes you get by phone or text. If you get a code you did not request, someone may be trying to log in. Change your password right away and check for other signs of a breach.

Phishing pages can also copy a login screen and ask for your code. Read our guide to how to spot a phishing email so you can spot fake sign-in pages. For more app and software help, visit our apps and software hub.

Frequently Asked Questions

Is two-factor authentication really necessary?

Yes. Passwords get stolen in breaches and phishing, and a second factor stops most of those attacks. It takes a few minutes and is free on nearly all major sites.

Is a text message code safe enough?

It is better than nothing, but weaker than an app or key. Attackers can sometimes take over a phone number. Use an authenticator app when you can.

What if I do not have a smartphone?

Many sites offer text codes to a basic phone or a code sent by voice call. You can also buy a physical security key, which does not need a phone.

Do I need two-factor authentication on every account?

Not every one, but on any that hold money, personal data or email. Start with the most important 5 accounts and add others over time.

Sources