Accounts & Passwords
How to Set Up Two-Factor Authentication on Your Most Important Accounts
Written by Free Tech Support Editorial Team · Updated

If you want to set up two-factor authentication (2FA), this guide walks you through it on the accounts that matter most: Microsoft, Google, Apple and Facebook. 2FA adds a second check after your password, such as a code from an app or a tap on your phone. Even if a criminal steals or guesses your password, they still cannot get in without that second step. Each account takes about five minutes.
This is an independent guide. For account problems you cannot solve yourself, use each company’s own support site.
Before you start: three things to have ready
- Your phone, charged and unlocked. It will receive codes or prompts.
- A safe place for backup codes. A printed sheet kept at home, or a note in a password manager, works well. Do not keep them only on the phone you are protecting.
- Up-to-date recovery details. Check that your recovery email and phone number are current first; our guide on updating your recovery email and phone shows where.
Start with your main email account. Whoever controls your email can reset the password of almost every other account you own.
Microsoft account (Outlook.com, Hotmail, Windows, Xbox)
- Go to account.microsoft.com in a browser and sign in.
- Select Security.
- Choose Manage how I sign in (some layouts still call it Advanced security options).
- Find Two-step verification and select Turn on.
- Follow the wizard. The Microsoft Authenticator app is the smoothest option; an email address or text message also works.
- When Microsoft shows a recovery code, write it down or print it and store it safely.
You can also add a passkey or Windows Hello on the same page, which lets you sign in with your face, fingerprint or PIN instead of a password.
Google account (Gmail, YouTube, Android)
- Go to myaccount.google.com and sign in.
- Select Security in the menu (shown as Security & sign-in on some accounts).
- Under How you sign in to Google, select 2-Step Verification, then Turn on 2-Step Verification.
- Add a second step. On an Android phone or a phone with the Gmail or Google app, Google prompts are the easiest: you simply tap Yes, it’s me.
- Back on the 2-Step Verification page, open Backup codes, generate them and save them.
- Consider adding Authenticator or a passkey as an extra method.
Apple Account (iPhone, iPad, Mac, iCloud)
Most Apple Accounts created in recent years already have two-factor authentication turned on. To check:
- On iPhone or iPad, open Settings, tap your name, then Sign-In & Security.
- Look at Two-Factor Authentication. If it says On, you are protected. If not, tap it and follow the prompts.
- On a Mac, open Apple menu > System Settings, click your name, then Sign-In & Security.
On the same screen, check Trusted Phone Numbers and add a second number (a family member’s, for example) in case you lose your phone. Apple also lets you add a Recovery Contact or a Recovery Key; only create a recovery key if you are sure you can keep it safe, because losing it can lock you out permanently.
Facebook and Instagram
- Open Settings & privacy > Settings, then Accounts Center.
- Choose Password and security > Two-factor authentication.
- Select the account, then pick a method: an authentication app, a security key or text message.
- Save the recovery codes Meta offers at the end.
The same path in Accounts Center covers Instagram if the accounts are linked.
Which 2FA method should you choose?
| Method | Security | Ease of use | Good for |
|---|---|---|---|
| Passkey or security key | Highest; resists phishing | Easy once set up | Email, banking, Microsoft, Google |
| Authenticator app or app prompt | High | Easy | Most accounts |
| Text message (SMS) code | Medium; vulnerable to SIM swaps | Very easy | Accounts that offer nothing else |
| Email code | Depends on how well your email is protected | Easy | Secondary accounts |
Pick the strongest method you will actually keep using. Text-message codes are still far better than no 2FA at all.
Common problems and how to avoid them
- “I’m getting codes I didn’t ask for.” Someone likely has your password. Change it, then check the account’s recent activity. Our guide on what to do if an account is hacked covers the rest.
- Changing phones. Before you wipe or trade in an old phone, move your authenticator app to the new one (Microsoft Authenticator and Google Authenticator both offer a backup or transfer option) and confirm sign-ins work.
- Codes don’t work. Authenticator codes depend on the phone’s clock. Make sure the date and time are set automatically.
- Locked out. Use your backup codes or the account’s recovery page. Never pay a third party who promises to “unlock” an account.
Watch out for code scams
A sign-in code is like a key you only ever use yourself. Microsoft, Google, Apple, your bank and your phone company will never call, text or message you asking you to read out a code. If someone does, hang up or stop replying, and sign in to the account yourself by typing the address into your browser. If you think you may already have been tricked, see what to do after a tech-support scam.
Many sites now also offer passkeys, which replace the password and resist phishing; our guide on what a passkey is and how to use one explains how they fit alongside two-factor authentication.
Related guides
For a shorter overview, see Turn On Two-Factor Authentication (2FA), or protect your inbox specifically with two-step verification for email. You can also browse every guide in the accounts section.
Frequently asked questions
If I lose my phone, will I be locked out of my accounts?
Not if you prepare. Save the backup codes each service offers, add a recovery email and a second phone number or device, and keep the codes somewhere safe that does not depend on the phone.
I keep getting 2FA codes I did not request. What does that mean?
Usually someone has your password and is trying to sign in. Do not share the code, change that account's password right away, and review its recent sign-in activity.
Is text-message 2FA safe enough?
It is much better than nothing, but text codes can be stolen through SIM-swap fraud or phishing. Use an authenticator app, passkey or security key for your email and banking where you can.
Is two-step verification the same as two-factor authentication?
For everyday purposes, yes. Google and Microsoft say two-step verification, Apple says two-factor authentication; all of them add a second check after your password.
Do passkeys replace two-factor authentication?
A passkey combines something you have (your device) with your fingerprint, face or PIN, so it already gives strong protection on its own. Keeping 2FA turned on as well is still sensible for accounts that also accept a password.
Sources
Free Tech Support Editorial Team
Editorial team
The Free Tech Support editors write and update these guides from the official documentation of Microsoft, Apple, Google and device makers. We are an independent site with no phone line and no paid support service.