Your password is one lock on your account. Two-factor authentication, usually shortened to 2FA, adds a second lock. Even if someone steals your password, they still need a second piece of information — usually something only you have, like your phone. You may already use 2FA without realising it. If a site has sent you a code after your password, or asked you to confirm a login on your phone, you have used it. This guide explains how it works and how to set it up.

What Does 2FA Mean?
Authentication means proving you are who you claim to be. Most logins use one factor: something you know, your password. Two-factor authentication adds a second, different factor. 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. With 2FA, you need two together — for example, a password plus a code from an app. An attacker with only your password still cannot get in. You may also see “multi-factor authentication” (MFA), a broader term for two or more factors.
Why Is a Password Alone Not Enough?
Passwords leak more often than people realise, through breaches, phishing, and reuse. If you use the same password on several sites, a breach on one can expose the others. Even a strong, unique password can be stolen if you are tricked into entering it on a fake site. Two-factor authentication does not fix a weak password, and it does not make an account impossible to break into. It raises the bar considerably, because an attacker now needs both your password and your second factor. That is why experts recommend it first for email, banking, cloud storage, and social media, which often hold the keys to other accounts.
The Main Types of 2FA
SMS codes. The service texts a one-time code to your phone after your password. This is easy to set up and widely available, making it a good start if nothing else is offered. Texts can be intercepted in some attacks and need mobile signal, but SMS 2FA is usually much better than none at all.
Authenticator apps. An app generates a new six-digit code every 30 seconds. You read the current code and enter it after your password. Examples include Google Authenticator and Microsoft Authenticator. These apps do not need signal to generate codes, and are generally stronger than SMS. For most people, they offer the best balance of security and convenience.
Push notifications and security keys. Some services send a prompt asking, “Are you trying to log in?” You tap Approve or Deny. If you get a prompt you did not request, tap Deny and check your account. A security key is a small physical device you plug in or tap. It is very hard for a remote attacker to fake, and is often recommended for high-risk accounts, though it costs money and must be kept safe. Fingerprint or face recognition can also act as a second factor on phones and laptops.
How to Set Up 2FA
Steps vary by service, but the pattern is the same. Sign in, go to Settings, then Security, and look for “Two-factor authentication” or “Two-step verification.” Choose your method and follow the instructions. For an authenticator app, you will usually scan a QR code or enter a setup key. Finally, save your backup codes. These are one-time codes for use if you lose your phone. Store them safely — printed and kept at home, or in a secure note in your password manager — not in an easy-to-find phone note. After setup, test it by logging out and back in, so you find any problem at home rather than when you urgently need access.
Which Accounts First?
Do not enable 2FA everywhere on day one. Start with accounts that would cause the most damage if compromised: your main email, because resets for other services go there; banking and payment accounts; cloud storage holding personal files; social media that could be used to impersonate you; and work accounts, if offered. Once those are done, work through others gradually. Protecting even a handful of important accounts is a meaningful improvement.
If You Lose Your Phone
Save backup codes when you set up 2FA, and keep them separate from your phone. If your authenticator app offers encrypted cloud backup, consider turning it on and protecting it with a strong password. Keep your recovery email and phone number up to date. If you lose your phone, contact your mobile provider and bank promptly, use backup codes or recovery to regain access, then set up 2FA again on a new device. Never share codes with anyone, even someone claiming to be support. Genuine support will never ask for a current code.
Common Questions
Is 2FA annoying? It adds a few seconds, but most services remember trusted devices, so you may only be asked on a new device or after a long time. Can it be bypassed? No measure is perfect. Attackers can try phishing, tricking you into entering password and code on a fake site. That is why you should check website addresses and never share codes. Even so, 2FA blocks many common attacks based on stolen passwords alone. SMS or app? If an app is available, it is generally better. If only SMS is offered, use SMS rather than skipping 2FA.
Conclusion
Two-factor authentication is simple: your password plus a second check only you can provide — a code, a tap, or a physical key. It will not make accounts invulnerable, but it makes them far harder to break into with a stolen password alone. Start with email and banking, save backup codes safely, and add 2FA elsewhere over time. A few extra seconds at login can save a great deal of trouble later.