Your Instagram login is asking for a code you can't produce. What you do next depends on one question: is any device still logged in to your account?

Which problem do you have?

Your situation What to try Source
The 2FA code never arrives Use a backup code, which works when a code can't be sent because of connectivity or delivery issues Meta
You have no saved backup codes, but a device is still logged in Open Backup codes on that device and save or regenerate them Meta
No codes and no logged-in device Use the identity-check route via instagram.com/hacked Meta

Whichever route you take, your posts stay out of reach until you're back in. SocialGuardian keeps a copy from just your @handle, with no password. Start a 30-day free trial

Can you get backup codes without logging in?

No. Meta states that you must be logged in to Instagram to access the list of backup codes or get a new list. If you have no saved codes and no logged-in device, the codes can't be retrieved.

If any device is still logged in

Don't log out of it. On a computer, Meta's computer path, as published on its help page, is:

  1. Click More in the bottom left, then click Settings.
  2. Click Accounts Center, then click Password and security.
  3. Click Two-factor authentication, then click the account you'd like to get backup codes for.
  4. Click Additional methods.
  5. Click Backup codes.

Meta advises you to copy the codes to your clipboard, take a screenshot or save them in some other way.

For the phone app, we could not confirm the steps on Meta's page, so this comes from a secondary source. Essentras describes: tap your profile picture (bottom right), then Menu (top right), tap Password and security, then Two-factor authentication, then the account, then Additional methods, then Backup codes. Menu paths differ by app version.

Other options while something is still working:

  • Approve the login from a logged-in device. Meta's overview says you enter your login code or confirm your login attempt when you log in. The Approve step itself comes from Essentras, not a Meta page we could confirm: tap the alert, check the device and place, then tap Approve (Deny if you don't recognise it) (Essentras).
  • Authenticator app on a second device. Instagram's authentication app method lets you add multiple devices so they can all get login codes.
  • A trusted device. A device you've already signed in to with 2FA and marked as trusted by tapping Trust this device is a recovery path.
  • Facebook Accounts Center. This route comes only from Essentras, which says Meta doesn't state that it shows codes. If the profile sits in the same Accounts Center as a logged-in Facebook, Essentras gives a computer route (profile picture > Settings and privacy > Settings > Accounts Center > Password and security > Two-factor authentication > your Instagram account > Additional methods > Backup codes), calling it "worth a try, not a promise".

Login code not arriving

Meta says a backup code lets you finish login when a code can't be sent because of connectivity or delivery issues. Meta's overview also says you can use a backup code if you lose access to your phone or email address and can't get login codes.

If you changed SIM or number, Essentras says a new SIM that keeps your number still receives text codes. A new number needs a logged-in change (Password and security > Two-factor authentication > your account > SMS or WhatsApp > Change phone number), and if you're locked out you should use a saved backup code first. FameViso notes that relying on SMS alone creates problems when numbers change, SIM cards fail, or messages are delayed.

Backup code not working?

Getting new codes cancels your current set: follow the same path and click Get new codes. If Instagram rejects a code, check that your copy is from your newest set and that you typed it exactly. Meta's page doesn't state how many codes there are, whether they expire, or a single-use rule, so don't assume any of those.

No codes and no device: the recovery route

Start with the login screen's recovery options. FameViso says to enter your username, email or phone number and follow the prompts via "Try another way"; which routes appear depends on your account history, device trust and the contact methods still available.

If your account email still works, Meta's login help says:

  1. On the login screen, tap Forgot password?
  2. Enter the username, email address, or phone number associated with your account, then click Send login link.
  3. Click the login link in your email or a text message (SMS) and follow the on-screen instructions.

If that doesn't recover the account, Meta says you may request support from a mobile device with a secure email only you can access, and Meta emails the next steps. Meta also says that if you received an email from [email protected] saying your email address was changed, you may be able to undo it by selecting secure my account in that message. Meta's hacked-account page says to visit instagram.com/hacked if you're unable to log in.

The identity check

Per Meta:

  • If the account has no photos of you, you're asked for your sign-up email or phone and the device type.
  • If it has photos of you, you'll be asked to take a video selfie turning your head in different directions. The video is never visible on Instagram and is deleted within 30 days.
  • If Meta couldn't confirm your identity from the video, you can submit a new one and it will be reviewed again.

How long the review takes isn't documented in the sources we found.

Essentras reports that Meta says it has no general public phone number for customer service, and that numbers claiming to be Meta support are potentially scams. FameViso also advises not buying bypass services or hammering login with repeated attempts.

Lost phone, no backup codes

Log the lost phone out from another logged-in device, per Essentras: Profile > Menu > Security > Login activity > Options next to that login > Log out (labels vary by app version). If you've also lost your registered email and never linked Facebook, Essentras reports that Meta says it cannot give you access.

Keep your content safe while you're locked out

While you wait on recovery, your posts are inaccessible. SocialGuardian backs up an Instagram account from just the public @handle, no password or login, capturing posts, photos, videos, reels, stories, captions and metadata, and follower and following lists. Backups run automatically every day, and the homepage promises "Locked out? Download or restore in one click."

Set up takes a handle or profile URL and an optional email for backup confirmation: no password, 30-day free trial, cancel anytime.

Prevent a repeat

  • Save your backup codes the moment you generate them, as Meta advises.
  • Add an authentication app on more than one device. Meta allows adding multiple devices.
  • Update your email and phone and link Instagram and Facebook in the same Accounts Center before you lose the old ones, per Essentras.

Do the one thing recovery can't: keep your own archive. Back up your Instagram now.