How to set up a password on a smartphone

Updated: 10/11/2021 by Computer Hope

It is a good idea to set a password on your smartphone. Doing so prevents unauthorized use, and if your phone is stolen, a password makes it difficult for the thief to access its contents. To learn how to set a password on your smartphone, choose from the devices listed below.


Make sure your password is easy for you to remember, but difficult for anyone else to guess.

Set a password on an Android smartphone

  1. Open Settings by swiping down from the top of the screen twice and tapping the Settings icon. Alternatively, swipe up from the bottom of the screen once to open all apps and tapping the Settings icon.

android settings

  1. Tap the Security option. You might have to scroll down to find it.

android security

  1. Under Device Security, tap Screen Lock.

android screen lock

  1. Choose from None, Swipe, Pattern, PIN, or Password.

android lock options

  1. Once you choose your option, follow the prompts on the screen to set the password option. For example, if you choose the PIN option, it would look like what is shown in the picture below. Enter your PIN (A), then tap Next. Re-enter your PIN on the next screen (B), then tap Confirm. Most PIN options allow from 4 to 16 numbers.

android setting up pin

Setting a password for iPhone

Setting a Face ID


Face ID only works on Apple iPhone 8 and later, with iOS version 13.1 and later.

  1. Tap the Settings icon on your iPhone.

iPhone settings

  1. Tap the Face ID & Passcode option.

iPhone face id and passcode

  1. Hold your iPhone in portrait orientation, and tap Get Started.
  2. Position your face in the frame, and follow the on-screen instructions.
  3. Tap Continue, and repeat step 4 again.
  4. Tap Done.
  5. If you haven't already set a passcode, you are asked to set one as an alternate verification method, making your iPhone more secure.

Setting a passcode for iPhone

  1. Tap the Settings icon on your iPhone.

iPhone settings

  1. If using an iPhone with a home button, tap the Touch ID & Passcode option. If using a phone with Face ID, tap the Face ID & Passcode option.
  2. Tap Turn Passcode On.

iPhone turn passcode on

  1. Tap Passcode Options.
  2. Select the Custom Alphanumeric Code or Custom Numeric Code option, depending on your preference for the type of passcode you want to use.
  3. Follow the on-screen prompts to set up a passcode.