Skip to content
Free weekly tip

SC-14 Online Safety & Privacy

What Is Two-Factor Authentication and Why You Need It

You’ll need: Phone or computer, 15 minutes

Older woman looking at her smartphone beside an open laptop displaying verification icons on a wooden desk.
Two-factor authentication acts as a digital deadbolt to significantly strengthen defenses and provide essential account protection.

Two-factor authentication, often shortened to 2FA, keeps a stranger out of your email, Facebook or bank account even if they somehow learn your password.

After you type your password, the account asks for a second proof that it is really you, usually a code or a tap on your phone.

Turn it on for your email first, then Facebook and your bank. Before you finish, print your backup codes and add a second phone number, so a lost or broken phone never locks you out of your own accounts.

What the second step actually protects you from

A password is something you know, and something you know can be stolen. It can be typed into a fake website, guessed, or leaked when a company is hacked.

Two-factor authentication adds something you have, usually your phone, so someone holding only your password still cannot get in.

Setting up an extra verification step also plays an essential part when learning how to shop online safely across popular store accounts.

Companies use different names for the same idea. CISA’s guide lists the names you may see, including 2-Step Verification, two-factor authentication and multi-factor authentication.

If a settings page uses any of them, it is the feature this article covers.

You will not be asked for a code every single time. Many services let you mark your own computer or phone as trusted, so the extra step mostly appears when someone signs in from a new device.

Over-the-shoulder view of a person looking at a phone for a security code while a laptop sits open nearby
The usual pattern: type your password on the computer, then read the code or approve the prompt on your phone.

Four ways the second step can reach you

You choose how the second step arrives. Most large services offer several methods, and you can set up more than one on the same account.

Method How it works Ease of use Security Risk of lockout
Text message (SMS) A code arrives by text; you type it in Easiest. Works on any cell phone, including flip phones Good. Weakest of the four, because a scammer who tricks your carrier into moving your number to their phone (a “SIM swap”) can receive your codes Low, unless you change numbers or have no signal
Phone prompt (push notification) A message pops up on a phone already signed in to the account; you tap to confirm Very easy. No typing Strong. The danger is tapping “yes” out of habit when you did not sign in Medium. The phone must be with you and online
Authenticator app A free app, such as Google Authenticator, shows a fresh code that changes every few moments Moderate. Setup means scanning a square barcode (a QR code) Strong. Codes are made on your phone and never travel by text, and they work without signal Higher if the phone is lost and you have no backup codes
Security key A small USB or tap-to-phone device you buy and plug in or touch Hardest. Requires a purchase and setup Strongest. It will not work on a fake website High if you lose it and have no spare key

If you are unsure, start with text messages or phone prompts. Any second step stops the most common attack, which is a stolen password, and you can move to an authenticator app later if you are comfortable with it.

A small USB security key lying on a white desk beside a laptop and a smartphone
A security key is about the size of a house key. Most people do not need one, but if you buy one, buy two and keep the spare at home.

Turning on 2-Step Verification for Google and Gmail

Your email matters most, because password reset links for your bank and other accounts go there. These steps follow Google’s instructions for turning on 2-Step Verification.

  1. Open your Google Account. On a computer, go to myaccount.google.com. In the Gmail app, tap your profile picture in the top corner.
  2. If you are in the Gmail app, tap Manage your Google Account.
  3. Select Security & sign-in.
  4. Under How you sign in to Google, select Turn on 2-Step Verification.
  5. Follow the on-screen prompts. Enter your mobile number and choose whether to receive codes by text message or voice call.
  6. Type the 6-digit code Google sends you to confirm the number works.
  7. Finish the prompts. The page should now show 2-Step Verification as on.

If you are already signed in to Google on a smartphone, Google may offer phone prompts there as well. That is fine to accept; you can still keep text codes as a fallback.

Turning on two-factor authentication for Facebook

Scammers take over Facebook accounts to message your friends asking for money. Facebook now handles this setting in Meta’s Accounts Center, as described in Facebook’s help guide to two-factor authentication.

  1. In the Facebook app, tap Menu.
  2. Tap Settings & privacy.
  3. Tap Settings.
  4. Tap Accounts Center.
  5. Tap Password and security.
  6. Tap Two-factor authentication.
  7. Select your Facebook account.
  8. Choose Text message (SMS), Authentication app or Security key, then follow the prompts.

On a computer, click your profile picture, then Settings & privacy and Settings; from Accounts Center the path is the same. When you finish, Facebook offers a set of 10 recovery codes.

Save them, as explained below.

Apple Accounts (the new name for Apple ID) usually have two-factor authentication on already. To check on an iPhone or iPad, open Settings, tap your name, then Sign-In & Security and look for Two-Factor Authentication; on a Mac, start in System Settings instead.

For your bank, open its app or website and look under security or profile settings.

How to never get locked out

The real risk with two-factor authentication is not hackers. It is losing the phone that receives your codes, and a few minutes of setup now prevents that.

Backup codes are one-time codes you can type in place of a texted code. Each works once.

Google’s backup codes page explains how to get a set of 8-digit codes:

  1. Open your Google Account and select Security & sign-in.
  2. Under How you sign in to Google, select 2-Step Verification.
  3. Under Backup codes, select Continue.
  4. Select Get backup codes, then print them.

Do the same with Facebook’s 10 recovery codes. Keep the paper with your important documents, not as a photo on the phone you might lose.

Hands placing a folded sheet of paper into a metal lockbox in a home office
Printed backup codes belong wherever you keep your passport or insurance papers. Label each sheet with the account it belongs to.

Add a backup phone number

On the same 2-Step Verification page, add a second number: a landline that can take voice calls, or the mobile phone of a relative you trust.

If your main phone is lost, Google lets you sign in with a backup phone added in the 2-Step Verification section or with a backup code.

Do this before you need it, because Google can take up to 7 days to trust a newly added number for security codes. On Apple devices, you can add trusted phone numbers under Sign-In & Security.

Name a recovery contact on Google

Google also lets you add a trusted family member or friend as a recovery contact. They cannot open your account; they only help confirm it is you if you get stuck.

  1. In Security & sign-in, under How you sign in to Google, tap Recovery contacts.
  2. Tap Add recovery contact.
  3. Enter their email address and tap Send request.

The invitation expires after 7 days, so let the person know it is coming.

Unexpected codes: a sign your password leaked

An unexpected code or prompt means someone typed your correct password, and the second step just stopped them. Do not approve the prompt, and never read a code to anyone who calls or texts; no real bank, company or agency asks for it.

This trick is common in phone scams and in phishing emails.

If strange login prompts continue to arrive, review how to tell if your computer has been hacked to ensure no unauthorized software is running on your machine.

Next, change that account’s password by typing the website address yourself rather than tapping a link. A strong, unique password keeps the same leak from opening other accounts.

If you already gave a code away, change the password right away, call your bank if money could be involved, and report it at ReportFraud.ftc.gov. Our guide on what to do if you think you’ve been scammed covers the full list.

Two-Step Sign-In Questions for Flip Phones and New Numbers

Do I need a smartphone to use it?

No. Text message codes work on any cell phone, including flip phones, and Google can read codes to you by voice call on a landline.

What happens when I change my phone number?

Add the new number to each account before you give up the old one, then remove the old number. On Google, allow up to 7 days for the new number to be trusted.

Can a family member’s phone receive my codes instead of mine?

It works, but they would need to be reachable every time you sign in on a new device. A relative’s phone is better as a backup number than as your main one.

Does two-factor authentication replace a good password?

No, the two work together. A password manager can create and remember a different password for every account, and two-factor authentication covers you if one leaks.

Share this guide Facebook Email

The weekly tip

One clear tech tip every week

A short, plain-English guide from our editorial team: one task, the steps, and what to watch out for. Free.

One email a week. Unsubscribe with one click.