• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WebPhoneTech

How-to Guides for Your iPhone

  • All iPhone guides
  • Safari
  • Chrome & Firefox
    • Chrome
    • Firefox
    • Edge
  • Default apps
  • Security
  • About
You are here: Home / iPhone / How to Lock Your iPhone and Keep It Secure (iOS 27)

How to Lock Your iPhone and Keep It Secure (iOS 27)

October 10, 2025 By WebPhoneTech Editorial Team

To lock your iPhone right now, press the side button once. The screen goes dark, and the next person who picks it up needs your Face ID, Touch ID or passcode to get past the Lock Screen. That single press is all locking takes, but how secure the lock is depends on a few settings behind it: a passcode, how quickly the phone locks on its own, and what can still be reached from the Lock Screen.

The steps below follow iOS 27. Older versions use the same side button and mostly the same menus, and the places where they differ are noted.

What “locked” means and what you need first

A locked iPhone is still on. It is asleep with the display off (or dimmed, if your model has the Always On display), and it asks for proof that you are the owner before showing the Home Screen. Locking is different from turning the phone off, and it does not close the apps you had open.

A few terms come up throughout:

  • Passcode: the number or password you type to unlock the iPhone. Without one, locking only turns off the screen and anyone can swipe straight in.
  • Face ID or Touch ID: unlocking with your face or fingerprint. Both need a passcode set first, because the passcode is the backup.
  • Auto-Lock: the timer that locks the iPhone after a stretch without any touches.

Where the settings live depends on the model. iPhones with Face ID use Settings > Face ID & Passcode. iPhone SE and iPhone Duo use Touch ID, so the same options sit under Settings > Touch ID & Passcode.

Lock your iPhone with the side button

  1. Press the side button (on the right edge) once. Do not hold it, because holding it with a volume button brings up the power-off and Emergency SOS sliders.
  2. Check that the display turns off. If the Always On display is turned on, the screen dims and shows the clock instead of going fully black, and the phone is still locked.
  3. To get back in, wake the iPhone by raising it, tapping the screen or pressing the side button, then unlock it with Face ID, Touch ID or your passcode. On a Face ID iPhone, swipe up from the bottom once the lock icon opens.

Locking does not switch off a lit flashlight. If the light is still on after you press the button, turn the flashlight off from Control Center or the Lock Screen.

Set a passcode, or make the one you have stronger

Before you change anything here, be sure you will remember the new passcode. If you forget it, Apple’s only way back in is to erase the iPhone with a computer or recovery mode, and anything not in a backup is lost. Writing it down somewhere safe at home is reasonable for a long password.

  1. Open Settings and tap Face ID & Passcode (or Touch ID & Passcode).
  2. Tap Turn Passcode On, or Change Passcode if you already have one, and enter your current code if asked.
  3. To pick something stronger than six digits, tap Passcode Options. Apple names Custom Alphanumeric Code and Custom Numeric Code as the most secure choices.
Recreated published shared Passcode Options menu with Custom Alphanumeric Code highlighted and six empty code circles
Choose Custom Alphanumeric Code for a code that uses letters and numbers. This recreation follows the published shared three-choice menu with empty code circles; it does not enter or change a passcode.
  1. Type the new passcode twice to confirm it.

Setting a passcode also turns on data protection, which encrypts what is stored on the iPhone. That is why a phone without a passcode is only “locked” in the sense that its screen is off. Avoid birthdays, repeated digits and simple runs like 123456. A short phrase of letters and numbers that only you would think of is much harder to guess and still quick to type. To switch to a stronger one, change your iPhone 13 passcode under Face ID & Passcode and tap Passcode Options for a custom code.

Once a passcode exists, set up Face ID or Touch ID on the same screen with Set Up Face ID or Add a Fingerprint, so everyday unlocking stays fast. Your iPhone still asks for the passcode itself after a restart, after 48 hours without an unlock, after five failed face or fingerprint attempts, after a remote lock command, and in a few other situations listed on Apple’s Set a passcode on iPhone page.

Check the Require Passcode setting

On the same Face ID & Passcode screen, Require Passcode controls how soon after locking the passcode is needed. The default is immediately. If you use Face ID, Touch ID or Apple Pay, Apple does not let you change that, so on most phones you will see only one option. That is expected and is the safer setting.

Make the iPhone lock itself sooner

  1. Open Settings and tap Display & Brightness.
  2. Tap Auto-Lock.
  3. Choose a time. Shorter is more secure, because there is less of a window when a phone left on a table is open to anyone.
Recreated current seven-choice Auto-Lock list with 30 seconds checked and highlighted
Choose a short Auto-Lock delay. This recreation follows the current published seven-choice list, illustrating 30 seconds selected; no phone setting was changed.

A few things change how this timer behaves. If you leave the iPhone sitting on the Home Screen, it locks in about half the time you chose. On a Face ID iPhone with Attention Aware Features turned on, the screen will not dim or lock while it can tell you are looking at it. And while Low Power Mode is on, Auto-Lock is set to 30 seconds no matter what you picked.

The same menu goes the other way too. Choosing Never keeps the screen awake, and the trade-offs of keeping your iPhone from locking automatically are worth reading before you do it.

Lock the phone so only the passcode opens it

Sometimes you want Face ID switched off for the next unlock, for example if someone could hold the phone up to your face. On a Face ID iPhone, press and hold the side button and either volume button for about 2 seconds until the sliders appear, then let go and press the side button to lock. The next unlock needs the passcode. Apple describes this behavior on its Face ID technology page. Do not slide either slider, and let go once they appear, because holding the buttons longer can start an Emergency SOS countdown.

Turn on Stolen Device Protection

A passcode has one weakness: someone who watches you type it and then takes the phone can use it to change your Apple Account password. Stolen Device Protection closes most of that gap. When your iPhone is away from familiar places such as home or work, sensitive actions require Face ID or Touch ID with no passcode fallback, and the most serious changes (like a new Apple Account password or turning the feature off) also add a one-hour security delay.

  1. Open Settings and tap Face ID & Passcode (or Touch ID & Passcode).
  2. Enter your passcode.
  3. Tap Stolen Device Protection and turn it on. It may already be on.
Recreated published Stolen Device Protection page with its on switch highlighted above Require Security Delay choices
Turn Stolen Device Protection on. This recreation follows Apple’s published shared settings screen with Away from Familiar Locations illustrated for the delay; no protection or security setting was changed.
  1. Optional: under Require Security Delay, choose Always if you want the extra checks even at home.

To use it you need two-factor authentication on your Apple Account, a passcode, Face ID or Touch ID, Find My turned on, and Significant Locations turned on in Location Services. If the switch will not turn on, one of those is usually missing. Apple’s Stolen Device Protection article lists every protected action.

Lock individual apps and your hidden photos

Locking the whole phone does not help when you hand it to someone to show a photo or a map. For that, you can lock single apps so they need Face ID, Touch ID or the passcode even while the phone is unlocked.

  1. On the Home Screen, touch and hold the app until the quick actions menu appears.
  2. Tap Require Face ID (or Touch ID or Passcode).
  3. Tap Require Face ID again to lock it, or tap Hide and Require Face ID to also move it to the Hidden folder at the bottom of App Library.

A locked app locks again each time you leave it, and its content stops appearing in notification previews and search. Only apps you downloaded can be hidden, and children under 13 in a Family Sharing group cannot lock apps (the age varies by country or region). The details are on Apple’s Lock or hide an app page.

Photos has its own protection. Pictures you hide move to the Hidden album under Utilities, which in iOS 16 and later is locked by default and opens only after Face ID, Touch ID or your passcode. If the album opens without asking, you can keep your Hidden album behind Face ID by turning the lock back on in the Photos settings.

Choose what still works on the Lock Screen

A locked iPhone can still show some things without asking who you are, such as notifications, widgets, Control Center and Siri. That is handy for you and for anyone else holding the phone.

  1. Open Settings and tap Face ID & Passcode (or Touch ID & Passcode).
  2. Scroll to Allow Access When Locked.
  3. Turn off any feature you do not want reachable while locked. Control Center, Wallet, Reply with Message and USB accessories are the ones most worth reviewing.

Each item you switch off also takes away your own shortcut, so keep the ones you actually use. Your Medical ID stays available to first responders either way.

Lock a lost iPhone remotely with Lost Mode

If the iPhone is missing, Lost Mode locks it from another device, shows a message and phone number on its Lock Screen, silences alerts, and suspends Apple Pay cards. It only works if Find My was turned on before the phone went missing.

From another iPhone or iPad

  1. Open the Find My app on a device signed in to your Apple Account, or on a family member’s device if you share through Family Sharing.
  2. Tap Devices, then tap your missing iPhone.
  3. Under the Lost section, tap Lost Mode and follow the prompts. If the iPhone has no passcode, you are asked to create one now.
  4. Add a phone number and short message, such as “This phone belongs to Jordan. Please call 555-0142.”
Recreated current Find My Lost Mode activation sheet for fictional Alex iPhone with reserved contact number and Activate highlighted
The Lost Mode setup sheet lets the owner provide a contact number and message before Activate. This recreation follows Apple’s current published sheet with fictional Alex, a reserved example number and hidden email; it does not activate Lost Mode or access a real device.
  1. Tap Activate. You see Activated when it takes effect, or Pending until the phone goes online.

From any web browser

  1. Go to iCloud.com/find and sign in with your Apple Account. You can skip the two-factor code here, which helps when the missing phone is the one that would receive it.
  2. Select your iPhone in the device list.
  3. Select Mark As Lost and follow the onscreen steps.

Apple’s Mark a device as lost page covers both routes. Once Lost Mode is on, you can also track down the lost iPhone on a map and decide whether to erase it.

When a setting is missing or will not change

  • Auto-Lock is grayed out or stuck at 30 seconds: Low Power Mode is on. Turn it off in Control Center or in the Battery section of Settings.
  • Auto-Lock or passcode options are limited: a work or school iPhone may have a management profile that sets the maximum. Ask the organization’s IT team.
  • Require Passcode shows only Immediately: that is normal whenever Face ID, Touch ID or Apple Pay is in use.
  • The phone never seems to lock while you hold it: Attention Aware Features keeps the screen on while you look at it. Press the side button to lock manually.
  • Turn Passcode Off or Change Passcode is unavailable: Stolen Device Protection may be starting a security delay because you are away from a familiar place. Wait for it to finish, or try again at home.
  • Lost Mode is not offered: Find My was off on the missing iPhone. You can still change your Apple Account password and report the loss to your carrier.

Make sure the lock is working

Press the side button, wait a few seconds, then wake the phone. If it shows the Lock Screen and asks for Face ID, Touch ID or the passcode before the Home Screen appears, the lock is working. To test Auto-Lock, set the phone down without touching it for the time you chose and check that the screen goes dark. To test an app lock, open the app and confirm it asks you to authenticate.

Every change here can be undone from the same screen: pick a longer Auto-Lock time, turn features back on under Allow Access When Locked, or touch and hold a locked app and tap Don’t Require Face ID. If you recently changed your passcode and forget the new one within 72 hours, iOS 17 and later let you use the previous passcode once to get in and set a new one.

Common questions about locking an iPhone

Does locking my iPhone stop calls and alarms?

No. A normally locked iPhone still rings, plays alarms and shows notifications according to your Lock Screen settings. Only Lost Mode silences alerts, and even then calls and FaceTime calls still come through.

Can someone get into my iPhone if it is locked but has no passcode?

Yes. Without a passcode, a swipe up or a press of the Home button opens the phone. Setting a passcode is what turns the side-button press into real protection.

What happens if I enter the wrong passcode too many times?

After a few wrong tries the iPhone locks you out for a while, and repeated failures leave it disabled until it is erased. If Erase Data is turned on under Face ID & Passcode, it erases itself after 10 failed attempts. That protects your data from a thief, but it also means a good backup matters.

How can I lock my iPhone without pressing the button?

AssistiveTouch, Voice Control and Guided Access all offer ways to lock or freeze the screen without the side button, which helps when the button is broken or hard to press. The steps for each are in locking the iPhone screen from touch.

What should I do if I think someone already knows my passcode?

Change the passcode right away, check that Stolen Device Protection is on, and look in Settings for an extra Face ID appearance or devices you do not recognize. A full walkthrough of signs of hacking in your iPhone Settings helps you check the rest.

Start with the two changes that matter most: a passcode you will remember and an Auto-Lock time of a minute or less. Then turn on Stolen Device Protection while you are in the same menu.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook

Related

About WebPhoneTech Editorial Team

The WebPhoneTech Editorial Team writes and maintains the iPhone guides on this site. The team has more than 20 years of experience writing online tech guides and over 50 years of combined IT experience with small businesses, consumer products, mobile devices and applications.

Primary Sidebar

Browse topics

All iPhone guidesSafariChromeFirefoxDefault appsSecurity

Recent guides

  • How to Use Live Voicemail on iPhone
  • How to Remove a Bluetooth Device from Your iPhone 14
  • How to Download Offline Maps on iPhone
  • How to Use StandBy Mode on iPhone
  • How to Use Passkeys on iPhone (iOS 27)
  • Contact
  • About Us
  • Privacy Policy

Copyright WebPhoneTech.com

Loading Comments...

You must be logged in to post a comment.