How To Enter A PUK Code | Unlock Your SIM In Minutes

A PUK code is the carrier-provided unlock sequence you enter on a SIM-locked phone, followed by setting a new SIM PIN to regain full access.

How to enter a PUK code depends on whether your phone prompts automatically or needs a dialer code—both methods work, and the steps are the same across most US carriers. The key is getting the right code from your carrier first, then following the exact entry method your phone requires.

What Is A PUK Code And When Do You Need It?

A Personal Unblocking Key (PUK) is the eight-digit code your carrier assigns to your SIM card. You need it when you enter the wrong SIM PIN three times in a row, which locks the SIM and stops the phone from connecting to the network. The PUK code unlocks the SIM so you can set a new four-to-eight-digit PIN and get back online.

This applies only to the SIM card itself—not your phone’s screen passcode. If your phone shows “SIM locked” or “Enter PUK code” on the display, this is what you need.

Entering A PUK Code: Methods That Work On Any Carrier

Two main paths get the PUK code entered: the automatic prompt that appears after the SIM locks, and the manual dialer code you can use if the prompt never shows up. Which one you use depends on your phone and carrier.

If Your Phone Prompts You

Most phones display a “SIM is disabled” or “Enter PUK code” screen after the third wrong PIN attempt. Enter the eight-digit PUK code your carrier provided, then type a new SIM PIN twice to confirm. The phone reconnects to the network immediately. T-Mobile notes you may need to attempt a phone call first to trigger the prompt on some devices.

If Your Phone Doesn’t Prompt You

Some phones won’t show the PUK screen on their own. When that happens, carriers like T-Mobile provide a USSD dialer code. Open the phone app and enter the appropriate sequence:

  • For SIM 1: **05*[PUK]*[New PIN]*[New PIN]#
  • For SIM 2: **052*[PUK2]*[New PIN2]*[New PIN2]#

Replace [PUK] or [PUK2] with the code from your carrier, and [New PIN] with your chosen PIN. T-Mobile notes that USSD short codes must be enabled on your device for this method to work. T-Mobile’s PUK support page provides the complete dialer instructions for both SIM slots.

AT&T Specific Path

AT&T routes PUK requests through its Troubleshoot & Resolve portal. Sign in, select your device, and the system displays the correct PUK1 or PUK2 code. Enter it in the prompt that appears on your phone screen.

Where To Get Your PUK Code From Your Carrier

The PUK code is tied to your SIM card and your carrier—there is no universal code. You must get it from the network that issued the SIM. Three methods work for most US carriers:

  • Online account portal: Sign in to your carrier’s website or app and look for SIM or PUK settings.
  • Customer service call: Call your carrier’s support number, verify your identity, and request the PUK code.
  • In-store visit: A carrier store can look up the code with your account credentials and the SIM’s ICCID number.

T-Mobile explicitly says to contact T-Mobile directly to request the code. AT&T, Samsung, and Uswitch all reinforce that the carrier is the sole source.

Common Mistakes When Entering A PUK Code

The two most frequent problems are using a wrong code and not seeing the prompt at all. Guessing random digits instead of using the carrier-provided PUK can permanently lock the SIM—carrier support is the only recovery then. If no prompt or dialer response appears, check whether USSD codes are enabled in your phone’s settings, or try initiating a call first to force the SIM check. On dual-SIM phones, make sure you are using the code for the correct slot because the PUK differs between SIM 1 and SIM 2.

The table below shows how each major carrier handles PUK entry so you can find your method at a glance.

Carrier PUK Entry Method Key Detail
T-Mobile Dialer USSD code or on-screen prompt Separate sequences for SIM 1 and SIM 2
AT&T Troubleshoot & Resolve portal PUK1 and PUK2 codes shown per device
Verizon Call customer service or check online Code available in account settings
US Mobile Online portal or support chat Code visible in SIM settings dashboard
Mint Mobile Customer support call or chat Carrier provides code after verifying account
Cricket Wireless Call customer support Code tied to the SIM ICCID
Boost Mobile Online account or support call PUK code in Account & SIM settings

What Happens After You Enter The PUK Code?

After you enter the correct PUK code, the phone prompts you to set a new SIM PIN. Choose a four-to-eight-digit number you can remember but others would not guess. Once confirmed, the SIM unlocks and the phone reconnects to the network—your signal bars return and calls or data start working again. If you enter the wrong PUK code ten times in a row, the SIM can become permanently blocked, and you will need a replacement SIM from your carrier.

Where The PUK Process Goes Wrong

A few simple checks can save you a call to support. First, confirm the phone is asking for a PUK, not a SIM PIN—if the screen says “Enter PIN” and you have not set one, try 1234 or 5678 as default PINs before entering anything else. Second, never enter random code guesses; each wrong attempt brings you closer to a permanently locked SIM. Third, on dual-SIM phones, make sure you are entering the PUK for the correct SIM slot, because the codes differ.

The quick-reference table below covers what to do at each stage of a SIM lock situation.

Screen You See What To Do Don’t Do This
“Enter SIM PIN” Try 1234 or 5678 Guess multiple wrong PINs—this triggers the PUK lock
“Enter PUK” with number field Enter the carrier-provided eight-digit PUK Enter random digits or a code from a third-party site
“Enter PUK” but no prompt appears Use the USSD dialer code or try placing a call Reset the phone repeatedly—it will not help
“SIM permanently blocked” Contact your carrier for a replacement SIM Try more codes—the SIM is already locked for good
Dual-SIM phone, wrong slot locked Use the SIM 2 sequence or check slot labels Enter SIM 1 PUK into the SIM 2 field

Your PUK Recovery Steps In Order

When a locked SIM stops your phone from working, work through these steps in sequence:

  1. Check whether the phone is asking for a SIM PIN or a PUK code.
  2. If it is a PIN, try the default codes 1234 and 5678.
  3. If the PUK prompt appears, retrieve the eight-digit PUK from your carrier’s online portal, customer service, or app.
  4. Enter the PUK in the on-screen field, or use the dialer USSD code if no prompt appears.
  5. Set a new SIM PIN you can remember—between four and eight digits.
  6. Confirm the new PIN and verify the phone reconnects to the network.

Following this order keeps the process clean and avoids the lockout escalation that happens when guesses replace the correct carrier-provided code.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.