Apple ID 2FA on an iPhone XSource: 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 and SecuritySource: iMore

  4. Select Turn On Two-Factor Authentication
  5. Tap Continue.
  6. Choose Continue again.

    Turning on 2FA for Apple ID showing the steps to Tap Turn On Two-Factor AuthenticationSource: iMore

  7. Enter your iPhone's passcode.
  8. Tap Done.

    Turning on 2FA for Apple ID showing the steps to Enter passcode tap DoneSource: iMore

  9. From there, enter your trusted phone number where you want to receive verification codes when you sign in to iCloud.
  10. Tap either Text Message or Phone Call to determine whether you should be verified using a text or a phone call.
  11. Select Next.
  12. 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 OKSource: 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 and SecuritySource: iMore

  4. Tap Get Verification Code.
  5. Finally, select OK when you're done with the code.

    2FA for Apple ID showing the steps to Tap Get Verification Code, tap OKSource: iMore

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

Updated October 2021: Updated for iOS 15.