ThisCalculator

Everyday

How to Generate Backup Codes from Google

Updated · Standard formula, shown below

This guide walks you through generating backup codes for your Google account. Backup codes are one-time-use codes that let you sign in when you don’t have your phone or other second verification method available. You’ll need to have 2-Step Verification already enabled on your Google account.

What You’ll Need

  • A Google account with 2-Step Verification turned on.
  • Access to your Google Account settings (via web browser or the Google app on your phone).
  • Your Google account password (you’ll be asked to sign in).

Step-by-Step

  1. Sign in to your Google Account. Go to myaccount.google.com and sign in with your email and password. If you already have a session active, you might not need to re-enter your password.
  2. Open Security settings. In the left-hand menu, click Security. On mobile, you may need to tap the menu icon (three horizontal lines) first.
  3. Find the 2-Step Verification section. Scroll down until you see How you sign in to Google. Under that, click 2-Step Verification. You may be asked to sign in again for security.
  4. Scroll to Backup codes. On the 2-Step Verification page, scroll down to the Backup codes section. It’s usually near the bottom.
  5. Click “Show codes” or “Set up backup codes.” If you haven’t generated codes before, you’ll see a button to set them up. If you have, you’ll see an option to show them again.
  6. Review your codes. A list of 10 one-time codes will appear. Each code is a string of 8–10 characters, often grouped like 1234-5678. You can use each code only once.
  7. Download or print the codes. You’ll see buttons to Download (saves a text file) or Print. It’s wise to store them somewhere safe—like a password manager or a physical copy in a secure place.
  8. Finish. After you’ve saved them, click Done or simply close the dialog. Your codes are now active.

Common Mistakes

  • Not saving the codes immediately. If you close the window without downloading or printing, you’ll have to generate a new set later. The old ones become invalid.
  • Using a backup code when you actually have your phone. Backup codes are meant for emergencies. Using them unnecessarily wastes a code.
  • Storing codes on the same device you use for 2FA. If your phone is lost or stolen, you lose access to both your authenticator app and the codes.
  • Sharing codes with anyone. Backup codes are as sensitive as your password. Never share them.

Tips

  • Generate new codes after you use one. Once you’ve used a few, it’s a good idea to generate a fresh set to keep a full 10 available. You can do this by clicking “Get new codes” in the same section.
  • Store codes in a password manager. If you use one, add them as a secure note. That way they’re encrypted and accessible from any device.
  • Keep a printed copy in a safe place. A physical copy in a wallet or a safe can be a lifesaver if you lose your phone and can’t access your password manager.
  • Label them clearly. If you print them, write “Google backup codes” so you know what they are later.

Troubleshooting

  • I don’t see the Backup codes option. Make sure 2-Step Verification is enabled. If it’s off, you’ll need to turn it on first. Also, check that you’re on the correct Security page—it’s under “How you sign in to Google.”
  • I clicked “Show codes” but nothing happened. Try refreshing the page or signing out and back in. Sometimes a browser extension blocks pop-ups or dynamic content.
  • I lost my codes before saving them. No problem—go back to the same section and click “Get new codes.” This invalidates the old set and gives you a fresh one.
  • My backup code didn’t work. Double-check that you haven’t already used it. Also, make sure you’re entering it correctly, including the hyphen if shown. Codes are case-insensitive but must be entered exactly as displayed.
  • I’m locked out and don’t have backup codes. Try other recovery options like a recovery phone number, recovery email, or security key. If none work, Google offers an account recovery process that may take a few days.

Frequently Asked Questions

How many backup codes do I get?

You get 10 one-time codes. Each code can be used only once, and after you’ve used all 10, you’ll need to generate a new set.

Can I reuse a backup code?

No. Each code is single-use. Once you’ve entered it, it becomes invalid.

Do backup codes expire?

No, they don’t expire on their own. They remain valid until you use them or you generate a new set.

Can I generate new backup codes before I use all the old ones?

Yes. Clicking “Get new codes” will immediately invalidate all previous codes and create a fresh set of 10.

Can I use backup codes on any device?

Yes. Backup codes work anywhere you sign in with your Google account, including on new devices, as long as 2-Step Verification is required.

What if I lose my backup codes?

You can always generate a new set from your Google Account settings, as long as you can still sign in. If you’re locked out, use other recovery options or the account recovery process.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.