How to set up two-factor authentication
Step-by-step instructions for enabling two-factor authentication on your most important accounts — email, your website, and more.
Setting up two-factor authentication (2FA) takes about five minutes per account. You only do it once — and it dramatically reduces the risk of someone breaking into your account even if they have your password.
Quick summary
Two-factor authentication adds a second login check: after your password, you enter a one-time code from your phone. Set it up on your email first — it is the most important account to protect. Then your website, hosting, domain registrar, and financial accounts. The process is similar for every service.
What you'll need
Beginner 5 minutes per account- Your phone (to receive or generate codes)
- An authenticator app (recommended) — see Using an authenticator app
- Access to the account you want to secure
The general process for any account
Most services follow the same steps:
Open your account settings. Look for "Security," "Privacy," or "Account." The exact label varies by service.
Find the two-factor or multi-factor authentication option. It may be called "2-Step Verification," "MFA," or "Two-Factor Authentication."
Choose your method. Select "Authenticator app" if available — it is more secure than SMS.
Scan the QR code. Open your authenticator app, tap the "+" or "Add account" button, and point your phone's camera at the QR code on screen.
Enter the first code. Your app will show a 6-digit code. Type it in to confirm the connection is working.
Save your backup codes. The service will give you a set of one-time recovery codes. Save these somewhere safe — in your password manager's secure notes, printed and in a locked drawer, or both.
You're done
2FA is now active. The next time you log in on a new device, you'll be asked for a code from your authenticator app.
Setting up 2FA on specific services
Google 2-Step Verification:
- Go to your Google Account at myaccount.google.com.
- Click Security in the left sidebar.
- Under 'How you sign in to Google," click 2-Step Verification.
- Click Get started and follow the prompts.
- Choose Authenticator app and scan the QR code with your app.
- Save the backup codes Google provides.
Google also offers security keys, Google prompts, and backup phone numbers. The authenticator app option is the strongest.
Microsoft multi-factor authentication:
- Go to mysignins.microsoft.com/security-info.
- Click Add sign-in method.
- Choose Authenticator app from the dropdown.
- Follow the prompts to scan the QR code with your authenticator app.
- Enter the test code to verify it is working.
Microsoft also supports hardware security keys and SMS. Your organization's admin may have already required MFA for your account.
WordPress does not include 2FA out of the box — you need a plugin.
We recommend one of these:
- WP 2FA — easy to set up, supports authenticator apps
- Wordfence — if you already use Wordfence for security, it includes 2FA
After installing the plugin:
- Open the plugin's settings.
- Enable two-factor authentication for your user role.
- Follow the setup wizard to connect your authenticator app.
- Save your backup codes.
See also: Securing your WordPress site.
Setting up 2FA on your domain registrar
Your domain registrar is critically important. If someone gains access to your domain registrar, they can redirect your website and email to a server they control. Protect it with 2FA.
Look for security settings in your registrar's account dashboard:
- GoDaddy: Account settings → Login & PIN → 2-step verification
- Namecheap: Profile → Security → Two-Factor Authentication
- Cloudflare: My Profile → Authentication → Two-factor authentication
The steps vary by registrar, but follow the general process above.
What to do if something goes wrong during setup
Don't lock yourself out
Before finishing 2FA setup, always save your backup codes. If your phone is lost, stolen, or replaced, backup codes are how you get back in.
If you get locked out of an account after enabling 2FA:
- Look for a "Use a backup code" link on the login page.
- Check your saved backup codes.
- Use the account's account recovery process (usually involves verifying your identity by email or phone).
Common questions
Related guides
- Two-factor authentication, explained
- Using an authenticator app
- Passkeys, explained
- Securing your WordPress site
- Securing your domain name
Need a hand?