What a PUK code is and why you need it
A PUK code (Personal Unblocking Key) is an 8-digit number that unlocks your SIM card after you enter the wrong PIN too many times. When you type your 4-digit PIN incorrectly three times in a row, your phone blocks the SIM card to prevent someone else from guessing it. At that point, only the PUK code will unblock it — your PIN won't work anymore until you use the PUK to reset.
Your carrier issued this code when you got your SIM card, but most people never see it again unless they get locked out. The code is specific to your SIM card, not your phone, so if you swap SIM cards between devices, you take the PUK with you.
Key Takeaways
- Your PUK code came with your SIM card paperwork when you first got service, usually printed on a small card or in your welcome packet.
- If you still have the original paperwork, look for a section labeled "PUK", "Security Code", or "Unblocking Key" — it is an 8-digit number.
- Your carrier can look up your PUK code by phone or online account if you provide proof of identity, though the process varies by carrier.
- Once you enter the correct PUK code on your locked phone, you will be asked to create a new PIN, and your SIM card will work again.
- If you enter the wrong PUK code 10 times, your SIM card becomes permanently locked and must be replaced by your carrier.
Check your original SIM card paperwork first
When you first got your SIM card — whether from a carrier store, online order, or as part of a new phone purchase — it came with a small card or packet of information. This paperwork usually includes your phone number, account details, and a section with security codes. Look for a line labeled "PUK", "PUK Code", "Security Code", or "Unblocking Key". The PUK is always 8 digits long.
If you bought your phone and SIM card together at a carrier store, check any receipts or documents they gave you. If you ordered online, look through your email for a welcome message or account setup email from your carrier — many include the PUK in that message. Some carriers also print it on the back of the SIM card itself, though the text is often small.
Keep this paperwork in a safe place once you find it. Taking a photo of the PUK and storing it in a password manager (like Bitwarden or 1Password) means you will have it even if the physical card gets lost.
Contact your carrier by phone
If you cannot find the original paperwork, call your carrier's customer service line. Have your phone number and account information ready. The representative will ask you to verify your identity — usually by providing your account PIN, the last four digits of the phone number on file, or answers to security questions you set up when you opened the account.
Once verified, the representative can look up your PUK code and read it to you over the phone. Write it down carefully — it is 8 digits, and a single mistake means you will have to call back. Ask the representative to repeat it back to you to confirm.
Here are the main carrier phone numbers in the United States:
- Verizon: 1-908-559-4899 (customer service)
- AT&T: 1-800-331-0500 (customer service)
- T-Mobile: 1-844-839-4534 (customer service)
- US Cellular: 1-888-944-9400 (customer service)
If you use a smaller carrier (like Mint Mobile, Visible, or Cricket), call the number on your bill or visit their website for the correct support line.
Look up your PUK code in your online account
Many carriers let you view your PUK code through your online account or mobile app without calling. Log in to your carrier's website or open their official app, then look for a section labeled "Account", "Settings", "Security", or "SIM Card Information".
Not all carriers make this easy to find. Verizon and AT&T both have account pages where you can view your PUK, though the location varies. T-Mobile's app does not always display the PUK in the main account section — you may need to contact them by chat or phone. Check your carrier's help section or search their website for "view PUK code" if you cannot find it.
If your account is locked or you cannot remember your login, you will need to verify your identity through the carrier's website before you can reset your password. This usually involves answering security questions or receiving a code by email or text.
What to do once you have your PUK code
When your phone is locked and asking for a PUK, the screen will show a field labeled "Enter PUK" or "PUK Code". Type all 8 digits carefully. After you enter the correct code, your phone will ask you to create a new 4-digit PIN. Choose a number you will remember but that is not obvious (avoid 1111, 1234, or your birth year).
Once you set the new PIN, your SIM card will unlock and your phone will work normally again. You can now use your phone to make calls, send texts, and use mobile data.
If you enter an incorrect PUK code, your phone will tell you how many attempts you have left. You get 10 tries total before the SIM card becomes permanently locked. If you run out of attempts, you will need to contact your carrier to request a replacement SIM card.
Prevent getting locked out again
Once you have your PUK code, store it somewhere safe and separate from your phone. Write it down and keep it in a drawer, or take a photo and store it in a password manager. Do not write your PIN on the same piece of paper — the PUK is meant to be a backup if you forget or lose the PIN.
To avoid entering your PIN wrong repeatedly, take your time when typing it. If you are not sure what your PIN is, do not guess — contact your carrier instead. Entering the PIN incorrectly three times locks your SIM, and entering the PUK incorrectly ten times locks it permanently.
Some phones let you turn off PIN protection entirely, which removes the lock but also removes this layer of security. If you do this, your SIM card will not require a PIN or PUK to use, but anyone with your SIM card could use it in another phone. Most people should keep PIN protection on.
What happens if your SIM card is permanently locked
If you enter the wrong PUK code 10 times, your SIM card will be permanently locked and cannot be unlocked. Your phone will no longer be able to use that SIM card, even if you somehow get the correct PUK later.
When this happens, contact your carrier and request a replacement SIM card. You will usually need to verify your identity and account information. The carrier will mail you a new SIM card or, in some cases, let you pick one up at a store. There is typically no charge for a replacement SIM card if it is your first one, though some carriers charge a small fee.
Once you have the new SIM card, you will set up a new PIN during the activation process. Keep the PUK code for this new card in a safe place.
Frequently Asked Questions
Can I use my PIN instead of my PUK code to unlock my SIM?
No. Once your SIM is locked after three wrong PIN attempts, only the PUK code will unlock it. Your PIN is no longer active until you use the PUK to reset it. This is intentional — it prevents someone from guessing your PIN by trying many times.
Is my PUK code the same as my account PIN?
No. Your account PIN is a separate 4-digit code you use to verify your identity when calling your carrier. Your PUK code is an 8-digit code that unlocks your SIM card. They are different numbers for different purposes.
What if I lost my SIM card and got a new one — do I need the old PUK code?
No. Each SIM card has its own PUK code. If you got a replacement SIM card from your carrier, it has a different PUK code printed on the paperwork that came with it. The old PUK code no longer applies.
Can someone unlock my SIM card if they have my PUK code?
Yes, which is why you should keep your PUK code private and stored securely. If someone has both your SIM card and your PUK code, they could unlock it and use it in another phone. Store your PUK in a password manager or safe location, not in a text file on your computer or in an email.
How long does it take to get a replacement SIM card if mine is permanently locked?
If you order by mail, most carriers ship a replacement SIM card within one to three business days. If you visit a carrier store in person, you can usually get a replacement the same day. Some carriers offer expedited shipping for an extra fee.