Gmail spam filter: how it works, why it fails, and how to fix it

Gmail’s spam filter is genuinely good.

Google claims it blocks over 99.9% of spam, phishing attempts, and malware before they reach your inbox. Most of the time, that holds up.

So when junk gets through—or when important emails keep disappearing into Spam—it’s usually not a bug. It’s something you can fix. 

This guide covers both scenarios: spam that shouldn’t be arriving, and legitimate mail that shouldn’t be getting caught. (If you’re also dealing with spam on other platforms, this broader guide to stopping spam emails covers the full picture.)

In short
Gmail’s spam filter runs automatically and can’t be turned off—but it can be trained and adjusted to better fit your needs. There’s no sensitivity slider for personal accounts, but custom filters let you fine-tune what gets through.And for most people, third-party software isn’t necessary.The most common reasons spam slips through are an overly broad whitelist rule, spoofed senders, or a temporary issue on Google’s end. If legitimate mail keeps landing in Spam, it’s usually because the sender’s email authentication isn’t set up correctly—that’s on their end, not yours, but you can whitelist them as a workaround.

How Gmail’s spam filter actually works

Gmail doesn’t rely on a single rule or blocklist. It runs incoming mail through several layers simultaneously.

1) Authentication checks 

Every email is checked against SPF, DKIM, and DMARC records—protocols that verify the sender is who they claim to be. If a message fails these checks, it gets flagged straight away.

2) Sender reputation

Gmail keeps track of sending domains and IP addresses over time. If a domain has a history of sending flagged mail, its messages get treated with more suspicion—regardless of what’s actually in them.

3) Content analysis

The filter scans subject lines, body text, links, and phrasing patterns for signals associated with spam. This includes obvious triggers (“You’ve won!”) and subtler structural patterns.

4) RETVec—the AI layer 

In recent years, Google rolled out RETVec (Resilient Email Text Vectorizer), which is built to catch a specific trick spammers use: swapping letters for numbers or symbols (“v1agra,” “fr€€ prize”) to sneak past keyword filters. It also spots invisible characters hidden inside words for the same reason.

5) User feedback

Every time you mark something as spam—or move it back to your inbox with “not spam”—you’re teaching Gmail’s filter. It learns from your signals and from everyone else’s. If enough users report the same sender, it gets flagged for the whole user base.

Why spam is still getting through

Gmail is good, but it’s not perfect. Here’s what actually causes spam to land in your inbox.

You have an accidental whitelist rule 

The most common culprit. At some point, you (or an app connected to your account) created a filter that says “never send it to spam”—and it’s now too broad. 

Check:

“settings” → “see all settings” → “filters and blocked addresses” 

…and look for any filter with “never send it to spam” checked. 

If it covers a whole domain, a broad keyword, or a catch-all, it could be quietly letting spam through that you never meant to allow.


The sender is spoofing a high-reputation domain 

Some spam gets through because it looks like it’s coming from a trustworthy source. 

Spammers often exploit legitimate infrastructure like compromised accounts or trusted email platforms specifically because filters are less likely to flag them.


A third-party app connected to your Gmail is interfering

If you’ve granted a third-party app access to your Gmail account, it may be pulling messages out of Spam and back into your inbox. 

Check:

“settings” → “see all settings” → “add-ons”

…and revoke anything you don’t actively use. 


Google had a temporary glitch

It happens. There have been documented cases where Gmail’s spam filter failed broadly—suddenly letting through large volumes of mail it would normally catch. 

If your inbox floods overnight and your settings look fine, it may be on Google’s end. Check your filters, wait it out, and keep reporting.


Email bombing 

If you suddenly receive hundreds of emails at once, it may not be random spam. 

Email bombing is sometimes used to flood your inbox and bury a real security alert—like a password reset or a purchase you didn’t make. 

If it happens, look for legitimate alerts buried in the flood before doing anything else.

Why legitimate emails are going to spam

The other side of the problem. Something you want to receive keeps ending up in your Spam folder.

The sender’s authentication isn’t set up properly 

If the sending domain doesn’t have valid SPF, DKIM, or DMARC records, Gmail treats the message as suspicious—even if it’s completely legitimate. 

Small businesses, personal websites, and older mailing lists are common offenders. You can’t fix this on your end, but you can whitelist the sender as a workaround.

There’s no sensitivity slider

Personal Gmail accounts have no way to adjust how aggressive the spam filter is. You can’t dial it down. What you can do is train it manually and set up whitelist rules for senders you trust.


How to fix it—three steps:

  1. Open the email in your Spam folder → click “report not spam.” This is the fastest way to signal to Gmail that this sender is legitimate.
  2. Add the sender to your Google Contacts. Gmail is less likely to filter mail from people already in your contacts.
  3. Create a “never send it to spam” filter for that sender or their domain: 

“settings” → “see all settings” → “filters and blocked addresses” → “create a new filter” → enter the address or domain → “create filter” → check “never send it to spam” → “create filter”

How to create custom filters

Gmail’s custom filter system is where the real fine-tuning happens. Custom filters let you define exactly what happens to specific types of email—automatically, every time.

1) To create a filter from scratch: 

“settings” → “see all settings” → “filters and blocked addresses” → “create a new filter”

You can filter by sender, recipient, subject line, keywords, or whether the email has an attachment. 

Then choose what happens: skip the inbox, mark as read, apply a label, delete it, or never send it to Spam.

2) To create a filter from an existing email: 

Open the email, then: 

click the three-dot menu → “filter messages like these”

Gmail pre-fills the sender details. Useful when you’re dealing with a recurring offender.

3) A useful trick for marketing email: 

Creating a filter that matches emails containing the word “unsubscribe” in the body, then auto-deleting or archiving them, catches the vast majority of marketing and newsletter mail in one rule. 

It won’t affect transactional emails (receipts, confirmations) which typically don’t carry unsubscribe links. If Gmail’s Promotions tab is already overflowing, deleting all promotional emails in one go is faster than filtering them individually.


One limitation: Custom filters can only be created on desktop. You can report spam from mobile, but building rules requires the full Gmail web interface. 

If you’re on Android and need to clear out a backlog of spam quickly, here’s how to delete multiple emails at once.

Note on “delete” filters: Emails matched by a “delete it” filter go to Trash, where they’re permanently deleted after 30 days. They don’t go to Spam—so they won’t train the filter, and they won’t be recoverable after 30 days.

The unsubscribe trap

A quick warning that most guides skip over.

If a spam email includes an “unsubscribe” link in the body—and you click it—you may be telling the spammer that your address is active. That can result in more spam, not less.

But Gmail has its own “unsubscribe” button.

It appears at the top of the email, next to the sender name and it’s much safer. 

It goes through Gmail’s infrastructure, not the sender’s, so it’s the right tool for newsletters and marketing email from legitimate senders. If you’ve built up years of unwanted newsletters, unsubscribing in bulk on Gmail is worth doing before setting up any filters.

The rule is simple: 

  • Use Gmail’s unsubscribe button for brands and senders you actually recognize. 
  • For anything that looks like spam, mark it as spam and don’t click anything inside it. 
  • And if your inbox has gotten out of hand more broadly, here’s how to clear it properly.

Can you turn off Gmail’s spam filter?

No, you can’t.

Gmail’s spam filter runs on Google’s servers, not your device, so there’s no toggle to switch it off for personal accounts.

If it’s catching things it shouldn’t, the right fix is whitelisting specific senders—not trying to disable the filter entirely.

Google Workspace admins have more control. 

The Workspace admin console lets you adjust spam filtering sensitivity and toggle more aggressive settings across the whole organization. Personal account users don’t have access to any of this.

Third-party tools worth knowing

Gmail’s built-in filter handles most spam on its own.

But if you’re still struggling—especially with newsletters, marketing mail, or that gray area of email you technically signed up for but never read—a few third-party tools are worth knowing about.

MailWasher

Previews your email on the server before it downloads, so you can delete or bounce messages before they ever reach Gmail. Good for anyone who likes to screen mail manually.

Cleanfox

Built for bulk newsletter cleanup. It shows you all your subscriptions and lets you unsubscribe and wipe your history in one go. Better suited for a one-time inbox purge than day-to-day spam filtering.

Edison Mail

A mobile-first email client that replaces Gmail’s interface entirely. 

Its one-tap permanent block is more aggressive than Gmail’s native option—worth considering if you do most of your email management on your phone. 

One caveat: check Edison’s privacy policy before signing up, as its data practices have raised questions. If spam is a persistent problem specifically on iPhone, this guide goes into more detail.


For most people, these tools are more useful for newsletters and graymail than for spam itself. Gmail already handles actual spam well. 

Where these tools help is the gray area—email you technically signed up for but never want to see again.



FAQ

How do I change my spam filter settings in Gmail? 

There’s no sensitivity dial. The closest equivalent is: “settingssee all settingsfilters and blocked addresses”, where you create rules for what happens to specific types of email. 

For blocking specific senders, open the email, then: click the three-dot menu → “block.” 

For whitelisting, open the email, then: click the three-dot menu → “filter messages like these” → “create filter” → “never send it to spam.”

Can I disable Gmail’s spam filter? 

No. The filter runs on Google’s servers and can’t be switched off for personal accounts. If it’s too aggressive, create “never send it to spam” rules for the senders it keeps catching incorrectly.

To do so, open the email you want to whitelist, then: click the three-dot menu → “filter messages like these” → “create filter” → “never send it to spam.”

How long does email stay in the Spam folder? 

30 days, then it’s automatically and permanently deleted. Check your Spam folder periodically if you’re expecting something that might have been caught.

Does blocking a sender report them as spam? 

No. Blocking moves their future emails to Spam but doesn’t send a report to Google. “Report spam” is the action that sends a signal to Google’s systems—use that if you want the feedback to actually train the filter.

To flag emails as spam: open the spam email → click the three-dot menu → “report spam” or “report phishing.”

Why am I suddenly getting flooded with spam? 

Either a temporary issue on Google’s end, a third-party app interfering with your settings, or—most likely—your email address was exposed in a data breach or sold by a data broker.

If the flood keeps coming and your filter settings look fine, your address is probably circulating somewhere it shouldn’t be. Getting it removed from data broker databases is the fix that tackles the root cause. The most effective approach is to subscribe to a professional data removal service that does it for you automatically and periodically.

If things are bad enough, creating a new Gmail address and migrating is also worth considering.

Spam rarely stays in one place—if your email address is being targeted, spam texts and spam calls often follow.

Related articles

Is this article helpful?
YesNo
Scroll to Top