What is two-factor authentication?
DefinitionTwo-factor authentication (2FA) is a security method that requires two different kinds of proof, such as a password plus a code from a phone or a hardware security key, before granting access to an account.
Also known as 2FA
Authentication factors fall into three groups: something you know, like a password; something you have, like a phone or security key; and something you are, like a fingerprint. 2FA combines two of them, so a stolen password alone isn't enough to sign in. It's the most common form of multi-factor authentication.
Common second factors include codes sent by SMS, one-time passwords from an authenticator app, push approvals and hardware keys such as a YubiKey. SMS is the weakest option because of SIM swapping and phishing, while hardware keys and passkeys resist phishing best.
Websites that offer 2FA greatly reduce account takeovers, which is why many services now encourage or require it for admin, email and financial accounts.
two-factor authentication resources
Common questions about two-factor authentication
What happens if I lose my phone with two-factor authentication turned on?
Backup codes, a second registered device or security key, or the service's account recovery process can get you back in. Most services offer backup codes when you set up 2FA, and saving them somewhere safe is the easiest way to avoid being locked out.
Is a passkey the same as two-factor authentication?
Not exactly. A passkey replaces the password, but because using one requires both the device that holds it and the fingerprint, face or PIN that unlocks it, a single passkey sign-in can satisfy two factors at once.
How do authenticator apps create two-factor authentication codes?
Most use the time-based one-time password (TOTP) standard. A secret shared during setup, usually by scanning a QR code, is combined with the current time to produce a new code every 30 seconds, so the app works without a network connection.
Topic: Privacy and security
Cite this definition
- APA
What is two-factor authentication? (2026, November 22). Glossary. https://glossary.io/two-factor-authentication/
- MLA
“What Is Two-Factor Authentication?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/two-factor-authentication/.
- Chicago
“What Is Two-Factor Authentication?” Glossary. Coywolf. November 22, 2026. https://glossary.io/two-factor-authentication/.
- HTML link
<a href="https://glossary.io/two-factor-authentication/">What is two-factor authentication?</a>
Published · Updated