If you are reading this because something is happening right now, do the first three steps and come back for the rest.
Before anything else: work from a device you trust. If your computer might be compromised, use your phone, or borrow a laptop. Changing a password on an infected machine just hands over the new one.
1. Change the password
From that trusted device. Make it long rather than clever — several unrelated words beats a short password full of symbols, and you'll actually remember it. Don't reuse anything.
2. Sign out all other sessions
This is the first step most people skip, and it matters enormously. Changing a password does not always eject someone who is already signed in. Every major email provider has a "sign out all devices" or "manage active sessions" option in security settings. Use it. Otherwise you have changed the lock while the person is still inside the house.
3. Turn on two-factor authentication
Use an authenticator app rather than text messages if you're offered the choice. Text codes can be defeated by SIM swapping, where someone persuades your mobile carrier to move your number to their SIM. An authenticator app on your phone has no such weakness.
Save the backup codes somewhere you can reach without that phone.
4. Check for mail forwarding rules and filters
This is the second step people skip, and it is the one that lets an attacker keep reading your mail for months after you've locked them out.
Someone who wants ongoing access will often add a forwarding rule sending copies of everything to an address you don't recognize. Or a filter that silently archives or deletes messages from your bank, so you never see the fraud alerts. Or a changed reply-to address, so replies to your emails reach them instead of you.
Go into your settings and look at forwarding, filters, and rules specifically. Delete anything you did not create.
5. Check your recovery email and phone number
If an attacker changed these, they can reset your password any time they like and you are back where you started. Make sure both are yours.
6. Review connected apps
An app you once authorized keeps its access through a password change. Revoke anything you don't recognize or no longer use.
7. Read your sent and deleted folders
Unpleasant, but necessary. It tells you what was sent in your name and who was contacted, which determines who you need to warn.
Then tell people — but not from that account
If messages went out from your address, your contacts are now receiving convincing scams that appear to come from you. Warn them through a different channel: a text, a phone call, a message on another platform.
Do not send that warning from the compromised account before you have finished locking it. The attacker can see it, and it only tells them to move quickly.
Why email first, always
If several accounts were compromised, start with email anyway. Your email address can reset the password on nearly everything else you own — your bank, your shopping accounts, your social media. It is the master key, which is exactly why it is the account attackers want most.
Secure it first. Everything else follows from it.
This is one chapter's worth of a longer guide. The Breach Kit covers card fraud, bank compromise, identity theft, ransomware, stolen phones and money already sent, with fill-in templates for keeping track of calls and disputes. If this page was all you needed, that's a good outcome too.