How to enable 2FA for your Microsoft account
Updated August 4, 2026
Two-factor authentication (2FA) protects your Microsoft account even if your password leaks. Follow the steps below to generate Microsoft verification codes with the Authenticator App on your iPhone, iPad or Mac.
Open your Microsoft account menu
Sign in to your Microsoft account, click your account icon in the top-right corner, and choose My Microsoft account from the drop-down.

Go to the Security dashboard
Find the Security section of your account page and click the Security dashboard button to open your security settings.

Open "Manage how I sign in"
Under Account security, click Manage how I sign in to see all the ways you can verify your identity.

Turn on Two-step verification
In the Additional security section, find Two-step verification and click the Turn on link to start setup.

Begin Two-step verification setup
Read the intro screen and click Next to continue through the setup wizard.

Choose to set up a different Authenticator app
Select "Set up a different Authenticator app" so you can use your own Authenticator App rather than the Microsoft one.

Reveal the QR code
Microsoft displays a QR code that holds your secret key. Leave this page open on your computer while you pick up your phone.

Scan the QR code with your Authenticator App
Open the Authenticator App on your iPhone, tap the + button, and point your phone at the screen to scan the QR code Microsoft shows. If you can't scan it, choose "I can't scan the bar code" and enter the secret key manually instead.

Save the account in your Authenticator App
After scanning, the Authenticator App fills in the Microsoft account name and secret key automatically. Tap Save to store the new entry, which then begins generating codes.

Enter the 6-digit verification code
Back on the Microsoft page, type the current 6-digit code from your Authenticator App into the field, then click Next.

Continue to the final step
Once the code is accepted, click Next to move on to the last screen.

Finish setup
Click Finish to complete setup. Your Authenticator App is now a sign-in and verification method, and you'll use it whenever you log in. Microsoft doesn't show backup codes here, so afterward consider going back to Manage how I sign in to generate a single 25-digit recovery code and store it somewhere safe.

Backup & recovery
Click Finish to complete setup. Your Authenticator App is now a sign-in and verification method, and you'll use it whenever you log in. Microsoft doesn't show backup codes here, so afterward consider going back to Manage how I sign in to generate a single 25-digit recovery code and store it somewhere safe.
That's it — your Microsoft account is now protected with two-factor authentication. Keep your recovery information safe and follow the service's official documentation if its interface changes.

