You enter a PUK code on an iPhone by typing the carrier-provided 8-digit code into the on-screen prompt that appears after three wrong SIM PIN attempts.
One wrong tap on the SIM PIN prompt and your iPhone screen freezes with a request for a number you’ve probably never seen: the PUK code. Pass it, and you’re back online. Fail it 10 times, and the SIM card is dead forever. Knowing how to enter a PUK code on iPhone starts with one critical rule: never guess.
What Is A PUK Code And Why Is It Asking For One?
A Personal Unlocking Key (PUK) is an 8-digit code linked to your SIM card’s unique serial number (ICCID). It acts as the master key when the smaller SIM PIN is forgotten or entered incorrectly. After three wrong SIM PIN attempts, the iPhone locks the SIM and displays the PUK prompt automatically. Without this code, the SIM cannot be used on any device, even after a factory reset.
The prompt is serious because the PUK is nearly impossible to brute force. The system only allows 10 attempts before the SIM is permanently disabled. This isn’t something to guess at.
Getting Your 8-Digit PUK Code (The Only Hard Part)
The iPhone cannot show you your PUK code. It’s not hidden in the settings or behind a secret dialer code. It belongs to your carrier, and your job is to retrieve it from their records or the original SIM packaging. The plastic card your SIM came on often has a PUK number printed under a scratch-off panel.
For most people, a quick call to customer support is the fastest route. Carriers require you to verify your identity as the account holder before releasing the code, so have your account number or last four digits of your Social Security Number ready.
| Carrier | How To Get The PUK Code | Support Phone Number |
|---|---|---|
| AT&T | Log in to your account online at att.com. Go to Troubleshoot & Resolve, select your device, and view the PUK1 or PUK2 code. | 1-800-331-0500 |
| T-Mobile | Call T-Mobile customer care or dial 611 from your phone. They will verify the account and provide the code. | 1-800-937-8992 |
| Verizon | Log in to My Verizon. Navigate to Support > Troubleshooting > Apple iPhone > Unblock SIM PIN. | 1-800-922-0204 |
| Mint Mobile | Contact Mint Mobile customer support directly. The code is not available in the account dashboard. | 1-800-683-7392 |
| Ting | Physical SIMs: check the original packaging. eSIMs: chat with support. | Contact your carrier |
| Other Carriers | Check the original SIM card packaging for a printed PUK. Alternatively, call customer support and provide your ICCID number. | Contact your carrier |
Entering The PUK Code On Your iPhone: The Step Order That Works
Once you have the 8-digit code, entering it takes about 15 seconds. The iPhone handles the process automatically — there is no master menu to find.
- Obtain the Code. Call your carrier or check their app using the methods in the table above. Do not try to guess or use a SIM PIN in this field.
- Enter the 8-Digit Code. The iPhone will present a “Enter PUK Code” text field. Type the 8 digits exactly as provided by your carrier.
- Tap OK. The iPhone will verify the code with the SIM hardware. If correct, the SIM is unlocked.
- Set a New SIM PIN. Immediately after entering the PUK, iOS will prompt you to create a new SIM PIN. This is your chance to set a password you will actually remember.
If the PUK is correct, the “No Service” or “SIM Locked” message disappears and the carrier name appears in the status bar. You will be prompted to set a new SIM PIN.
The Prompt Isn’t Showing Up? This usually happens if the SIM lock isn’t triggered. Toggle Airplane Mode on and off, or try to make a phone call. This forces the iPhone to re-establish the network connection, triggering the PUK prompt if a PIN is required.
What Happens If You Enter The Wrong PUK Code?
You have exactly 10 consecutive attempts to enter the correct PUK code. The counter resets only if the correct code is entered. If you fail all 10 attempts, the SIM card enters a state called “PUK exhausted.”
The SIM is permanently locked at this point. No software, third-party tool, or factory reset can reverse this. The only fix is to request a new physical SIM or eSIM from your carrier. Apple’s official support documentation confirms this limitation and walks you through the SIM PIN setup.
The risk of permanent lock is why guessing is so dangerous. The PUK code is a strict gatekeeper — do not test it.
Physical SIM vs. eSIM PUK Codes
How you get the PUK code depends on the type of SIM in your iPhone. eSIMs are convenient, but they make the PUK harder to find.
| SIM Type | Where To Find The PUK | Fallback If PUK Is Lost |
|---|---|---|
| Physical SIM | Printed on the plastic SIM card holder or under the SIM tray. | Call carrier support to retrieve the code or request a replacement SIM. |
| eSIM | Not printed on anything physical. Only available via carrier app or support. | Contact carrier support. They can re-issue the eSIM profile or provide the PUK after verification. |
The Secure Way To Use Your SIM Again
The PUK code is a security feature that lives entirely with your carrier. The guarantee is simple: they control the master key, and they will only give it to the account owner. Guessing leads to a permanently locked SIM and a call to support anyway. Getting the code directly from the carrier via phone or account portal is the only method that works, and it takes less time than you think.
References & Sources
- Apple Support. “Use a SIM PIN with your iPhone or iPad.” Official guide to setting up and unlocking SIM PINs.
- AT&T Wireless. “Enter PUK Code.” Instructions for AT&T users to retrieve their PUK code.
- Verizon Support. “Apple iPhone – Unblock SIM PIN.” Verizon’s support guide for SIM unlocking.
- Apple Discussions. “How to enter PUK code onto my iPhone.” Community thread detailing the standard entry procedure.
