How to set up two-factor authentication for your Apple ID

Apple ID 2FA on an iPhone X
Apple ID 2FA on an iPhone X (Image credit: iMore)

Two-factor authentication (2FA) is a secondary security measure that provides you with an access code for your Apple ID after you enter your username and password on a new device or into iCloud.com. Apple allows its customers to set up 2FA for their iCloud accounts on the best iPhones and best iPads, and get codes from a circle of trusted devices which also include Macs.

Bottom line: If you want something more than just your password to protect your Apple ID — which you use for iCloud, iTunes, and the App Store — then you want 2-factor authentication turned on.

How to enable Apple's two-factor authentication

It's easy to set up two-factor authentication right on your iPhone or iPad. Here's how to do it!

  1. Open Settings on your iPhone or iPad.
  2. Tap the Apple ID banner.
  3. Choose Password & Security.

Turning on 2FA for Apple ID showing the steps to Open Settings, tap banner, tap Password & Security (Image credit: iMore)
  1. Select Turn On Two-Factor Authentication
  2. Tap Continue.
  3. Choose Continue again.

Turning on 2FA for Apple ID showing the steps to Tap Turn On Two-Factor Authentication (Image credit: iMore)
  1. Enter your iPhone's passcode.
  2. Tap Done.

Turning on 2FA for Apple ID showing the steps to Enter passcode tap Done (Image credit: iMore)
  1. From there, enter your trusted phone number where you want to receive verification codes when you sign in to iCloud.
  2. Tap either Text Message or Phone Call to determine whether you should be verified using a text or a phone call.
  3. Select Next.
  4. Enter the verification code that you're sent.

How to use Apple's two-factor authentication verification codes

  1. Sign in to a website, app, or device with an iCloud account with two-factor authentication turned on.
  2. Tap Allow on the popup that appears on one of your trusted iCloud devices.
  3. Enter the code on your website, app, or device.
  4. Tap OK to dismiss the code.

2FA for Apple ID showing the steps to Tap Allow, tap OK (Image credit: iMore)

You can also get a verification code any time you want.

  1. Open Settings on your iPhone or iPad.
  2. Tap the Apple ID banner.
  3. Choose Password & Security.

2FA for Apple ID showing the steps to Open Settings, tap banner, tap Password & Security (Image credit: iMore)
  1. Tap Get Verification Code.
  2. Finally, select OK when you're done with the code.

2FA for Apple ID showing the steps to Tap Get Verification Code, tap OK (Image credit: iMore)

And that's how to use Apple's two-factor authentication!

Updated October 2021: Updated for iOS 15.

Joseph Keller

Joseph Keller is the former Editor in Chief of iMore. An Apple user for almost 20 years, he spends his time learning the ins and outs of iOS and macOS, always finding ways of getting the most out of his iPhone, iPad, Apple Watch, and Mac.