How to Set Up 2FA — Step-by-Step Guide

Two-factor authentication takes about 5 minutes to set up and dramatically reduces your risk of account takeover. Here's how to enable it on the accounts that matter most.

Step 1 — Install an authenticator app

Before enabling 2FA anywhere, install an authenticator app on your phone. It will generate the 6-digit codes used as your second factor.

See our full authenticator app comparison for details.

Step 2 — Enable on your most important accounts first

Prioritize in this order:

📧
Email
Controls password resets for everything else
🔐
Password Manager
Protects all your other passwords
🏦
Banking
Direct financial exposure
💼
Work accounts
Email, GitHub, cloud services
📱
Social media
Account hijacking and identity fraud
⚠ Save your recovery codes. Every platform gives you backup recovery codes when you enable 2FA. Save them somewhere safe — printed on paper or in an encrypted notes app. If you lose your phone without recovery codes, you may be permanently locked out of your account.

Step-by-step: how to enable 2FA by platform

📧
Google / Gmail
Email · Highest priority
  1. Go to myaccount.google.com/security
  2. Click 2-Step VerificationGet Started
  3. Choose Authenticator app as your method
  4. Open your authenticator app, tap +, and scan the QR code
  5. Enter the 6-digit code from your app to verify
  6. Download your backup codes and store them offline
🍎
Apple ID
Apple ecosystem · High priority
  1. On iPhone: Settings → [Your Name] → Password & Security
  2. Tap Two-Factor AuthenticationTurn On
  3. Apple uses a built-in system (sends codes to trusted Apple devices) — no external app needed
  4. Add a trusted phone number as backup
  5. Note: Apple ID 2FA cannot be turned off once enabled on newer accounts
🐙
GitHub
Developer accounts · Required since 2023
  1. Go to Settings → Password and authentication → Two-factor authentication
  2. Click Enable two-factor authentication
  3. Choose Authenticator app (TOTP) — avoid SMS if possible
  4. Scan the QR code with your authenticator app
  5. Enter the 6-digit code to confirm
  6. Download your recovery codes — GitHub requires these if you lose access
📘
Facebook / Meta
Social media
  1. Go to Settings & Privacy → Settings → Accounts Center → Password and security
  2. Click Two-factor authentication → select your account
  3. Choose Authentication app
  4. Scan the QR code or enter the setup key manually
  5. Enter the 6-digit code to complete setup
📸
Instagram
Social media
  1. Go to Profile → Menu (☰) → Settings → Accounts Center → Password and security
  2. Tap Two-factor authentication
  3. Choose Authentication app
  4. Scan the QR code with your authenticator app
  5. Enter the 6-digit code to verify and complete setup
🐦
X (Twitter)
Social media · TOTP requires paid plan
  1. Go to Settings → Security and account access → Security → Two-factor authentication
  2. Select Authentication app (requires X Premium for TOTP since March 2023)
  3. Scan the QR code with your authenticator app
  4. Enter the confirmation code
  5. Free accounts can use SMS-based 2FA or a security key instead

Verify your TOTP setup in your browser

Use our free TOTP generator to test that your authenticator secret is working correctly before finishing setup.

Open TOTP Generator →

More 2FA guides

Frequently Asked Questions

About 2–5 minutes per account. Installing the authenticator app takes an extra 2 minutes the first time. Once installed, each additional account takes about 1–2 minutes.

Use your recovery codes — you should have saved these during setup. If not, most platforms offer account recovery via trusted phone number or email. This is why saving recovery codes when you set up 2FA is critical.

An authenticator app is significantly more secure. SMS codes can be intercepted via SIM-swapping. Authenticator codes are generated offline and never transmitted over the phone network.

One-time backup codes generated when you enable 2FA. Each can be used once to log in if you lose your authenticator device. Store them securely offline — printed on paper or in an encrypted notes app. Never store them with your passwords.

Recommended

Looking for a full password manager?

2FA protects your login — but your passwords also need to be strong and unique. A password manager generates and stores them automatically.

Top Pick
1Password
Secret Key + zero breach history. $2.99/mo.
Try 1Password Free →
Best Free
Bitwarden
Unlimited free tier, open source, audited.
Get Bitwarden Free →

Affiliate disclosure: links above may earn a commission at no cost to you.