A SIM PIN is a 4- to 8-digit code stored on your SIM card or eSIM that locks it until the correct code is entered. It protects your phone number if your phone is lost or the SIM is moved to another device, because the SIM stays locked after a restart or a swap until the PIN is entered.
Key takeaways
- A SIM PIN locks the SIM card itself, not the phone, so it still protects your number if the SIM is moved.
- Never guess the PIN: three wrong tries usually lock the SIM and you will need the PUK code from your carrier.
- A SIM PIN does not stop a SIM swap at the carrier, so also turn on your carrier account lock and port-out protection.
Your phone has a lock screen, but your phone number has a separate weak point: the SIM card. Anyone who can remove that small chip can put it in another phone and receive your calls and text codes. A SIM PIN closes that gap in about two minutes.
What is a SIM PIN?
A SIM PIN is a 4- to 8-digit Personal Identification Number stored on your SIM card or eSIM. When SIM lock is on, the card will not connect to the mobile network until the correct PIN is entered.
Apple explains it plainly: to protect your SIM card or eSIM from others using it for phone calls or cellular data, you can use a SIM PIN, and the card locks every time you restart the device or remove the SIM. The status bar can show "Locked SIM" until you enter the code.
The key point is where the lock lives. It lives on the SIM, not on the phone. Your screen lock protects the handset. The SIM PIN protects the subscription — the number, the calls, the texts and the mobile data tied to that card.
That matters because text messages are still used as a second factor for banks, email and social accounts. If a thief can move your SIM to their phone, they can receive the codes sent to your number, even if they never unlock your handset.
How does a SIM PIN work?
When you turn SIM lock on, the phone asks for the PIN the next time the SIM is activated. That happens after a restart, after the SIM is removed and reinserted, and after the SIM is moved to a different phone.
Until the right code is entered, the phone cannot make calls, send texts or use mobile data on that line. Wi-Fi still works, because Wi-Fi does not need the SIM, but the number itself stays out of reach.
On a dual-SIM phone, each line has its own SIM PIN. You set them separately, and each one locks separately. The same applies to a phone with one physical SIM and one eSIM.
Is a SIM PIN the same as my phone passcode?
These three codes sound similar and protect different things. Mixing them up is the most common mistake, so keep them separate and do not reuse the same number for all three.
| Code | What it protects | Where it lives | If someone gets it |
|---|---|---|---|
| SIM PIN | Your SIM card and phone number | On the SIM or eSIM | They can use your number in any phone |
| Phone passcode | Your handset, apps and files | On the phone | They can open your phone |
| Carrier account PIN | Your carrier account and number transfers | With your carrier | They can ask the carrier to move your number |
| PUK code | Unlocks a SIM locked by wrong PIN tries | With your carrier | They can reset your SIM PIN |
A SIM PIN does not protect your photos, your banking app or your email. A phone passcode does not protect your SIM if the chip is removed. And neither of them stops a SIM swap, which is a carrier-level attack. You need all three layers: a strong phone passcode, a SIM PIN, and a carrier account lock.
Use a password manager to store the SIM PIN and the PUK details. Do not write the PIN on the SIM packaging and keep it in the phone case, and do not use your birth year, 1111 or 1234.
What is the default SIM PIN?
Carriers ship SIMs with a default PIN, and the defaults are widely known. Common defaults are 1111, 1234 and 0000, depending on the carrier and country. Verizon lists 1111 as the default SIM PIN on many of its support pages for iPhone and Samsung phones.
That is exactly why you must change it. A default PIN is not a secret. Anyone who knows which carrier you use can guess the usual default in one or two tries, and three tries are enough to lock the card — or, if they guess right on the first try, to use it.
Do not guess the default if you are unsure. Apple warns: "Don't try to guess your SIM PIN. The wrong guess can permanently lock your SIM card or eSIM." Check the SIM packaging, your carrier account online, or ask your carrier support for the default for your line.
If you have never set a SIM PIN, the lock is usually off, even though a default exists. Turning the lock on is the moment the default matters: you enter the default once, then immediately change it to your own code.
How to set a SIM PIN on iPhone
Apple documents the same steps for a physical SIM and an eSIM. The menu is under Cellular, and on a dual-SIM iPhone you pick the line first.
- Open Settings, then tap Cellular.
- If you have one SIM or eSIM, tap SIM PIN. If you have two lines, tap the number you want to protect first, then tap SIM PIN.
- Turn on SIM PIN.
- Enter your current PIN. If you have never used one, enter the default from your carrier.
- Tap Done, then tap Change PIN and enter a new 4- to 8-digit code of your own.
- Restart your phone once to check that it asks for the new PIN.
Note one Verizon caveat from its support pages: on some iPhones activated with an eSIM, the SIM PIN option may not be available in the same way, so follow your carrier guidance if the menu is missing. If the phone asks for a code you do not know, stop and contact the carrier that gave you the SIM or eSIM.
To turn the lock off later, return to the same menu, turn SIM PIN off, and enter your current PIN to confirm.
How to set a SIM PIN on Android and Samsung
Android menus vary by maker and version, but the path is consistent: Settings, then a security menu, then SIM card lock. Use Settings search for "SIM lock" if you cannot find it.
- Open Settings, then tap Security & privacy (or Security on older phones).
- Tap More security settings, then SIM card lock or SIM Lock.
- Turn on Lock SIM card and enter your current or default PIN, then tap OK.
- Tap Change SIM card PIN, enter the current PIN, then enter your new PIN twice to confirm.
On Samsung Galaxy phones, Samsung documents this path: Settings, Biometrics and security, Other security settings, Set up SIM card lock, then Lock SIM card. Once the lock is on, Change SIM card PIN appears in the same menu. Newer One UI versions may label the first step Security and privacy instead.
On a dual-SIM phone, choose SIM 1 or SIM 2 first. Each card has its own lock and its own PIN, so repeat the steps for the second card if you want both protected.
What should I do if I forgot my SIM PIN?
Stop guessing. You usually get three tries before the SIM locks, and after that you need the PUK code. Apple says the wrong guess can permanently lock the SIM or eSIM, which means you would need a new one.
- Stop after one or two failed tries. Do not keep guessing.
- Contact the carrier that issued the SIM. If you are unsure which carrier it is, remove the physical SIM and check the name or logo on it, or check the line in Settings on an eSIM phone.
- Ask for the PUK code. It is usually an 8-digit code in your online account, on the SIM packaging, or given by support after identity checks.
- Enter the PUK carefully, then set a new SIM PIN when prompted. Store the new PIN somewhere safe, away from the phone.
If the phone says "PUK exhausted", or the carrier cannot unlock the SIM with the PIN or PUK, Apple advises asking for a new SIM card or eSIM. That is inconvenient, but it is better than a thief using your number.
Does a SIM PIN stop SIM swapping?
No. A SIM PIN stops physical theft of the card. A SIM swap is different: a criminal persuades your carrier to move your number to a SIM they control, without ever touching your phone. Your SIM PIN cannot stop that, because the carrier moves the number on its own systems.
That is why the carrier locks matter just as much. In November 2023 the US Federal Communications Commission adopted rules requiring wireless providers to authenticate customers securely before a SIM change or port-out, notify customers immediately when such a request is made, and offer a free account lock against SIM changes and port-outs.
Turn on all three carrier protections today:
- A carrier account PIN or passcode that is different from your SIM PIN and your phone passcode.
- SIM Protection / SIM change lock — the name varies by carrier — which blocks SIM changes until you lift it.
- Number Lock / port-out protection, which blocks transfers of your number to another carrier.
Then reduce what a stolen number can unlock. Move important accounts — email, banking, password manager — from text-message codes to an authenticator app, a security key or a passkey where the service offers it. A SIM swap does not reach those, because they are not sent to your number.
Learn more about spotting a compromised phone in our guide to how to know if your phone is hacked.
Common SIM PIN mistakes to avoid
Most SIM PIN failures are not technical. They are habits: a default left in place, a code shared with a passcode, or a guess made in a panic.
- Leaving the default 1111 or 1234 in place. Change it the day you turn the lock on.
- Using the same code as your phone passcode. If one is seen or guessed, the other falls too.
- Guessing after two wrong tries. Stop, find the default on the packaging, or call the carrier.
- Storing the PIN in a note on the phone. If the phone is stolen, the note goes with it. Use a password manager.
- Forgetting the second SIM. On dual-SIM phones, protect both lines.
- Thinking a SIM PIN replaces carrier locks. It does not. Turn on the carrier locks as well.
Also check your phone for other signs of compromise with our guide to how to know if your phone is hacked.
Also see how to secure your Wi-Fi.
The bottom line
A SIM PIN is a small, free control with an outsized effect: it makes your phone number useless to anyone who steals the SIM. Set it, change the default, and store the new code safely.
Pair it with a strong phone passcode and your carrier SIM-change and port-out locks, and move your most important accounts off text codes where you can. You can check whether a password tied to those accounts has appeared in a breach with our free pwned password checker.
Frequently asked questions
What is a SIM PIN in simple terms?
It is a short numeric code that locks your SIM card. When it is on, the phone asks for the code after a restart or when the SIM is put in another phone, and it will not connect to the mobile network until the right code is entered.
Is a SIM PIN the same as my phone passcode?
No. Your phone passcode or screen lock protects the handset and its apps. A SIM PIN protects only the SIM card and the phone number on it. You can use both, and you should not use the same number for both.
What is the default SIM PIN?
Carriers set a default, often 1111, 1234 or 0000, and print it on the SIM packaging or list it in your account. Verizon lists 1111 as the default for many phones. If you do not know yours, ask your carrier instead of guessing.
What happens if I enter the wrong SIM PIN three times?
The SIM locks and asks for a PUK, or Personal Unblocking Key, code. You get the PUK from your carrier, usually in your online account or by calling support. Entering the PUK wrong too many times can permanently disable the SIM.
Does a SIM PIN stop SIM swapping?
No, not by itself. A SIM swap happens at the carrier, when a criminal persuades the carrier to move your number to their SIM. A SIM PIN stops physical theft of the SIM, but you also need a carrier account PIN and the carrier SIM-change and port-out locks.
Does a SIM PIN work on eSIM?
Yes. Apple documents the SIM PIN for both a physical SIM and an eSIM on iPhone and iPad. The SIM or eSIM locks when the device restarts or the SIM is removed, and the status bar can show Locked SIM.
Should I turn on a SIM PIN?
Yes, for most people. It costs nothing, takes two minutes, and removes an easy path for a thief who finds or steals your phone. Just change the default first, store the new code in a password manager, and keep your PUK details safe.
How do I turn off a SIM PIN?
Go back to the same SIM PIN menu, turn the lock off, and enter your current PIN to confirm. Turning it off removes the prompt at restart, but it does not change your phone passcode or cancel your mobile service.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Apple Support, Verizon support and Samsung support guidance on SIM PINs.
How we write and fact-check →