All articles

How the Gmail Spam Filter Works in 2026: Four Layers, One Blind Spot

Gmail turns away close to 15 billion unwanted emails a day using signals most users never see. Knowing what those signals are explains exactly which mail still gets through, and why.

Gmail runs every incoming message through one of the largest classification systems ever built, one that answers for roughly 2.5 billion accounts. Most people only ever meet the output: a Spam folder full of things they never saw, and an inbox that still, somehow, contains a “quick question” from a stranger.

This piece opens the machine up. The how-to lives in our guide to stopping spam emails in Gmail; this one explains why those fixes work, and why one category of mail defeats all of them.

The four layers, in the order a message meets them

Google doesn’t publish a flowchart of its filter: a public blueprint would just be a study guide for spammers. But its engineering blogs, sender guidelines, and security announcements describe the system in enough detail to map the layers and what each one is looking for.

What each layer of the Gmail spam filter checks
LayerWhat it examinesWhat gets past it
Sender reputationDomain and IP history, sending volume, complaint ratesNew senders with clean records and low volume
AuthenticationSPF, DKIM, and DMARC: is the sender who they claim?Anyone telling the truth about their identity
Content modelsText, images, links, and attachments, scored by ML modelsMail written like a normal personal message
User reportsReport-spam clicks feeding your model and the global oneMail too targeted for anyone else to have reported

The right-hand column, top to bottom, describes the same sender: truthful, low-volume, well-written, targeted. That sender passes everything.

Layer 1: Sender reputation

Before Gmail reads a word of your message, it knows who you are. Every sending domain and IP address carries a history: how much mail it sends, how much of that mail users report as spam, how long the domain has existed, whether its volume spikes in suspicious bursts. A domain registered on Tuesday that starts blasting on Wednesday gets treated very differently from one that has sent clean mail for a decade.

Since February 2024, Google has enforced this layer with explicit rules. Anyone sending more than 5,000 messages a day to Gmail accounts must authenticate their mail, support one-click unsubscribe on marketing and subscribed mail, and keep their user-reported spam rate below 0.3%, or watch their delivery get throttled and then refused. The results were large enough that Google published them: Gmail users received 265 billion fewer unauthenticated messages in 2024 than the year before, a 65% drop.

Reputation is also why blocking one address does so little against a determined sender, a limit we cover in our guide to blocking emails in Gmail: reputation attaches to domains and infrastructure, and a sender willing to burn a domain and register a new one arrives with a blank slate.

Layer 2: Authentication, or proving you are who you claim

Email’s original protocol lets anyone put anything in the From line, which is why three separate standards exist to patch the hole. Gmail checks all three on every message.

SPF (Sender Policy Framework, RFC 7208, standardized in 2014) is a public list a domain owner writes: these servers, and only these, may send mail for my domain. A message arriving from anywhere else fails the check.

DKIM(DomainKeys Identified Mail, RFC 6376, 2011) is a cryptographic signature attached to each message. If the signature verifies against the sender’s published key, the message really came from that domain and wasn’t altered in transit.

DMARC(RFC 7489, 2015) ties the two together and adds a policy: the domain owner declares what receivers should do with mail that fails SPF and DKIM alignment (deliver anyway, quarantine, or reject), and gets reports on who is sending in their name. Google’s bulk-sender rules made DMARC mandatory for large senders, which is what drove that 65% collapse in unauthenticated mail.

Notice what authentication does and doesn’t prove. A passing DMARC check means the sender is genuinely salesguy@realcompany.com. It says nothing about whether you want salesguy’s email. Authentication verifies identity, not intent, and every legitimate cold-outreach tool on the market configures SPF, DKIM, and DMARC correctly, because delivery depends on it.

Layer 3: Content models that read the message

The layer most people picture when they hear “spam filter” is the one that reads the mail, and it’s where Google’s machine-learning investment is heaviest.

In 2019, Google added TensorFlow-based models specifically to chase the fraction its rule-based systems missed: image-based spam, messages with hidden embedded content, and low-volume spam hiding inside legitimate traffic from new domains. Those models alone blocked around 100 million additional spam messages a day.

In late 2023 came RETVec, a new text vectorizer trained to see text the way a human does. Spammers evade word-matching with homoglyphs (a Cyrillic “а” standing in for a Latin “a”), invisible characters, and deliberate typos; RETVec maps visually similar characters together, so “fr𝗲𝗲 m𝗼ney” reads as exactly what it is. Swapping it into the spam classifier improved the detection rate by 38% and cut false positives by 19.4%, which Google called one of its largest defense upgrades in recent years.

Attachments get their own pipeline: deep-learning document scanners process more than 300 billion attachments a week, a volume that matters because malicious documents mutate constantly. By Google’s count, 63% of the malicious documents it blocks differ from one day to the next.

Layer 4: Your reports, everyone’s filter

The fourth layer runs on user reports. Every time someone clicks Report spam, two things happen: Gmail adjusts what it believes about that account’s preferences, and the report feeds the global models as a labeled training example. Google’s help pages are direct about the first part: the more spam you report, the better Gmail gets at catching similar mail for you. The second part scales globally: multiply one click by billions of accounts and you get a continuously refreshed map of what spam looks like this week, which is how the filter tracks adversaries that change tactics daily.

The same mechanism runs in reverse: dragging a message out of Spam, or clicking Report not spam, is a labeled example in the other direction. Everything left in the Spam folder is deleted automatically after 30 days.

What you can actually adjust

Almost nothing, directly. Personal Gmail exposes no strictness slider and no way to see a message’s spam score. What you control is the input: report what slips through instead of deleting it, block the persistent individuals, write filters for patterns you can describe, and unsubscribe from lists you recognize. One-click unsubscribe (RFC 8058, the standard behind the button next to a sender’s name) obliges compliant bulk senders to process the request within two days; our guide to unsubscribing safely covers when that button is your friend and when it’s a trap. Each of these nudges the filter’s model of your account. None of them changes what the filter is fundamentally looking for.

The mail the filter cannot see

Every layer of the Gmail spam filter is tuned to one underlying question: is this sender lying about who they are, or mailing at abusive scale? A sender who is neither passes untouched.

Cold outreach makes the clearest case. A sales development rep at a real company, sending 40 personalized emails a day from an authenticated domain with a groomed reputation, trips no layer. Reputation: clean. SPF, DKIM, DMARC: all passing, because the outreach platform set them up. Content: a short, personally addressed note that reads like mail from a colleague. User reports: too few recipients, and too few of them angry enough to click the button. To the filter, this message is indistinguishable from your dentist confirming an appointment, and treating it as spam would mean treating your dentist as spam too.

Phishing works by the same logic. Kits are tested against the very filters they need to beat, and the volume behind them is industrial: Kaspersky alone blocked over 554 million attempts to follow fraudulent email links in 2025. The FTC logged $12.5 billion in reported US fraud losses in 2024, a 25% jump over the prior year, with email the most common first contact. Gmail stops the overwhelming bulk of it; what’s left is mail built well enough to clear every layer above.

The economics forbid closing the gap, too. For a system serving billions of people, a false positive (your job offer in Spam) costs far more trust than a false negative (one more pitch in your inbox), so the dial has to sit conservative. You can read the priority in Google’s own announcements: when RETVec shipped, the 19.4% cut in false positives got equal billing with the detection gain. Kaspersky measured spam at 44.99% of all email traffic in 2025. A filter blocking 99.9% of that firehose still passes a steady trickle, and the trickle is disproportionately the hardest, most legitimate-looking mail.

A second filter, aimed at the gap

Sieve runs behind Gmail’s filter and judges only the mail Gmail admits, against the question Gmail’s filter can’t ask: not “is this sender abusive?” but “did you ask for this?” Cold outreach gets labeled Solicitor and archived out of your inbox; phishing gets labeled Malicious, with links screened through Google Web Risk. Archived, never deleted: everything stays under its label in Gmail, and dragging a message back to the inbox records a correction the classifier learns from. Reply to a sender and they’re permanently trusted. You can steer it in plain English, “never touch anything from my kid’s school” being a real instruction it accepts.

Because a tool in this position touches your mail, the data handling is strict: messages from people you know are never read by the AI at all, Sieve stores metadata only (plus the encrypted subject line of flagged mail, kept 30 days), and nothing is ever used to train models. The full accounting is in our Privacy Policy. It’s Gmail-only, from $10 a month (the $20 Pro plan adds a second inbox), 15% off yearly, with a 7-day free trial.

Where this leaves you

If your inbox is mostly clean, keep doing what’s already working: report instead of deleting, and the filter keeps getting better for you specifically.

If the leftover mail is subscriptions and list noise rather than strangers, the fix is unsubscribing and cleanup. The tools built for that job aren’t spam filters: we compared SaneBox, Clean Email, and Mailstrom head to head and wrote a standalone look at SaneBox, whose own positioning is triage of everything rather than filtering of junk.

If what’s left is the mail this article ended on, authenticated strangers and engineered phishing, that’s the gap Sieve and its neighbors compete over. Our spam filter roundup maps the field, and the rest of our guides take the free tactics one at a time.

Sources

  1. Google: New Gmail protections for a safer, less spammy inbox (99.9% blocked; ~15 billion unwanted emails/day; bulk-sender rules)
  2. Google: Email sender guidelines (5,000 messages/day threshold; 0.3% spam-rate limit; SPF/DKIM/DMARC requirements)
  3. Google Workspace blog: Ridding Gmail of 100 million more spam messages with TensorFlow (2019)
  4. Google Security Blog: Improving Text Classification Resilience and Efficiency with RETVec (38% detection improvement; 19.4% fewer false positives)
  5. Google Security Blog: Improving Malicious Document Detection in Gmail with Deep Learning (300B+ attachments/week; 63% day-to-day variation)
  6. Forbes: Google Confirms New Gmail Security Boost for 2.5 Billion Users (265 billion fewer unauthenticated messages; 65% reduction, per Google's Neil Kumaran)
  7. Gmail Help: Mark or unmark emails as spam (reporting trains the filter; Spam auto-deletes after 30 days)
  8. Kaspersky Securelist: Spam and phishing report for 2025 (spam = 44.99% of global email traffic; 554M fraudulent link attempts)
  9. FTC: New data show a big jump in reported fraud losses to $12.5 billion in 2024
  10. RFC 7208: Sender Policy Framework (SPF) (IETF, 2014)
  11. RFC 6376: DomainKeys Identified Mail (DKIM) Signatures (IETF, 2011)
  12. RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC) (IETF, 2015)
  13. RFC 8058: Signaling One-Click Functionality for List Email Headers (IETF, 2017)

FAQ

How does the Gmail spam filter work?
Gmail scores every incoming message across four kinds of signal: the sender's reputation (domain and IP history, complaint rates), authentication results (SPF, DKIM, and DMARC checks that verify the sender is who they claim), machine-learning models that analyze the content itself, and spam reports from Gmail's billions of users. Messages that fail go to the Spam folder, which auto-deletes after 30 days. Google says the system blocks more than 99.9% of spam, phishing, and malware.
Can I make Gmail's spam filter stricter?
Not directly: personal Gmail accounts have no sensitivity dial. Your levers are indirect. Report spam consistently (the filter learns from your reports), block repeat senders, and create filters that delete or archive patterns you keep seeing. Google Workspace administrators get real policy controls; a personal account does not.
Why do spam emails still get through the Gmail spam filter?
Because the mail that reaches your inbox passed the filter's checks. Cold outreach and well-built phishing come from authenticated domains with clean reputations, sent in low volume with personalized content. Every signal the filter scores reads as legitimate mail. The filter isn't broken; it's answering "is this sender abusive at scale?", which is a different question from "do you want this?"
Why does legitimate email go to spam in Gmail?
Usually authentication or reputation problems on the sender's side: their SPF, DKIM, or DMARC records are missing or misconfigured, their domain is new, they share infrastructure with a spammer, or enough recipients reported them. To rescue a sender, open the message in Spam and click Report not spam, or create a filter for their address with "Never send it to Spam" checked.
Does Gmail use AI to filter spam?
Yes, and it has for years. Google added TensorFlow models in 2019 (blocking around 100 million additional spam messages a day), replaced the filter's text vectorizer with RETVec in 2023 (a 38% improvement in spam detection with 19.4% fewer false positives), and runs deep-learning document scanners across more than 300 billion attachments a week.
Can you turn off the spam filter in Gmail?
There's no off switch on a personal account. The closest workaround is a filter matching broad criteria with "Never send it to Spam" as the action, which whitelists whatever the filter matches. Google Workspace admins can adjust spam policy for their organization; individual users cannot.

Gmail is a trademark of Google LLC; interface depictions are illustrative. Sieve, by Snowfish Technologies, is an independent product and is not affiliated with or endorsed by Google. Product names mentioned are trademarks of their respective owners.