Skip to content
AITermsLab
–points–day streak

What is two-factor authentication (2FA)?

Two-factor authentication, or 2FA, means logging in with two things: your password plus a second proof, like a code from your phone, so a stolen password isn't enough.

Last updated

In real life

Like a door with two locks: a thief who copies one key still can't get in without the other.

Try it yourself

The demo has a made-up account whose password has leaked. With 2FA off, the thief logs straight in. With 2FA on, the site asks for a code from your phone, so the thief is stopped and you get in with the code.

Log in to a made-up account (its password has leaked)

Your phone

No codes: two-factor authentication is off.

The password has leaked, so anyone can use it. Try logging in as the thief, then switch on two-factor authentication and try again.

Two-factor authentication vs authentication

Authentication is any check of who you are, like a password. Two-factor authentication needs two different checks, so one stolen password isn't enough to get in.

What is authentication?

Common questions

Which kind of 2FA is best?

An authenticator app or a passkey is stronger than a text message, because texts can be intercepted. Any 2FA is far better than none.

What if I lose my phone?

Most sites give you backup codes when you turn on 2FA. Keep them somewhere safe, such as your password manager, so you can still get in.

Where you will use this

Quick check: Two-factor authentication

Question 1 of 3

What does 2FA add to logging in?

What does 2FA add to logging in?