Keep your iCloud account secure with two-factor authentication

How do you set up Apple's two-factor authentication, and how do you get verification codes? Here's what you need to know!

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 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.

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

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

  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.

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.

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

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

Updated October 2021: Updated for iOS 15.