How to set up two-factor authentication on your Microsoft account
Microsoft calls this "two-step verification". Once it's on, signing in from a device Microsoft doesn't recognise needs your password plus a code or a tap on your phone. One Microsoft account covers Outlook.com, OneDrive, Xbox, Microsoft 365 and the sign-in on a Windows PC, so this protects all of them at once. This guide is for a personal Microsoft account, set up in a desktop browser.
What you'll need: A personal Microsoft account (an address ending in outlook.com, hotmail.com or live.com, or any other address you registered with Microsoft). A phone that can receive a text message, or the Microsoft Authenticator app already installed. A desktop or laptop browser — Chrome, Firefox, Safari, or Edge.
Open your Microsoft account security page
Go to account.microsoft.com/security and sign in if you aren't already.
Open Manage how I sign in
Click Manage how I sign in. On older versions of the page the same link is called Advanced security options. Either one opens the page where all your sign-in and verification methods are listed.
Check you have a way to receive codes
Near the top of the page is a list of the phone numbers, email addresses and apps Microsoft can use to verify you. If the only entry is the email address you sign in with, click Add a new way to sign in or verify and add a phone number or the Microsoft Authenticator app before going further.
Turn on two-step verification
Scroll down to the Additional security section. Under Two-step verification, click Turn on.
Work through the setup wizard
A short wizard opens explaining what two-step verification does. Click Next. If the account has more than one verification method, it may ask which one to use by default — pick the one you'll have with you most often, then click Next again.
Save your recovery code
The wizard shows a recovery code: 25 characters in groups of five. Click Print code, or select the code and copy it into a password manager. Keep it somewhere you can reach without your phone.
Finish
Click Next through any remaining screens, then Finish. Back on the Manage how I sign in page, the link under Two-step verification now reads Turn off, which confirms it's on.
Variations
If you add the Microsoft Authenticator app as a verification method, Microsoft sends an approval request to your phone when you sign in. Tap Approve, or match the two-digit number shown on screen if the app asks for it. The app also generates a six-digit code that works without a phone signal, so it's worth adding even if you keep a phone number too.
On the Manage how I sign in page, under Additional security, Microsoft also offers a Passwordless account option. It removes the password entirely and relies on the Authenticator app, a passkey or a code sent to you. It's a separate setting from two-step verification, and you don't need it for this guide.
Some older email programs and devices can't ask for a second code — Outlook 2010 and the Xbox 360 are the usual examples. For those, go back to the Manage how I sign in page, scroll to App passwords, and click Create a new app password. Use the password it generates in that app instead of your normal one. The App passwords section only appears once two-step verification is on.
Troubleshooting
Check you're signed in to a personal Microsoft account, not a work or school one. Work and school accounts are managed by the organisation, and their two-step settings live at mysignins.microsoft.com or are set by the IT team. If the account is personal, go directly to account.live.com/proofs/manage/additional.
Check the phone has signal and that the number listed on the Manage how I sign in page is correct, including the country code. On the sign-in screen, choose I have a code or Use a different verification option to switch to email or the Authenticator app instead.
Sign in with your recovery code or any other method still on the account, then open Manage how I sign in and remove the old phone number before adding a new one. If you have no working method at all, you'll need Microsoft's account recovery form. With two-step verification on, Microsoft makes you wait 30 days before recovery changes take effect, which is why saving the recovery code in step 6 matters.
Need a calculator rather than a guide? Try Simplicalcs →