How to Create a Filter in Gmail: A Complete Guide

Gmail filters are one of the most underused tools in email management. Once set up, they automatically sort, label, archive, delete, or forward incoming messages — no manual effort required. Whether you're drowning in newsletters, managing a busy work inbox, or separating personal and professional emails, filters can do the heavy lifting.

Here's exactly how they work, how to set them up, and what determines whether they'll suit your situation.

What Is a Gmail Filter?

A Gmail filter is an automated rule that tells Gmail what to do with incoming messages that match specific criteria. Every time a new email arrives, Gmail checks it against your filters. If it matches, the action you defined fires automatically.

Think of it as a set of if-then instructions:

  • If an email is from this sender → then apply this label
  • If the subject contains this word → then skip the inbox and archive it
  • If the email has an attachment → then star it

Filters run in the background, silently, every time mail arrives.

How to Create a Filter in Gmail (Step-by-Step)

Method 1: From Gmail Settings

  1. Open Gmail in your browser
  2. Click the gear icon (top right) and select See all settings
  3. Go to the Filters and Blocked Addresses tab
  4. Click Create a new filter
  5. Fill in your filter criteria (see below)
  6. Click Create filter
  7. Choose your action(s)
  8. Click Create filter again to save

Method 2: Directly From a Search

  1. In the Gmail search bar, click the Show search options icon (the small slider icon on the right of the search bar)
  2. Enter your filter criteria in the search fields
  3. Click Create filter (bottom of the search panel)
  4. Choose your action(s) and save

This second method is often faster when you already have an email you want to filter.

Filter Criteria: What You Can Match On

When creating a filter, Gmail lets you match incoming emails based on:

Criteria FieldWhat It Matches
FromSender's email address or domain
ToRecipient address (useful for alias filtering)
SubjectWords in the subject line
Has the wordsAny word or phrase anywhere in the email
Doesn't haveExcludes emails containing specific words
Has attachmentEmails with files attached
SizeEmails larger or smaller than a specified size
Date withinEmails received within a specific time window

You can combine multiple criteria in a single filter. For example: emails from a specific domain with an attachment, but not containing the word "unsubscribe."

Filter Actions: What Gmail Can Do Automatically

Once a match is found, Gmail can perform one or more of these actions:

  • Skip the Inbox — send it straight to All Mail (effectively archiving it)
  • Mark as read — removes the unread indicator automatically
  • Star it — flags it for easy retrieval
  • Apply a label — sorts it into a custom folder
  • Forward it — sends a copy to another email address
  • Delete it — sends it directly to Trash
  • Never send it to Spam — whitelists the sender
  • Always mark as important or Never mark as important
  • Categorize as — assigns it to a Gmail category tab (Primary, Social, Promotions, etc.)

Multiple actions can be stacked on a single filter. A common setup: skip the inbox + apply a label + mark as read for newsletters you want to save but don't need to act on immediately.

Applying a Filter to Existing Emails

When you create a filter, Gmail gives you the option to "Also apply filter to matching conversations." Checking this box applies the new rule retroactively to emails already in your inbox — not just future ones.

This is useful when you're cleaning up an already-cluttered inbox as part of setting up your filters.

Editing and Deleting Filters 🔧

To manage existing filters:

  1. Go to Settings → Filters and Blocked Addresses
  2. Each existing filter is listed with options to edit or delete it
  3. You can also export and import filters as an XML file — helpful if you want to back them up or apply the same setup to another Gmail account

Variables That Affect How Well Filters Work for You

Filters are technically simple, but how useful they are in practice depends on your specific situation.

Email volume and variety matters significantly. If you receive hundreds of emails per day from many different senders, a handful of filters won't keep pace without thoughtful organization. Heavy-volume inboxes often require layered filtering strategies — multiple filters working together, combined with Gmail's label system.

Sender consistency affects reliability. Filters based on sender address work cleanly when senders use consistent addresses. Marketing emails from large platforms often rotate sending domains, which can cause sender-based filters to miss messages.

Label architecture determines long-term usability. Filters that apply labels only work as well as the label system behind them. Users with a flat, simple label structure get different results than those with nested, hierarchical labels.

Mobile vs. desktop use changes visibility. Filters set up on desktop apply universally across all Gmail access points, but how labels and archived emails appear varies between the Gmail mobile app and browser. Some users find filtered mail harder to surface on mobile.

Gmail plan and account type can introduce differences. Google Workspace (business) accounts have additional administrative controls that may affect filter behavior, particularly around forwarding rules.

Where Individual Situations Diverge 📋

Two people can follow the exact same steps to create a Gmail filter and end up with very different results — one with a perfectly organized inbox, one who finds their important emails getting buried.

The difference usually comes down to: how many filters are active simultaneously, whether filter criteria are specific enough to avoid false positives, how email senders behave on the other end, and whether the filter actions align with actual reading habits.

A filter that archives all promotional emails works well for someone who checks that label periodically. For someone who never opens labels, it just moves clutter out of sight without solving anything.

Your inbox habits, the types of email you receive, and how you use Gmail day-to-day are the pieces that determine which filter setup will actually work — and those are the pieces only you can see.