YorozuyaIT
Everyday Tech Fixes

New Phone, Lost Your Authenticator Codes? Avoid the Lockout (and What to Do If You're Already Locked Out)

Written by the Yorozuya IT editorial team, based in Japan. Last updated above. Menus, apps, and rules change, so check the date.

Short answer

Two-factor sign-in is great until you change phones. The six-digit code in your authenticator app is not stored in your Google, Apple, or bank account. It is generated by a secret kept inside the app on one phone. Hand that phone in for a trade-in without moving the secret, and you may lose the second key to your own email.

Why the new phone is empty

When you set up two-factor, the service shows a QR code. Your authenticator app stores the secret inside it, and from then on it makes a fresh code every 30 seconds. Installing the same app on a new phone creates an empty app. The service still expects a code from the old secret.

Two panels: four steps to take before switching phones, and the order of things to try if you are already locked out

Before you switch (old phone still works)

Do these four things while you still have the old phone in your hand.

1. Keep the old phone and do not wipe it yet. Finish everything below first. If you trade it in on the same day, you lose your safety net.

2. Move the codes. The method depends on the app:

3. Save backup codes for the accounts that matter most. Start with your main email, your Apple or Google account, your bank, and your password manager. Store the codes on paper or in a safe place that is not only on the phone you are replacing.

4. Test a real sign-in on the new phone. Open a private browser window, sign in to an account that uses two-factor, and enter a code from the new phone. Only wipe the old phone after this works.

If you are already locked out

Work through these in order. Each step is more effort than the one before.

  1. A backup code. Check your password manager, an email to yourself, a printed sheet, or a notes file from when you set it up.
  2. A device that is still signed in. An old tablet, a laptop, or a browser session may still be logged in. From there you can often open security settings and add a new authenticator or change the method.
  3. Another method on the account. Many services also accept a text message, a phone call, a security key, or a passkey. Choose "try another way" on the sign-in screen.
  4. The provider's official account recovery form. Expect questions about past passwords, recent sign-in places, and devices. It can take days. Fill it in from the device and network you normally use, because that helps the service trust the request.

Two cautions:

Make the next switch easy

Which accounts to protect first

Spend your effort where a lockout hurts most.

  1. Your main email. Password resets for most other accounts arrive here.
  2. Your Apple or Google account, which holds photos, backups, and the sign-in for your phone.
  3. Your password manager, if you use one.
  4. Banking and payment accounts.
  5. Work accounts. Check your employer's rules, because some require your IT team to reset two-factor sign-in.

Which method is easiest to recover?

Method Survives a phone swap? Notes
Authenticator app without sync or backup No Codes live on one device only
Authenticator app with cloud sync or backup Usually yes Sign in to the sync account on the new phone
SMS code Yes, if you keep the number Easy, but a phone number can be hijacked
Passkey Often yes, through the platform's sync Check how your platform syncs passkeys
Hardware security key Yes Keep a second key stored safely

The best setup for most people is two methods on every important account, for example an authenticator app plus a passkey or a spare security key.

Common mistakes

What the recovery form will ask

If you reach the account recovery form, be ready to answer questions that prove you are the owner, such as an old password, the month the account was created, a recent sign-in location, or the device you usually use. Use the same device and network you normally use, and answer as accurately as you can. Guessing wildly can slow the process.

A one-page plan for the next switch

Write these down now and keep them with your important papers:

A yearly review

Once a year, sign in to your top accounts, check that the recovery email and phone number are current, and replace used backup codes. Recovery methods quietly go out of date, and the review takes about ten minutes.

Quick checklist

Save this cheat sheet

Cheat sheet: moving two-factor codes to a new phone and what to do if locked out

Screenshot this or save the image. It is the short version of the whole guide, and it is easier to find in a hurry than a web page.

FAQ

Do my codes come back if I sign into my Google or Microsoft account on the new phone?

Only if you turned on cloud sync or backup in the authenticator app before. Google Authenticator can sync codes to your Google Account, and Microsoft Authenticator offers its own cloud backup. If sync was never on, you need the old phone for a manual transfer, or recovery codes.

What are backup codes?

One-time codes the service shows you when you turn on two-factor sign-in. Each works once if you cannot use the app. Print them or store them somewhere safe that is not only on the phone.

My codes are rejected even on the right phone. Why?

The codes depend on the phone's clock. If the time is off, they fail. Set date and time to automatic. Google Authenticator also has a time-correction option in its settings.

Is SMS or an authenticator app better?

An app is generally safer than SMS, because phone numbers can be hijacked. But SMS survives a phone swap more easily. Keeping two methods on important accounts covers both risks.

Is it safe to take a screenshot of the QR code during setup?

It is risky. The QR code contains the secret that generates your codes, so anyone who sees the image can create the same codes. If you do take one, delete it from the photo library and from any cloud backup once setup is complete.

Can I use the same authenticator codes on two phones?

Some apps let you add the same account on more than one device during setup, and some sync across devices. This can help with recovery, but it also means more places to protect. Use it only on devices you control.

Keep reading