How to Set Up a SIM PIN

  • Android
  • Samsung
  • iPhone

By Evertrue Tech editorial team · Updated

Checked against Apple Support, Pixel Phone Help, and Samsung UK Support on . How we check guides

Quick answer

A SIM PIN locks your SIM card so nobody can use it for calls or mobile data without the code. On iPhone, go to Settings > Cellular > SIM PIN. On a Pixel, go to Settings > Security & Privacy > More Security Settings > SIM Lock > Lock SIM. On a Samsung Galaxy, use Set up SIM card lock, and get the default PIN from your carrier first because wrong guesses can lock the SIM for good.

Warning: do not guess the PIN. If you enter the wrong SIM PIN too many times, the SIM locks and you need a PUK code from your carrier to free it. Apple says a wrong guess can permanently lock your SIM card or eSIM, and if the PUK is used up (an alert says “PUK exhausted”) you need a replacement SIM or eSIM from your carrier. Get the default PIN first, then turn the lock on. A SIM that is locked for good cannot be repaired by you, only replaced by the carrier.

What a SIM PIN does and doesn’t do

A SIM PIN is separate from your screen lock. Once it is on, the phone asks for it each time you restart it, and when the SIM is moved to another phone. Without the PIN, a thief can’t use your SIM for calls or mobile data. Google describes the risk: someone with a lost or stolen phone could use the SIM to control your phone number.

It does not lock the phone’s screen, and it does not stop someone erasing the phone. For that, see what to do if your phone is lost or stolen.

Find your default SIM PIN first

The default SIM PIN is set by your carrier, not by the phone maker. Check your carrier’s customer service page, or the paperwork that came with your plan or SIM card (Samsung says the PIN may be printed on the SIM’s original packaging). If you can’t find it, contact your carrier.

Google adds that some carriers use a default PIN that is publicly known, so it recommends changing it for stronger protection. Every phone below lets you do that once the lock is on.

On an iPhone

  1. Open Settings and tap Cellular.
  2. If you have one SIM or eSIM, tap SIM PIN and turn it on. With Dual SIM or Dual eSIM, tap the number you want first, then tap SIM PIN.
  3. If you’re asked, enter the default SIM PIN from your carrier.
  4. Tap Done.

Your iPhone then shows “Locked SIM” in the status bar after a restart or when the SIM is removed. This works for a physical SIM and an eSIM. To remove the lock later, turn SIM PIN off.

If you don’t see this option: menus vary by iOS version and model. Search for “SIM PIN” in the search field at the top of Settings.

On a Google Pixel

  1. Open Settings.
  2. Tap Security & Privacy, then More Security Settings.
  3. Tap SIM Lock, then Lock SIM.
  4. Enter the PIN when asked.

If you don’t see this option: older Pixel help pages list a SIM card lock item under Advanced security settings in Settings > Security. Menus vary by Android version, so use the search bar at the top of Settings and search “SIM lock”.

On a Samsung Galaxy

Samsung’s pages put this under a security menu whose name has changed, so the first label may differ on your phone.

  1. Open Settings, then go to the security menu (Samsung’s page uses Biometrics and security).
  2. Tap Other security settings, then Set up SIM card lock.
  3. Tap Lock SIM card.
  4. Enter your SIM card PIN, then tap OK.

Once it is active, tap Change SIM card PIN to choose your own. To turn it off, tap Lock SIM card again and enter the PIN.

If you don’t see this option: these labels come from Samsung’s UK support page and may differ on your One UI version or in the US. Search “SIM” in Settings.

If your phone asks for a PIN you don’t know

Stop and don’t try codes. Contact the carrier that issued the SIM. If you’re not sure which carrier that is, look at the name or logo on a physical SIM, or on an iPhone with an eSIM, open Settings > Cellular and look at the carrier name listed above Turn On This Line. Ask them to free the SIM with the default PIN or the PUK code.

Tips

More guides are in Privacy & Security, including the app permissions guide for Android and iPhone.

Sources

Menu paths and setting names were checked against these official help pages:

  1. support.apple.com/en-us/118228
  2. support.google.com/pixelphone/answer/15146908
  3. support.google.com/pixelphone/answer/2824802
  4. www.samsung.com/uk/support/mobile-devices/i-inserted-a-new-sim-card-and-now-it-is-asking-me-for-a-pin-or-unlock-code-to-unlock-it/