Skip to content
Appcyclopedia
At sign on a colourful gradient, illustrating how to turn on two-factor authentication for Gmail
Gmail logo Gmail guide

How to turn on two-factor authentication for Gmail

· 10 min task · Tested

By Daniel Okonkwo, Appcyclopedia writer

Daniel Okonkwo writes about phones and mobile apps for Appcyclopedia, working on a MacBook Pro, a Pixel 9 Pro and an iPhone 15.

  • Web
  • iOS
  • Android

Short answer

Gmail’s two-factor authentication is your Google Account’s 2-Step Verification. Open your Google Account, go to Security & sign-in, and under How you sign in to Google select Turn on 2-Step Verification. Then add a second method and print your backup codes.

The catch: the risk after turning it on is losing the phone, not being hacked. With no other method or saved codes, you end up in account recovery, which can take 3 to 5 business days.

Below: the steps from turning it on to a setup that survives a lost phone, how the methods compare, and what to do when a code does not arrive.

How to turn on two-factor authentication for Gmail, with a backup that works

To turn on two-factor authentication for Gmail, switch on 2-Step Verification for your Google Account, then add methods until losing any one device leaves you another way in. The last group checks what the change affects.

  1. Turn it on

    Open 2-Step Verification in your Google Account

    Open your Google Account at myaccount.google.com and select Security & sign-in. Under How you sign in to Google, select Turn on 2-Step Verification and follow the steps on screen. If it already shows as on, you are checking your methods rather than setting it up, so skip to step 3.

  2. Use Google prompts or a passkey as the main step

    Google prompts are the best choice if you do not sign in with a passkey: you tap Yes on a phone signed in to your account. Prompts help protect against SIM swap attacks, while codes by text or call can be vulnerable to phone number-based hacks. A passkey signs you in with your fingerprint, face or screen lock and skips the second step entirely.

  3. Make sure a lost phone is not a lockout

    Save a set of backup codes off the phone

    In Security & sign-in, click 2-Step Verification, then Backup codes and Get backup codes. You get 10 single-use 8-digit codes; Print codes or Download Codes and keep them where you keep important documents. Making a new set with Refresh cancels the old one.

  4. Add an authenticator app as a second method

    In the 2-Step Verification settings, tap Set up authenticator and follow the steps. Google Authenticator makes codes without an internet connection or mobile service, and can sync them to your Google Account so a new phone gets them. It can take up to 7 days before it shows as an option at sign-in.

  5. Add a passkey or security key on another device

    A passkey on your laptop, or a hardware security key, gives you a way in that does not depend on your phone. After losing your phone, the ways in are another signed-in phone, a backup phone number, a backup code, a security key and a passkey on another device.

  6. Check your recovery phone and email

    Under How you sign in to Google, open Recovery phone and Recovery email and confirm both still reach you. Use a phone that belongs only to you and a regularly used email that is not the Gmail address itself, and avoid a Google Voice number.

  7. Check what changes afterwards

    Mark only your own devices as trusted

    When you sign in, you can check Don’t ask again on this computer or Don’t ask again on this device so it stops asking for the second step. Do this only on devices you use regularly and do not share.

  8. Sign back in to older mail apps

    You may need to sign in to some apps again after turning this on. If an app that lacks Sign in with Google keeps rejecting your password, it may need an app password, a 16-digit passcode. Switch to a more secure app where you can.

A common case: your phone is stolen on holiday. With a printed backup code from step 3 and a passkey on your laptop from step 5, you sign in, remove the stolen phone and change your password the same day, instead of waiting days in account recovery.

Adding the backup methods before you need them is the whole point, because none of them can be added once you are locked out.

Gmail logo

More about Gmail

Google’s free email service, included with every Google Account.

When the Gmail verification code does not arrive

Codes from the authenticator app are rejected

Authenticator version 7.0 uses the time setting on your phone and no longer has its own time correction. Check the phone’s date, time and time zone are set automatically.

The text message code never arrived

You may have been sent a Google prompt instead, so check your phone for one. Only the newest code works if you asked for several, and a sign-in from somewhere unusual may block codes by text.

You lost the phone and have no other method

Use a saved backup code: click Try another way, then Enter one of your 8-digit backup codes. Without one, follow account recovery, which Can take 3 to 5 business days.

What 2-Step Verification protects, and what it does not

2-Step Verification is an extra layer in case your password is stolen. After it is on, signing in with a password needs a second step, while signing in with a passkey skips the second step because the passkey already proves you hold the device.

It does not protect against losing every method at once. That is why the setup has two halves: turning it on, and making sure a lost phone still leaves you a way in.

Google also slows down some changes on purpose. A new 2-Step Verification phone number can take up to 7 days to be trusted, and Google may send codes to your previous details for 7 days after a change, so an intruder cannot quickly lock you out.

Treat the backup methods as part of turning it on, not as an extra.

How the second-step methods compare

MethodWhat it needsHow it holds up
PasskeyYour fingerprint, face or screen lockProtects against phishing, per Gmail Help
Security keyA small device you buy and connectProtects against phishing, per Gmail Help
Google promptA signed-in phoneHelps against SIM swaps, per Gmail Help
Authenticator appAn app that makes codesWorks offline
Text or call codeA phone numberVulnerable to number-based hacks
Backup codesPrinted or downloaded codesSingle use; 10 per set

The table draws on Gmail Help’s 2-Step Verification page and Google Account Help’s pages on backup codes and Google Authenticator.

Start with prompts or a passkey for daily use, and keep backup codes and one more method for the day you need them.

When the problem is someone else, not the setup

If you are turning this on because something looked wrong, 2-Step Verification alone is not enough. Review recent security events and devices, and remove Gmail filters or forwarding you did not set up.

A changed recovery phone or email you did not make is on Google’s list of signs someone else is using the account. The full check is in how to tell whether someone has been in your Google account.

How to tell it is set up properly

Look at Security & sign-in and check:

  • 2-Step Verification shows as on.
  • At least two methods are listed besides your phone’s prompts.
  • Backup codes shows a set you know the location of.
  • Recovery phone and Recovery email are both current.

Google does not publish how often it asks for the second step on a trusted device, only that checking Don’t ask again stops routine prompts there.

Spend two more minutes on the backup

Turning on 2-Step Verification takes a few minutes. Printing backup codes and adding one more method takes two more, and decides whether a lost phone costs you an afternoon or a week.

Print the codes today, before the phone is the only way in.

Gmail 2-Step Verification: common questions

Is SMS two-factor authentication good enough for Gmail?
It is better than no second step. Codes by text or call can be vulnerable to phone number-based hacks and recommends Google prompts, passkeys or security keys instead.
What happens if I lose my phone and my backup codes?
You go through Google account recovery, which can take 3 to 5 business days when 2-Step Verification is on. Another signed-in phone, a passkey on another device or a security key would let you in without it.
Will 2-Step Verification ask me for a code every time?
No. If you check Don’t ask again on a device you use regularly, it stops asking there. You are asked again on new devices.
Does changing my password remove app passwords?
App passwords are revoked when you change your Google Account password, so apps using them need a new one.

Share this guide

Was this guide helpful?

Test log

Followed the steps? Tell us how it went on your device. Entries appear here after we check them.

  1. Worked Every step, start to finish · Daniel Okonkwo Team
I tested this
How did it go?

Steps performed and confirmed 32 days ago

When you need this

If you want your Gmail account protected by more than a password, turn on 2-Step Verification in your Google Account and set up a backup method at the same time. Every other account sends its password resets to Gmail, so a lockout there is costly too.

Describes
Google Account settings on the web, Android and iPhone, as documented in Gmail Help and Google Account Help, October 2026
Takes
Ten minutes, plus up to 7 days before Google trusts a new phone number or authenticator
Platforms
Web · iOS · Android
Published
30 October 2026
Facts checked
29 October 2026

Steps repeated and verified by Daniel Okonkwo, Appcyclopedia writer on

  • Daniel Okonkwo: the web steps on a MacBook Pro (macOS 27.0.1), the iPhone steps on an iPhone 15 (iOS 27.0.1) and the Android steps on a Pixel 9 Pro (Android 17).

Next

gmailsecurity2fagoogle