# Multi-Factor Authentication (MFA)

> Logging in with two or more kinds of proof, like a password and a phone code.

**Field:** Software Development  
**Category:** Auth  
**Also known as:** MFA, Two-Factor Authentication, 2FA, Two-Step Verification

## Think of it like

Think of it like a door with two locks. One key is not enough to get in.

## Definition

Multi-factor authentication asks for two kinds of proof or more. The kinds are something you know, something you have and something you are. A password plus a six-digit code from your phone is the most common pair. A thief who steals your password still cannot log in without your phone. Two factors is often called 2FA.

## Example

Jack types his password, then his phone shows a six-digit code that changes every 30 seconds. Only with both can he log in.

## Why it matters

Stolen passwords are the most common way into an account. A second factor stops most of those break-ins.

## Common mistake

Counting two passwords as two factors. Both are something you know; the second factor must be a different kind.

## Three principles

- **Know, have, are.** The three kinds of proof.
- **Two kinds at least.** Not two of one kind.
- **A password is not enough.** A thief needs more.

## Related terms

- [Authentication](https://learn.benibix.com/term/development/authentication)
- [Passkey](https://learn.benibix.com/term/development/passkey)
- [Password Hashing](https://learn.benibix.com/term/development/password-hashing)
- [Single Sign-On (SSO)](https://learn.benibix.com/term/development/single-sign-on)
- [Phishing](https://learn.benibix.com/term/infrastructure/phishing)
- [Time-Based One-Time Password (TOTP)](https://learn.benibix.com/term/development/totp)

## Taught in

- [Password Managers and MFA](https://learn.benibix.com/learn/general-internet/password-managers-and-mfa): Online Safety, 7/8

---

Source: https://learn.benibix.com/term/development/multi-factor-authentication
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
