Short answer: on iPhone, go to Settings > [your name] > Sign-In & Security > Two-Factor Authentication and turn it on if it is not already. Add a trusted phone number. From then on, signing in on a new device requires your password plus a six-digit code shown on one of your trusted Apple devices or sent to your trusted number. Most Apple Accounts created in recent years have two-factor authentication on by default, and once enabled for some time it generally cannot be turned off.
Apple’s two-factor authentication is built into iOS, iPadOS and macOS rather than relying on a separate authenticator app. It protects iCloud photos and backups, iMessage, Find My, purchases and every other service tied to your Apple Account (formerly Apple ID).

How Apple’s two-factor authentication works
When you sign in on a new device or at iCloud.com, Apple sends a notification to your trusted devices, the iPhones, iPads and Macs already signed in to your account. The notification shows an approximate location map. If you approve, a six-digit verification code appears; you enter it on the new device. If you have no trusted device handy, you can receive the code by text or phone call on a trusted phone number. On a trusted device, you can also get a code at any time from Settings > [your name] > Sign-In & Security > Get Verification Code.
Turn it on
- On iPhone or iPad: Settings > [your name] > Sign-In & Security. On Mac: System Settings > [your name] > Sign-In & Security.
- Tap Turn On Two-Factor Authentication and follow the prompts.
- Enter and verify a trusted phone number.
Once on, Apple may give you two weeks to turn it off if you change your mind; after that, accounts with two-factor authentication generally cannot downgrade, because some iOS and macOS features require it.
Manage trusted phone numbers
In Sign-In & Security, under Trusted Phone Numbers, tap Edit to add or remove numbers. Keep at least one current number; adding a second (another number you own or a trusted family member’s) prevents lockouts if you lose your SIM.
Strengthen with security keys
For maximum protection against phishing, Apple supports Security Keys for Apple Account: FIDO-certified hardware keys you tap or plug in instead of entering a code. You must register at least two keys. They are well suited to journalists, public figures and anyone worried about targeted attacks. See setting up a hardware security key.
Recovery planning
If you lose access to all trusted devices and numbers, you will need account recovery, which can take days. Avoid that by setting up a recovery contact in Sign-In & Security > Account Recovery, and optionally a recovery key. Keeping your devices updated also means you can reset your password with just a device passcode.

Verification code scams
Never share an Apple verification code with anyone, including callers claiming to be from Apple Support, your bank or a delivery company. Apple will not ask for it. If you receive a sign-in request with a map showing a location you do not recognise, tap Don’t Allow, and consider changing your password. Many scams also send fake “Apple ID locked” texts; go to Settings yourself instead of tapping links. See fake Apple texts.
Signing in on older devices
Older devices that do not support two-factor authentication prompts may ask you to append the six-digit code to your password when signing in. Apple’s support pages explain this for specific devices.
Frequently asked questions
Can I use Google Authenticator for my Apple Account?
No. Apple uses its own trusted-device system and security keys rather than third-party authenticator codes.
Why is the location on the sign-in map wrong?
It is approximate, based on IP address, and can show a nearby city. Only approve if you initiated the sign-in.
Can I turn off two-factor authentication?
Usually not after the first two weeks, for security reasons.
What if I don’t receive a code?
Use Get Verification Code on another trusted device, or choose to receive it on a trusted number.
Related: secure your Apple ID account, Apple ID locked for security reasons.



