Forgot SIM PIN? Safe Recovery Steps (2026)

Forgot SIM PIN: traveler checking a locked SIM on a smartphone

In short, here's what you'll discover in this article: how to recover safely when you forgot your SIM PIN, where to get the correct PUK code, what to do on iPhone and Android, and how to avoid permanently blocking your physical SIM or eSIM.

Seeing “SIM locked” can be stressful, especially when you need calls, texts, or mobile data. The safest response is simple: stop entering random codes. Your SIM PIN belongs to your mobile line, and repeated wrong attempts can trigger a second lock that requires a PUK code.

In most cases, your carrier can restore access within minutes. This guide explains the correct path without risking your SIM.

Forgot SIM PIN? Do this first

Do not test familiar numbers, your phone passcode, or common defaults. A SIM PIN is separate from the code used to unlock your phone. After several incorrect SIM PIN attempts—often three—the device usually asks for a PUK, or Personal Unblocking Key.

⚠️ Never guess a PUK code. Too many incorrect PUK attempts can permanently block the SIM or eSIM, leaving replacement as the only option.

Forgot SIM PIN recovery steps from carrier contact to PUK unlock

Follow this order:

  • Stop entering codes as soon as you are unsure.
  • Read the exact message: “Enter SIM PIN,” “Enter PUK,” or “PUK blocked.”
  • Identify the carrier that issued the affected physical SIM or eSIM.
  • Retrieve the official PIN or PUK through that carrier.
  • Enter the code carefully and create a new SIM PIN if prompted.

SIM PIN, phone PIN, and PUK: what is the difference?

These codes protect different things. Confusing them is the main reason people use up their remaining attempts.

Phone PIN vs SIM PIN vs PUK code explained
CodeWhat it protectsWhen you see itWho can help
Phone PIN or passcodeThe device and its stored dataWhen unlocking the screen or restarting the phoneThe device maker’s account-recovery process
SIM PINYour mobile line on a physical SIM or eSIMAfter a restart, SIM change, or when SIM lock is enabledYour mobile carrier
PUK codeA SIM blocked after repeated wrong PIN entriesWhen the screen explicitly asks for a PUKOnly the carrier that issued the SIM or eSIM
Network unlock codeA phone restricted to one carrierAfter inserting a SIM from another networkThe carrier that locked the phone

💡 Use the wording on the screen as your guide. If it says “PUK,” entering your usual device passcode will not help.

How to find your SIM PIN or PUK code

The correct code comes from the carrier that supplied the mobile line. It does not come from Apple, Google, Samsung, the phone retailer, or an eSIM comparison website unless one of them also issued the plan.

1. Check your carrier account

Sign in to the carrier’s official app or website from another connected device. Look under sections such as SIM management, line settings, device support, security, or PUK code. Some carriers reveal the PUK after identity verification.

2. Check the original SIM packaging

For a physical SIM, the plastic card or paperwork supplied with it may show the default SIM PIN and PUK. Use those details only if they clearly belong to the SIM currently installed.

3. Contact carrier support

If you cannot access your account, call or chat with your carrier. Be ready to verify the account holder’s identity. Support may ask for the mobile number, account PIN, SIM identifier, or other security details before releasing the PUK.

If you do not know the carrier, inspect the physical SIM for its name or logo. On an iPhone with an eSIM, the active carrier appears in Settings > Cellular. On Android, check Settings > Network & internet > SIMs; names vary by manufacturer.

Apple also advises contacting the network provider rather than guessing an unknown SIM PIN or PUK. See Apple’s official SIM PIN guidance. Carrier procedures differ, but the rule is universal: obtain the code from the issuer.

How to unlock the SIM with a PUK

Once the phone asks for a PUK, the original SIM PIN is no longer enough. Keep the official PUK in front of you and follow the prompts exactly.

  1. Enter the PUK code supplied by your carrier.
  2. When prompted, create a new SIM PIN.
  3. Enter the new SIM PIN again to confirm it.
  4. Wait for the phone to reconnect to the mobile network.

Do not continue if the PUK is rejected. Confirm that you selected the correct line on a dual-SIM phone and that the PUK belongs to that exact SIM. A PUK for one line cannot unlock another.

AT&T, for example, explains that a “PUK blocked” message means the SIM must be replaced. You can review its official PUK instructions for an example of a carrier-specific process.

What to do on iPhone

If the iPhone still asks for the SIM PIN and you know the correct code, enter it once. If you do not know it, contact the carrier before making another attempt.

After access is restored, you can review the setting under:

  • Single SIM: Settings > Cellular > SIM PIN.
  • Dual SIM: Settings > Cellular > select the affected line > SIM PIN.

You must know the current SIM PIN before changing or disabling it. Turning SIM lock off is not a workaround for a forgotten code because the phone asks for the existing PIN first.

What to do on Android

Android menu names vary by brand and software version. On recent Pixel phones, SIM lock settings are typically under Settings > Security & privacy > More security settings > SIM lock. Samsung and other manufacturers may place the option under Security, Biometrics and security, or Other security settings.

The important distinction is the message, not the menu path:

  • If the screen requests a SIM PIN, use the known PIN or contact the carrier.
  • If it requests a PUK, stop using the PIN and retrieve the PUK.
  • If it says PUK blocked or similar, ask the carrier for a replacement SIM or eSIM.

What if you are traveling and cannot reach your carrier?

First, connect to trusted Wi-Fi. Then use the carrier’s app, web account, or online chat. If account verification depends on an SMS sent to the blocked line, ask support for an alternative identity check.

A second active line can keep you connected while the issue is resolved. If your phone supports eSIM, a replacement or temporary travel eSIM may be faster than waiting for a physical card. Before installing one, confirm that the device supports eSIM and is not network-locked.

If you need temporary mobile data while your main line is blocked, compare established eSIM providers and check device compatibility before purchasing:

🔍
Provider
Rating
Promo Code
Discount
Review
🥇
4.9/5★★★★★★
-10%
🥈
4.8/5★★★★★★
-20%
🥉
4.6/5★★★★★★
-10%
4.5/5★★★★★★
-45%
4.3/5★★★★★
-20%
4.4/5★★★★★
-5%
🔍 No results.
🥇
4.9/5★★★★★★
eSIM promo code
Discount-10%
🥈
4.8/5★★★★★★
eSIM promo code
Discount-20%
🥉
4.6/5★★★★★★
eSIM promo code
Discount-10%
4.5/5★★★★★★
eSIM promo code
Discount-45%
4.3/5★★★★★
eSIM promo code
Discount-20%
4.4/5★★★★★
eSIM promo code
Discount-5%
🔍 No results.

💡 An eSIM can also have a SIM PIN. The recovery principle remains the same: only the issuing carrier can provide the correct PIN or PUK for that line.

What if the PUK is blocked?

A permanently blocked SIM cannot be repaired through phone settings or a factory reset. Contact the carrier and request a replacement physical SIM or a replacement eSIM profile. Ask whether your existing number and plan will transfer to the new SIM.

Do not delete an eSIM profile unless the carrier tells you to. Deleting it does not remove the PIN lock from the carrier account, and reinstalling may require a new activation code.

⚠️ A factory reset does not recover a forgotten SIM PIN. The lock is associated with the SIM or eSIM line, not with the phone’s local settings.

How to avoid this problem next time

Once the line works again, choose a SIM PIN that you can retrieve securely without making it easy to guess. Store it in a reputable password manager, not in an unlocked note labeled “SIM PIN.”

  • Record which PIN belongs to each line on a dual-SIM device.
  • Keep the PUK in a secure place separate from the phone.
  • Update carrier account recovery details before traveling.
  • Do not use a default PIN longer than necessary.
  • Never share a PUK in messages or public support forums.

A SIM PIN can protect your mobile number if someone removes the SIM or restarts the phone. However, that protection works best when your recovery details are current.

FAQ

Can I unlock a SIM without the PUK code?

If the phone explicitly asks for a PUK, you generally need the correct PUK from the carrier. The old SIM PIN, phone passcode, and factory reset will not bypass that request.

Where is the PUK code printed?

It may appear on the original physical SIM card holder or carrier paperwork. Many carriers also display it in the customer account or provide it after identity verification.

Is the SIM PIN the same as my phone PIN?

No. The phone PIN unlocks the device. The SIM PIN protects the mobile line. They may coincidentally use the same digits, but they are separate credentials.

How many attempts do I have?

The phone usually shows the remaining attempts. Do not rely on a universal number because carrier and SIM policies can differ. Stop immediately if you are uncertain, especially once the screen requests a PUK.

Does removing the SIM reset the PIN?

No. Moving the SIM to another phone or restarting the device does not clear its PIN. A protected SIM normally asks for the code again, while a blocked SIM still requires its PUK.