Apple introduced two-factor authentication (2FA) in 2015 to provide an enhanced level of security when accessing Apple ID accounts. With 2FA enabled, you'll be the only person who can access your account, regardless of whether someone learns your password – as the result of a hack or a phishing scam, for example – so it's well worth taking the time to enable the feature. In this article, we'll show you how.

How Two-Factor Authentication Works

2FA offers hardened security during login attempts by requesting that the user provides an extra piece of information only they would know.

2fa verification on ios
With 2FA enabled on your Apple ID account, the next time you try to log in you will be automatically sent a six-digit verification code to all the Apple devices you have registered to that Apple ID. If you try to access the account from an unknown device or on the web, 2FA also displays a map on all registered devices with an approximate location of where the Apple ID login attempt occurred.

In basic terms, this is an improved version of Apple's older two-step verification method, which prompted users to send a four-digit code to a registered SMS-capable device. Apple automatically upgraded most two-step verification users to 2FA as of iOS 11 and macOS High Sierra, but if you're still on two-step verification for some reason, follow the steps below to manually upgrade to 2FA.

How to Turn Off Two-Step Verification

  1. Open a browser and go to appleid.apple.com
  2. Enter your Apple ID and password in the login fields.
  3. In the Security section of your account page, click the Edit button on the right.
  4. Check to make sure two-step verification is enabled rather than two-factor authentication, and click Turn off two-step verification.

How to Turn On Two-Factor Authentication in iOS

To turn on 2FA using an iPhone or iPad, it needs to be running iOS 9 or later. Note that if you're running iOS 10 or later and you have any other, older devices tied to your Apple ID that aren't compatible with 2FA, you'll receive a compatibility warning during the setup process.

On top of that, you'll also be asked to append a six-digit code to the end of your password whenever you authenticate a login on your older devices in future. You can potentially avoid this hassle by updating those devices to the latest version of iOS or macOS where possible.

With that in mind, perform the following steps on your iOS device:

  1. Open the Settings app and tap your Apple ID banner at the top of screen.
  2. Tap Password & Security.
  3. Tap Turn On Two-Factor Authentication, and then tap Continue on the next screen.
  4. Tap Turn On Anyway if you see a compatibility warning about older devices.
  5. Check your phone number is correct. (If it isn't, tap Use a Different Number at the bottom of the screen and input a new number.)
  6. Select Text message or Phone call for verification, and then tap Next.
  7. Enter your Passcode.

2fa ios e1517490695102

How to Turn On Two-Factor Authentication on a Mac

If it's a Mac you're using to enable two-factor authentication then make sure it's running OS X El Capitan or later. To turn on 2FA on Mac, follow these steps:

  1. Click the Apple () symbol in the menu bar at the top left of the desktop, and select System Preferences.
  2. Click the iCloud preferences pane.
  3. Click the Account Details button and select the Security tab.
  4. Click Turn on Two-Factor Authentication, and then click Continue in the drop-down pane.
  5. Check your phone number is correct and click Continue.

2fa mac 2

Verification Codes

With 2FA enabled, you'll be prompted to enter a new verification code every time you log in to your Apple ID account using iCloud.com or another Mac or iOS device. These codes will automatically appear on devices that are already logged into your Apple ID, but you can also request them manually using an iPhone or iPad, like so:

  1. Open the Settings app and tap on your Apple ID banner at the top of the screen.
  2. Tap Password & Security.
  3. Tap Get Verification Code.

2fa codes

Top Rated Comments

Primejimbo Avatar
42 months ago
User BEWARE!!
There's currently no way to recover your account using two factor authentication if you lose or forget your password and or the recovery key.
Without the recovery key the account and all its contents will be lost completely (all purchases)
The recovery key must be store in a "safe deposit box" outside the residence in case your house burns down i.e. Cal Wild Fires, floods, etc. and your recovery key was stored at home in a "safe" place.
DO NOT USE TWO FACTOR AUTHENTICATION if you do not store your password and recovery key outside the residence or in another cloud account where it can be readily accessed.
Yes there is. With the old way (2 step verification) you needed a recovery key. This way they are doing now, you don’t. I’m actually helped a person recover their data and they got a phone call in 12 days and got their account unlocked.

Personally, I rather have it so I need a recovery key.
Score: 4 Votes (Like | Disagree)
Apple_Robert Avatar
42 months ago
No way to recover if you lose your phone while travelling. Apple should allow two factor with a secondary email rather than phone number.
You can set up more than 1 trusted phone number.
Score: 3 Votes (Like | Disagree)
Weaselboy Avatar
42 months ago
You can set up more than 1 trusted phone number.
Yep... you can even add your home phone and Apple will robo call you with the six digit code.
Score: 3 Votes (Like | Disagree)
twennywonn Avatar
42 months ago
User BEWARE!!
There's currently no way to recover your account using two factor authentication if you lose or forget your password and or the recovery key.
Without the recovery key the account and all its contents will be lost completely (all purchases)
The recovery key must be store in a "safe deposit box" outside the residence in case your house burns down i.e. Cal Wild Fires, floods, etc. and your recovery key was stored at home in a "safe" place.
DO NOT USE TWO FACTOR AUTHENTICATION if you do not store your password and recovery key outside the residence or in another cloud account where it can be readily accessed.
This is obviously by design for security reasons.
Score: 3 Votes (Like | Disagree)
Apple_Robert Avatar
42 months ago
Glad to see MR posting a much needed tutorial for those who may not know all that is involved.
Score: 2 Votes (Like | Disagree)
Weaselboy Avatar
42 months ago
If you set someone up as a "trusted" number, do they get notified every single time you get an access code to get into an iCloud setting or whatever?

For whatever reason, every single time -- for example -- that I open iCloud.com in a browser I'm prompted for a code from a trusted device... even though I've checked "remember me" over and over.
No it defaults to the main iCloud account. You would need to manually tell it to use one of the other numbers for the other person to get the code.
Score: 2 Votes (Like | Disagree)

Top Stories

siir apple event april 20

Siri Reveals Apple Event Planned for Tuesday, April 20

Tuesday April 13, 2021 12:04 am PDT by
Siri has apparently prematurely revealed that Apple plans to hold an event on Tuesday, April 20, where the company is expected to reveal brand new iPad Pro models and possibly its long-awaited AirTags trackers. Subscribe to the MacRumors YouTube channel for more videos. Upon being asked "When is the next Apple Event," Siri is currently responding with, "The special event is on Tuesday, April...
apple event spring loaded

Apple's 'Spring Loaded' Event Officially Announced for Tuesday, April 20

Tuesday April 13, 2021 9:04 am PDT by
Following an overnight leak by Siri, Apple today officially announced that it will be holding a special "Spring Loaded" event on Tuesday, April 20 at 10:00 a.m. Pacific Time at the Steve Jobs Theater on the Apple Park campus in Cupertino, California. As with all of Apple's 2020 events, the April 2021 event will be a digital-only gathering with no members of the media invited to attend in...
pixel watch prosser leak

Google Pixel Watch Allegedly Leaks with Circular Design, Rumored to Launch in October

Monday April 12, 2021 2:49 am PDT by
Renders of Google's first smartwatch, codenamed "Rohan," have been shared by Jon Prosser, showing that Google plans to adopt a circular design for its flagship wearable watch. Prosser shared the renders in an episode of his YouTube show "Front Page Tech," in which he claims they were made based on marketing material he had seen from a source within Google. The renders show that the Pixel...
Google maps feaure green

Google Maps App for iOS Finally Updated After Four Months

Monday April 12, 2021 10:03 am PDT by
Following the completed rollout of App Privacy labels for its App Store apps, Google today updated the Google Maps app for the first time in four months. Apple in December began requiring all new app submissions and app updates to include App Privacy labels, detailing the data that is collected by the app so consumers know what they're sharing. Google didn't begin implementing App Privacy ...
AppleTV and HomePod Feature

Bloomberg: Apple Working on New Apple TV With Integrated HomePod Speaker and FaceTime Camera

Monday April 12, 2021 3:32 am PDT by
Apple is working on a combined Apple TV with HomePod speaker that has a camera for video calls through a connected television set, according to Bloomberg's Mark Gurman. From the report: The company is working on a product that would combine an Apple TV set-top box with a HomePod speaker and include a camera for video conferencing through a connected TV and other smart-home functions,...
samsung experience 1

Samsung's 'iTest' Lets You Try a Galaxy Device on Your iPhone

Thursday April 8, 2021 12:42 pm PDT by
Samsung has launched "iTest," an interactive website experience that's designed to allow iPhone users to test out Android on a Galaxy device, or "sample the other side," as Samsung puts it. Subscribe to the MacRumors YouTube channel for more videos. The iTest website is being advertised in New Zealand, according to a MacRumors reader who came across the feature. Visiting the iTest website on...
epic iap feature 3

Tim Cook Says App Store Would Become a 'Flea Market' if Third-Party Payment Systems Were Allowed

Monday April 12, 2021 9:41 am PDT by
In a recent interview with the Toronto Star, Apple CEO Tim Cook spoke about a wide variety of topics, ranging from App Tracking Transparency to Apple's ongoing legal battle over App Store policies with Fortnite creator Epic Games. Notably, Cook said that Epic Games' desire for Apple to let developers offer their own payment systems in apps "would make the App Store a flea market":At the...
tim cook toronto star

Tim Cook Says Apple is 'Not Against Digital Advertising' Ahead of iOS 14.5 Launch With App Tracking Transparency

Monday April 12, 2021 8:00 am PDT by
Starting with iOS 14.5, iPadOS 14.5, and tvOS 14.5, Apple will be requiring apps to receive a user's permission to track their activity for targeted advertising purposes, as part of a privacy measure known as App Tracking Transparency. Ahead of App Tracking Transparency being enforced, Apple CEO Tim Cook has participated in a privacy-focused interview with the Toronto Star, telling the...
a13 bionic mockup

Apple Made Sudden Security Changes to its Chips in Fall 2020

Monday April 12, 2021 8:15 am PDT by
Apple made unusual mid-production hardware changes to the A12, A13, and S5 processors in its devices in the fall of 2020 to update the Secure Storage Component, according to Apple Support documents. According to an Apple Support page, spotted by Twitter user Andrew Pantyukhin, Apple changed the Secure Enclave in a number of products in the fall of 2020:Note: A12, A13, S4, and S5 products...
HomePod G4 Feature

Bloomberg: Future HomePod May Feature iPad Connected Via Robotic Arm to Track Users Around The Room During FaceTime Calls

Monday April 12, 2021 3:50 am PDT by
In a report outlining a possible Apple TV with a combined HomePod and camera, Bloomberg's Mark Gurman says that Apple is exploring a future high-end HomePod speaker that could include an iPad connected via a robotic arm that tracks and follows users around a room. From the report: The Cupertino, California-based technology giant, is also mulling the launch of a high-end speaker with a touch ...