Gmail Security: 2-Step Verification, Passkeys and Hacked Accounts
Secure your Gmail: turn on 2-Step Verification, pick the strongest second step, check for sign-ins you don’t recognise, spot the signs of a hacked account and lock it down — Google’s steps.
Short answer
Open your Google Account, select Security & sign-in, and under “How you sign in to Google” select Turn on next to 2-Step Verification, then follow the steps.
Jump to your problem 7
Your Gmail is protected by your Google Account, so securing one secures the other. Here’s what Google recommends — turning on a second sign-in step, choosing the strongest method, and checking regularly for signs someone else got in — with Google’s exact steps.
Turn on 2-Step Verification
Open your Google Account and select Security & sign-in.
Under “How you sign in to Google,” select Turn on next to 2-Step Verification.
Follow the on-screen steps.
Work, school or other group account? Setup may not work — ask your administrator.
Choose the strongest second step
| Method | How it works |
|---|---|
| Passkey | Sign in with your fingerprint, face or screen lock. Google says passkeys skip the second step and are more resistant to phishing. See signing in with a passkey. |
| Google prompts | A notification on a signed-in Android phone, or an iPhone with the Gmail, Google Photos, YouTube or Google app. Tap Yes or No. |
| Security key | A small physical key you connect to confirm it’s you. |
| Authenticator app | Google Authenticator or another code app — works without internet or mobile signal. |
| Text or voice code | A 6-digit code to your phone. Google warns these are more vulnerable to phone-number-based attacks. |
| Backup codes | 8-digit codes to print or download for when you lose your phone. Keep them private. |
“Don’t ask again” skips the second step on that device — only tick it on devices you use regularly and don’t share.
New phone number? Google says it can take up to 7 days to be trusted for 2-Step Verification; a trusted passkey or security key speeds this up.
On Android, iPhone and iPad: your phone is the second step
Most of this page is account-level: change it once in a browser and every device follows. One part of it lives on the phone itself, though, and it is the part that gets misread.
A Google prompt is a notification asking you to confirm a sign-in. Google uses it three ways — in place of a password, as the second step when 2-Step Verification is on, and during account recovery — and it may ask for one even if you have turned none of those on. The prompt shows the device, the location and the time, and that is what makes it worth more than a code: you are not copying six digits, you are reading a claim about who is signing in.
If a prompt appears and it was not you, tap No. That is Google’s own instruction and it is the most valuable line on this page — a sign-in you decline does not happen, even when the password has already been stolen. Where something looks unusual, a different location for instance, Google may also ask you to match a number shown on the computer screen, so read both before you tap.
Google recommends prompts over codes sent by text, because those codes go “more securely to only your signed in devices”, while text and call codes can be vulnerable to attacks on the phone number itself.
When no prompt arrives on Android, the causes are ordinary:
Tap Resend on the sign-in screen.
Check the phone has Wi-Fi or mobile data, and turn Do Not Disturb off — a silenced phone is the commonest reason of all.
Update Google Play services.
Open Settings, then Passwords & accounts, then Google, and check you are actually signed in there.
One thing worth arranging before you need it: Google notes that if you lose the phone, a backup code takes its place as the second step.
Check for activity you don’t recognise
In your Google Account, go to Security & sign-in.
Under “Recent security events,” select Review security events. For anything you didn’t do, choose No, it wasn’t me.
Under Your devices, select Manage devices and remove any device you don’t recognise.
Signs your Gmail was hacked
You stop receiving email, or emails vanish from your inbox without appearing in Trash.
Friends get spam from you, or your Sent folder has emails you didn’t write.
Your name, recovery phone, recovery email or 2-Step Verification changed without you.
Purchases or payment methods you don’t recognise on Google Pay, Google Play or Chrome.
If you think someone got in
Change your password now — and on any site that uses the same password or sends to this Gmail address. Locked out? Use Google’s account recovery: see reset your Gmail password.
Review security events and devices as above.
Check these Gmail settings for changes you didn’t make: mail delegation (who else has access), automatic forwarding, filters and labels, the automatic reply, blocked addresses, the address and name on outgoing mail, IMAP/POP access, and scheduled emails.
Turn on 2-Step Verification if it isn’t on.
Scan your computer with trusted anti-virus software and remove unfamiliar browser extensions.
Tell your bank or the authorities if someone may have given them instructions in your name.
Never share a code
Google says it will never call you to ask for a verification code. Anyone asking for one — by phone, text or email — is trying to get into your account. Got an alarming “security alert” email? Check it with our guide to Google security alerts, and learn to spot phishing emails.
How this guide was checked · October 2026
Verified against 3 official sources
Every step, setting and limit in this guide was checked against the provider’s own documentation on support.google.com. Anything we couldn’t confirm was left out.
Questions
Frequently asked questions
How do I turn on 2-Step Verification for Gmail?
Open your Google Account, select Security & sign-in, and under “How you sign in to Google” select Turn on next to 2-Step Verification, then follow the steps.
What is the safest second step for Gmail?
Google says passkeys are more resistant to phishing; Google prompts, security keys and authenticator apps are also options. Google warns text and voice codes are more vulnerable to phone-number-based attacks.
How do I know if my Gmail was hacked?
Google lists signs such as emails vanishing without going to Trash, friends getting spam from you, Sent emails you didn’t write, and changes to your recovery details you didn’t make.
How do I see which devices are signed in to my Gmail?
In your Google Account, go to Security & sign-in and, under Your devices, select Manage devices. Remove any you don’t recognise.
Related guides
More Gmail guides
Gmail
How to Unsubscribe from Emails in Gmail
Use Gmail’s Unsubscribe button or the Manage subscriptions page to stop newsletters and promotions — and know the difference between unsubscribing and blocking.
3 min read
Gmail
How to Archive Emails in Gmail (and Find Them Again)
Archiving clears your inbox without deleting anything. Here’s how to archive on every device, where archived emails go, and how to get them back.
3 min read
Gmail
How to Recover Deleted Emails in Gmail
Deleted Gmail messages wait in Trash for up to 30 days. Here’s how to move them back on any device, where else to look, and what can’t be recovered.
3 min read
Gmail
How to Forward Emails in Gmail (One, Many or Automatically)
Forward one email, a whole conversation or several messages at once — or set Gmail to forward new mail to another address automatically.
3 min read
Gmail
How to Block (and Unblock) Someone in Gmail
Block a sender in Gmail so their emails go to Spam, unblock them, manage your blocked list — and when unsubscribing or reporting spam or phishing works better.
3 min read
Gmail
How to Add an Email Signature in Gmail
Create, edit and remove a Gmail signature, use different signatures for new emails and replies, the 10,000-character limit and image sizes — and fixes for broken signatures.
4 min read