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
49 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
49 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
49 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
49 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
49 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
49 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)

Related Stories

General Apps Messages

Android iMessage Competitor Puts Pressure on Apple

Friday July 30, 2021 3:15 am PDT by
Google and the three major U.S. carriers, including Verizon, AT&T, and T-Mobile, will all support a new communications protocol on Android smartphones starting in 2022, a move that puts pressure on Apple to adopt a new cross-platform messaging standard and may present a challenge to iMessage. Verizon recently announced that it is planning to adopt Messages by Google as its default messaging...
iphone 13 teal with text

Apple Begins Preparation for iPhone 13 Production Ahead of Fall Launch

Monday June 28, 2021 3:29 am PDT by
We're just a few months away from when Apple is expected to reveal the 2021 iPhone, dubbed the "iPhone 13." In preparation for its launch, it has been pulling in shipments of different components needed to produce the new iPhones, according to a report from DigiTimes. In years past, Apple released its latest iPhone lineup, alongside a new Apple Watch, during a September event at Apple Park....
studio buds family

Beats Studio Buds Debuting Today With Active Noise Cancellation, Stemless Design, and More for $150

Monday June 14, 2021 8:00 am PDT by
We've seen a lot of teasers about the Beats Studio Buds over the past month since they first showed up in Apple's beta software updates, and today they're finally official. The Beats Studio Buds are available to order today in red, white, and black ahead of a June 24 ship date, and they're priced at $149.99. The Studio Buds are the first Beats-branded earbuds to truly compete with AirPods...
bluetti eb70 main

MacRumors Giveaway: Win a Bluetti EB70 Portable Power Station and 200W Solar Panel

Friday September 3, 2021 11:13 am PDT by
For this week's giveaway, we've teamed up with MAXOAK to offer MacRumors readers a chance to win a Bluetti portable power station and an accompanying solar panel. Bluetti makes a range of portable power station options that are useful for camping, emergencies, power outages, off-grid living, and similar situations. The Bluetti EB70 is a solid middle of the road option that offers 716Wh and...
apple privacy

Apple Publishes FAQ to Address Concerns About CSAM Detection and Messages Scanning

Monday August 9, 2021 1:50 am PDT by
Apple has published a FAQ titled "Expanded Protections for Children" which aims to allay users' privacy concerns about the new CSAM detection in iCloud Photos and communication safety for Messages features that the company announced last week. "Since we announced these features, many stakeholders including privacy organizations and child safety organizations have expressed their support of...
macos catalina legacy system extension alert

Apple Begins Warning Users That 'Legacy System Extensions' Won't Work With a Future Version of macOS

Wednesday March 25, 2020 9:53 am PDT by
Apple has shared a new support document that indicates kernel extensions — which it calls "legacy system extensions" — will not be compatible with a future version of macOS because they "aren't as secure or reliable as modern alternatives."System extensions are a category of software that works in the background to extend the functionality of your Mac. Some apps install kernel extensions, which...
General Spotify Feature

Spotify Pauses Plans to Add AirPlay 2 Support to iOS App [Update: Spotify Clarifies]

Friday August 6, 2021 9:07 am PDT by
See update at bottom of article Spotify this week confirmed that its plans to add AirPlay 2 support to its iOS app have been placed on indefinite hiatus. In an online discussion forum post, a Spotify representative said the streaming music service had been working on supporting AirPlay 2, but the company has paused the efforts "for now" due to "audio driver compatibility issues." The...
youtube apple tv

YouTube Discontinuing 3rd-Generation Apple TV App, AirPlay Still Available

Wednesday February 3, 2021 3:09 pm PST by
YouTube is planning to stop supporting its YouTube app on the third-generation Apple TV models, where YouTube has long been available as a channel option. A 9to5Mac reader received a message about the upcoming app discontinuation, which is set to take place in March.Starting early March, the YouTube app will no longer be available on Apple TV (3rd generation). You can still watch YouTube on...
os x mountain lion macs 16x9 2

Apple Makes OS X Lion and Mountain Lion Free to Download

Wednesday June 30, 2021 12:19 pm PDT by
Apple recently dropped the $19.99 fee for OS X Lion and Mountain Lion, making the older Mac updates free to download, reports Macworld. Apple has kept OS X 10.7 Lion and OS X 10.8 Mountain Lion available for customers who have machines limited to the older software, but until recently, Apple was charging $19.99 to get download codes for the updates. As of last week, these updates no...
Pixel Stand 23W 668x445

Google Pixel 6 Rumored to Support 23W Wireless Charging, Beating iPhone 12's MagSafe

Wednesday September 1, 2021 1:54 am PDT by
Google is rumored to be working on a new wireless charging stand that could deliver 23W of charging power to its upcoming Pixel 6 and Pixel 6 Pro phones, according to a leaked inventory image published by Android Police. Image via Android Police. If true, that would beat the iPhone 12's maximum 15W wireless charging speed (or 12W on ‌iPhone 12 mini‌) using Apple's MagSafe charger, and...