Is this coding or I'll miss it

Use your iPhone, iPad, or iPod touch with a passcode

Learn how to set up, use, and change a code on your iPhone, iPad, or iPod touch.

  • After switching on or restarting the device
  • Press the home button or swipe up to unlock your device. (You can change this.)
  • Update software
  • Delete the device
  • View or change the code settings
  • Install iOS or iPadOS configuration profiles

Set code

  1. On iPhone X or later, or iPad with Face ID, go to Settings> Face ID & Passcode. On older iPhone models, tap Touch ID & Passcode. If your device doesn't support Touch ID, go to Settings> Passcode.
  2. Tap Activate Code.
  3. Enter a six-digit code. Use the code options to switch to a four-digit or custom numeric code, or to a custom alphanumeric code.
  4. Enter the code again to confirm and activate it.


Change code or code settings

On iPhone X or later, or iPad with Face ID, go to Settings> Face ID & Passcode. On older iPhone models, tap Settings> Touch ID & Passcode. If your device doesn't support Touch ID, go to Settings> Passcode.

Here you can choose between various settings and options:

  • Deactivate code: Tap this option to disable the code.
  • Change code: Enter a new six-digit code. Use the code options to switch to a four-digit or custom numeric code, or to a custom alphanumeric code.
  • Request code: Once you lock the screen, the default setting will ask you to enter your code to unlock it again. If you don't want to be prompted for the code immediately, change this setting. (For your own safety, this is not possible when using Touch ID or Apple Pay.)
  • Allow access when locked: This option allows some features to be used while your device is locked, including Today View, Notification Center, Control Center on iPhone and iPod touch or iPad, Siri, Reply with Message, Home Controls, Wallet, Up answer missed calls "and USB accessories.
  • Delete data: Set whether your device should be automatically deleted if the wrong code is entered ten times in a row. If you don't enable this option, your device will have to be restored to a computer after ten unsuccessful attempts.


Get help

Follow the steps in this section to get help with things like passcode settings, hints, and forgotten passwords.

You are prompted to change the code or you cannot adjust the code settings

Configuration profiles and email accounts that are based on Microsoft Exchange (often on corporate or educational devices) occasionally have code policies that can cause problems such as the following:

  • You cannot deactivate the code.
  • You cannot change the code settings because they are not available, grayed out, or grayed out.
  • You will see a message about a code request. For example, the message tells you that you have to change your code to unlock your iPhone within 60 minutes.

Contact your IT administrator for assistance. If you're not using a configuration profile, Microsoft Exchange account, or if your device is personally owned, make sure you update your device to the latest version of iOS or iPadOS.

Release date: