Where Google sends your security code

Google sends security codes to the phone number or email address you added to your account. When you sign in from a new device or location, Google asks for a code to confirm it is really you. The code arrives as a text message, a phone call, or an email — whichever method you set up first.

If you have not set up a recovery phone number or email yet, you cannot receive a code. You will need to add one before Google can send you anything. This takes about two minutes and happens on the same screen where you are trying to sign in.

Key Takeaways

  • Google sends security codes to a phone number or email address you registered with your account, not to a random number.
  • You can request a code by text message, phone call, or email depending on what recovery methods you have set up.
  • If you do not receive a code within a few minutes, check your spam folder, wait for the next text, or ask Google to call you instead.
  • You can add or change your recovery phone number and email address in your Google Account settings at any time.

How to request a security code during sign-in

When Google asks for a security code, look at the screen carefully. It will show you the phone number or email where the code is being sent — usually the last few digits of your phone number or the first part of your email address. If that looks right, wait for the code to arrive.

If you do not see a code arrive within two or three minutes, look for a link that says "Did not get the code?" or "Send code another way." Click it. Google will offer you other options: sending the code to a different phone number, calling you instead of texting, or emailing the code. Choose whichever method you have set up.

Once the code arrives, type all the digits into the box on the sign-in screen. Do not add spaces or dashes. If you enter the wrong code three times, Google will lock you out temporarily and ask you to try again later.

Why you might not receive a code

The most common reason is that your phone number or email is not actually registered with Google. If you set up your account years ago and never added a recovery method, Google has nowhere to send the code. The sign-in screen will tell you this — it will say something like "We could not send a code to that number" or ask you to add a recovery method first.

If your number is registered but you still do not get the code, check your spam or junk folder. Text messages sometimes land there by mistake. If nothing appears after five minutes, try asking Google to call you instead, or to send the code to your email address. Phone calls are more reliable than texts in some areas.

If you changed your phone number recently and did not update Google, codes will go to your old number. You will need to sign in on a device where you are already logged in, go to your account settings, and update your phone number there.

Adding or changing your recovery phone number

Go to myaccount.google.com and sign in. On the left side, click "Security." Scroll down to "How you sign in to Google" and look for "Phone number." Click it.

If you already have a number listed, you can click "Edit" to change it. Type your new number, including the country code if you are outside the United States. Google will send a code to that number to confirm it works. Type the code back in, and your new number is saved.

If no phone number is listed, click "Add phone number." Follow the same steps. You can add up to three phone numbers to your account, and Google will let you choose which one receives codes during sign-in.

Adding or changing your recovery email address

On the same Security page, look for "Recovery email." Click it. If you already have one, you can click "Edit" to change it. Type the new email address.

Google will send a confirmation email to that address. Open your email, find the message from Google, and click the link inside it. Once you confirm, the new email is active. You can now receive security codes there.

You can have one recovery email address at a time. If you add a new one, it replaces the old one.

What to do if you cannot access your phone or email

If your phone is lost or broken and you cannot receive texts, sign in on a computer or tablet where you are already logged in. Go to myaccount.google.com, click "Security," and update your phone number to one you can access right now. Google will send a code to the new number when ready.

If you cannot access the email address Google has on file either, you will need to use a backup code. Google creates a set of backup codes when you turn on two-step verification. These are long numbers you can use instead of a security code. If you saved them somewhere safe, you can use one to sign in. If you did not save them, you will need to go through Google's account recovery process, which asks you to answer security questions or provide other proof that the account is yours.

Understanding backup codes

Backup codes are a safety net. When you set up two-step verification on your account, Google gives you ten codes. Each one works once. You can use a backup code instead of waiting for a security code to arrive.

Write these codes down or save them in a password manager — somewhere safe that is not your phone. If your phone is lost and you cannot receive a code, a backup code gets you in. Once you are signed in, you can update your recovery phone number and get back to normal.

If you have used all your backup codes or never saved them, you cannot use this shortcut. You will have to go through account recovery instead, which takes longer.

Frequently Asked Questions

How long does a security code stay valid?

A security code is valid for ten minutes. After that, it expires and you cannot use it. If you wait too long, ask Google to send you a new code.

Can I use the same security code twice?

No. Each code works only once. If you sign in on a second device, Google will send you a different code.

What if I get a security code I did not request?

Someone may have tried to sign in to your account. Do not share the code with anyone. If you did not try to sign in, change your password right away and review your account activity in the Security section of your Google Account.

Can I turn off security codes and just use my password?

Yes. Go to myaccount.google.com, click "Security," and turn off two-step verification. Your account will be less find, but you will not need codes anymore. Google will warn you before you do this.

Do I need a different code for Gmail, YouTube, and Google Drive?

No. One security code works for all Google services. Once you sign in with the code, you have access to everything connected to that account.