Two-factor authentication protects an Apple Account by requiring a six-digit verification code along with your password when you sign in on a new device or on the web. The code appears automatically on trusted devices or is sent to a trusted phone number. Most Apple Accounts already use it, and Apple Pay and Sign in with Apple require it. On a Mac, go to System Settings > your name > Sign-In & Security > Two-Factor Authentication and follow the prompts; on the web, sign in at account.apple.com and tap Upgrade Account Security. After that first sign-in on a device, you usually will not be asked for a code again unless you sign out, erase it, or change your password for security reasons.

Before you begin

Check the account first, because most Apple Accounts already use two-factor authentication; it is the default security method for most accounts, so the setting may already be on. If the account was created with two-factor authentication, that protection cannot be removed later. Apple recommends protecting your devices with a passcode or Mac login password and enabling Face ID, Touch ID, or Optic ID where supported. If you use end-to-end encrypted iCloud content on an Apple device, you may also be asked to enter that device’s passcode. Have access to a trusted device or trusted phone number, since that is where the six-digit code arrives.

Steps

  1. On a Mac, open System Settings > your name > Sign-In & Security > Two-Factor Authentication.
  2. Follow the onscreen instructions to enable it.
  3. On the web, sign in at account.apple.com, tap Upgrade Account Security, and follow the onscreen instructions.

What to check afterward

Once enabled, signing in on a new device or on the web requires both your password and the six-digit code. After that first sign-in, the device is trusted and a code is not requested again unless you sign out completely, erase it, or need to change your password for security reasons. Be aware of the reversibility: accounts created with two-factor authentication cannot have the protection removed. For accounts where it was enabled recently, security can be lowered only within two weeks of enrollment, after which the option is gone. Lowering it removes the extra layer of protection, so think carefully before doing so. Signing out completely or erasing a device ends its trusted status, so the next sign-in requires the code again.

Where people go wrong

People sometimes try to enable something that is already active, which is why checking first matters. Others rely on a code arriving on a device they no longer have access to, or they forget that encrypted iCloud content can also require the device passcode. A common surprise is discovering that the two-week window to lower security does not apply to accounts created with two-factor authentication. Another mistake is expecting a password alone to work on a new device; the six-digit code is required as well. Codes also matter when you change your password for security reasons, not only when signing in somewhere new.

If you want a utility alongside the built-in steps, 1Password — encrypted password and passkey vault with autofill and breach monitoring. The macOS workflow above remains the primary path.

Sources

Frequently Asked Questions

Do I need to enable two-factor authentication?

Most Apple Accounts already use it, so check the account before assuming it must be turned on. Apple Pay and Sign in with Apple require it.

Will I be asked for a code every time I sign in?

No. After the first sign-in on a device, a code is not requested again there unless you sign out completely, erase the device, or change your password for security reasons.

Can I turn two-factor authentication off later?

If the account was created with it, the protection cannot be removed. If you enabled it recently, you can lower account security within two weeks of enrollment.