How to unlock the PUK code on a locked mobile phone: A step-by-step guide

To unlock a PUK-locked phone, get the Personal Unlocking Key (PUK) from the carrier that issued your SIM card or eSIM, enter it exactly once, and then set a new SIM PIN.

This guide explains what the PUK code is, why the phone asks for it, where to get it, how to enter it on iPhone and Android, and what to do when the PUK itself has been entered wrong too many times.

How to safely enter the PUK code and unlock your phone

Never guess a PUK. Apple warns that a wrong guess can permanently lock the SIM card or eSIM, and the only way back from that is a replacement SIM.

  1. Find out which carrier issued the SIM or eSIM: the carrier name or logo is printed on a physical SIM, and on iPhone an eSIM's carrier appears under Settings > Cellular.
  2. Get the PUK code for that exact SIM from the carrier, using its support page, your plan documents, or a call to customer support.
  3. Turn on the locked phone and wait for the screen that asks for the PUK code.
  4. Type the PUK code slowly, checking every digit before you confirm it.
  5. Enter a new SIM PIN when the phone asks for one, then enter the same PIN again to confirm it.
  6. Wait for the carrier name and signal bars to return to the status bar, then make a test call.

Write the new SIM PIN somewhere safe. The SIM locks again every time the phone restarts or the SIM is removed, and the new PIN is what unlocks it.

How to unlock the PUK code on a locked mobile phone: A step-by-step guide
After the PUK and new SIM PIN are accepted, the carrier name and signal bars return to the iPhone status bar. (Image: Apple)

What is a PUK code?

A PUK, or Personal Unlocking Key, is a code tied to your SIM card or eSIM. Your carrier holds it, and it unblocks the SIM after the SIM PIN has been entered wrong too many times.

The PUK is easy to confuse with other locks on a phone. The table separates them.

Code What it protects Who has it What happens if it is lost
SIM PIN The SIM card or eSIM, so nobody can use your line in another phone You, or the carrier's default PIN if you never changed it Too many wrong tries lock the SIM and the phone asks for the PUK
PUK code The SIM after a PIN lockout Your carrier Too many wrong tries can lock the SIM permanently
Phone passcode The phone itself (lock screen) You Recovered through Apple or Google steps, not the carrier
Carrier unlock Whether the phone works on other networks The carrier that sold the phone Requested from the carrier; it does not involve the SIM PIN or PUK

If the lock screen asks for a passcode rather than a SIM PIN or PUK, the problem is the phone passcode, and you need to reset a forgotten iPhone passcode instead of calling the carrier.

Why your phone might be asking for a PUK code

A phone asks for the PUK only after the SIM PIN has been entered incorrectly too many times. Apple states that the SIM then needs the PUK from the carrier.

Cause How it happens
Wrong SIM PIN entered too many times The PIN was mistyped or guessed until the SIM blocked it
Guessing the default PIN SIM PIN was turned on without knowing the carrier's default PIN, and guesses used up the attempts
Forgotten custom PIN A PIN set months ago was forgotten, and the SIM asked for it after a restart
Someone else tried to unlock it A child, a friend or a thief tried PINs on the lock screen
SIM moved to another phone A SIM with PIN lock turned on asks for the PIN in any phone, and wrong entries there count the same

How to find your PUK code

Only the carrier that issued the SIM or eSIM can give you its PUK. There is no universal code, and a code from another carrier or another SIM will not work.

Where to look What to do Notes
SIM card packaging or plan documents Check the card holder the SIM came in and any paperwork from the carrier Apple lists plan documents as a place to find the default SIM PIN and codes
Your online account with the carrier Sign in on another device and look in the SIM or device details for the line You may need to sign in from a computer or a second phone, because the locked phone has no service
Customer support Call the carrier from another phone and ask for the PUK for your number The carrier verifies that you own the account before giving the code
The carrier's official app Open the app on another device signed in to your account Use only the carrier's own app or site, never a third-party code generator

Have the account holder's details ready when you call. If the phone has Dual SIM, tell support which number is locked so you get the PUK for the right SIM.

How to turn SIM PIN on or off on iPhone and Android

After a PUK unlock, the SIM PIN you just set stays active. Use these paths to change it or turn it off. Enter the current SIM PIN when asked, and if you have never set one, use the default SIM PIN from your carrier rather than guessing.

Device Path Notes
iPhone with one SIM or eSIM Settings > Cellular > SIM PIN Turn the switch on or off, enter the PIN if asked, then tap Done
iPhone with Dual SIM or Dual eSIM Settings > Cellular > choose the line > SIM PIN Each line has its own SIM PIN
iPad with cellular Settings > Cellular > SIM PIN Same switch as iPhone
Google Pixel Settings > Security & Privacy > More Security Settings > SIM Lock > Lock SIM Other Android brands use different labels; search Settings for SIM lock
Turn SIM PIN on Android with the Samsung Lock SIM card prompt
Turning on Lock SIM card asks for the current SIM card PIN and shows how many attempts are left before a PUK is needed. (Image: samsung.com)

How to find which carrier your SIM or eSIM belongs to

Calling the wrong carrier wastes time, especially with a used phone or a travel SIM. Apple gives two quick checks.

  1. For a physical SIM, remove it from the tray and look for the carrier's name or logo printed on the card.
  2. For an eSIM on iPhone, open Settings and tap Cellular.
  3. Read the carrier name shown directly above Turn On This Line for the locked line.
  4. Contact that carrier and ask it to unlock the SIM or eSIM with the default SIM PIN or the PUK code.
Find which carrier your SIM belongs to by removing it from the iPhone tray
Slide the physical SIM out of the tray and read the carrier name or logo printed on the card itself. (Image: Apple)

What to do if you enter the wrong PUK code multiple times

The PUK also has a limited number of attempts. When they run out, the SIM is locked for good and no code can recover it.

The phone shows a "PUK exhausted" alert

Every PUK attempt has been used, so the SIM card or eSIM is permanently locked.

  1. Stop entering codes; further attempts do nothing.
  2. Contact the carrier from another phone and ask for a new SIM card or eSIM for your number.
  3. Insert the new SIM or install the new eSIM and wait for service to return.
  4. Turn SIM PIN back on with a PIN you will remember, if you want the protection.

The carrier's PUK code does not unlock the SIM

The code belongs to a different SIM, a different line, or was mistyped.

  1. Read the number printed on the SIM card or the line shown in Settings > Cellular to the carrier so it can match the right SIM.
  2. Ask the carrier to confirm the PUK again before you use another attempt.
  3. If unlocking still fails, ask the carrier for a new SIM card or eSIM, as Apple advises.

Additional PUK code troubleshooting tips

"Locked SIM" appears after every restart

SIM PIN is turned on, and the SIM or eSIM locks automatically after a restart or after the SIM is removed.

  1. Enter your SIM PIN when the phone asks for it.
  2. Turn SIM PIN off in Settings > Cellular > SIM PIN on iPhone if you do not want the prompt.

You never set a SIM PIN and do not know the default

The carrier set a default SIM PIN on the card when it was issued.

  1. Do not try to guess it.
  2. Check the carrier's support page or your plan documents for the default SIM PIN.
  3. Contact the carrier if neither lists it.

Only one line on a Dual SIM phone is locked

Each SIM or eSIM has its own PIN and PUK.

  1. Open Settings > Cellular and note which line shows as locked.
  2. Ask the carrier for the PUK of that line only.

The phone asks for a passcode, not a SIM PIN

That is the phone's own lock screen passcode, which the carrier cannot reset.

  1. Use the Apple or Google recovery steps for a forgotten passcode.
  2. Contact the carrier only if a SIM PIN or PUK prompt appears.
PUK code troubleshooting on Dual SIM iPhone using the Cellular SIMs list
Each SIM or eSIM has its own PIN and PUK, so check which line is locked under Settings, Cellular before calling the carrier. (Image: Apple)

Tips for a successful PUK unlock and ongoing security

Tip Why it helps
Get the code before touching the phone Every entry counts, so start only when the PUK is in front of you
Enter the PUK once, carefully A typo costs one of a small number of attempts
Pick a new SIM PIN you will remember The phone asks for it after every restart
Store the PIN and PUK in a password manager You will have both the next time the SIM asks
Keep SIM PIN turned on A stolen SIM cannot be used in another phone to receive your calls and texts
Tell the household Children or partners who try PINs on a locked SIM are a common cause of PUK prompts

Important SIM PIN and PUK safety and security advice

Get the PUK only from the carrier that issued your SIM, and never from a website, app or seller that claims to generate or calculate PUK codes. The PUK is unique to each SIM and held by the carrier, so a generated code cannot be real, and every wrong guess moves the SIM closer to a permanent lock. A website or seller offering a PUK in exchange for your IMEI or a fee cannot have the real code.

Never share the PUK or the account PIN you use with your carrier. Someone who has them can take control of the SIM, and with it the text messages your bank and email use for verification codes.

PUK code: common questions and concerns

Can I unlock a PUK code without the carrier?

No. The PUK is unique to your SIM card or eSIM and only the carrier that issued it has the code. Get it from the carrier's support page, your plan documents, your online account or customer support.

Is the PUK code the same as the SIM PIN?

No. The SIM PIN is a short code you or the carrier set to protect the SIM. The PUK is a longer code held by the carrier, and it unblocks the SIM after the PIN is entered wrong too many times.

What happens if I enter the wrong PUK code too many times?

The SIM card or eSIM locks permanently and the phone may show a "PUK exhausted" alert. No code can recover it, so ask the carrier for a replacement SIM or a new eSIM for the same number.

Does a factory reset remove a PUK lock?

No. The PIN and PUK lock belongs to the SIM card or eSIM, not to the phone. Resetting the phone or moving the SIM to another phone leaves the lock in place.

Where is the PUK code on my SIM card?

Check the card holder and documents that came with the SIM first. If the code is not there, get it from your carrier's online account, its app or customer support.

Does an eSIM have a PUK code?

Yes. An eSIM locks the same way as a physical SIM after too many wrong PIN entries. Contact the carrier that provided the eSIM and ask it to unlock it with the default SIM PIN or PUK code.

What is the default SIM PIN?

It depends on the carrier. Check your carrier's support page or plan documents, or contact the carrier. Apple warns against guessing a default SIM PIN, because wrong guesses lead to a PUK lock.

Is unlocking a PUK the same as carrier unlocking my phone?

No. A PUK only unblocks the PIN lock on your SIM. A carrier unlock removes the restriction that ties the phone to one network, and you request it separately from the carrier that sold the phone.

Should you keep SIM PIN on after a PUK unlock?

Keep SIM PIN turned on, with a new PIN stored in a password manager. SIM PIN stops a thief from using your number in another phone, and once the PIN is written down safely the risk of another PUK lockout is close to zero.

Keep SIM PIN on after a PUK unlock with Lock SIM card enabled
With Lock SIM card switched on, Change SIM card PIN replaces the PIN set during the PUK unlock with one you will remember. (Image: samsung.com)

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *