![](https://help.apple.com/assets/65C13B8310C97C4CA5052A31/65C13B8510C97C4CA5052A49/en_GB/52d714626638d3391623c853be0c593b.png)
Use two-factor authentication
Two-factor authentication is an extra layer of security for your Apple ID designed to ensure that you’re the only person who can access your account, even if someone knows your password. You can set up two-factor authentication on your iPhone, iPad and Mac.
![A MacBook Air, iPad and iPhone.](https://help.apple.com/assets/65C13B8310C97C4CA5052A31/65C13B8510C97C4CA5052A49/en_GB/2e24622a96c20c60aa9399f5a1e99acf.png)
Find out how: To view a task below, select the plus button next to its title.
Set up two-factor authentication on your iPhone or iPad
Go to Settings
> [your name] > Password & Security.
Tap Turn on two-factor authentication, then tap Continue.
Enter a trusted phone number; a phone number where you want to receive verification codes for two-factor authentication (it can be the number for your iPhone).
You can choose to receive the codes by text message or automated phone call.
Tap Next.
Enter the verification code sent to your trusted phone number.
To send or resend a verification code, tap “Didn’t get a verification code?”
You won’t be asked for a verification code again on your iPhone unless you sign out completely, erase your iPhone, sign in to your Apple ID account page in a web browser, or need to change your Apple ID password for security reasons.
After you turn on two-factor authentication, you have a two-week period during which you can turn it off. After that period, you can’t turn off two-factor authentication. To turn it off, open your confirmation email and click the link to return to your previous security settings. Keep in mind that turning off two-factor authentication makes your account less secure and means you can’t use features that require a higher level of security.
Set up two-factor authentication on your Mac
Do one of the following:
On your Mac using macOS 13 or later: Choose Apple menu
> System Settings, click Apple ID
, then select Password & Security in the sidebar.
On your Mac using macOS 12 or earlier: Choose Apple menu
> System Preferences, click Apple ID
, then select Password & Security.
Click Set Up Two-Factor Authentication, then click Continue.
Answer the verification questions, then click Verify.
Enter your phone number for verification, select a verification method, then click Continue.
When asked, verify your identity with the six-digit verification code sent to your trusted phone. You won’t be asked for a verification code again on your Mac unless you sign out of your Apple ID completely, erase your Mac or need to change your password for security reasons.
Security keys for Apple ID
A security key is a small external device that looks like a thumb drive or tag, and that can be used for verification when signing in with your Apple ID using two-factor authentication. Security Keys for Apple ID is an optional advanced security feature designed for people who want extra protection from targeted attacks, such as phishing or social engineering scams. Because you use a physical key instead of the six-digit code, security keys strengthen the two-factor authentication process and help prevent your second authentication factor from being intercepted or requested by an attacker.
To learn more about security keys, see the Apple Support article About Security Keys for Apple ID.