How to Filter an Email in Gmail: A Complete Guide

Gmail filters are one of the most underused tools in email management. Once set up, they work silently in the background — automatically sorting, labeling, archiving, or deleting incoming messages so your inbox reflects what actually matters to you.

What Is a Gmail Filter?

A Gmail filter is a rule you create that tells Gmail what to do with incoming messages that match specific criteria. Every new email that arrives gets checked against your filters before landing in your inbox. If it matches, Gmail acts on it automatically — no manual sorting required.

Filters can be based on:

  • Sender address (e.g., all emails from a specific person or domain)
  • Keywords in the subject line or body
  • Recipients (who else the email was sent to)
  • Size of the message
  • Whether it has attachments

You can combine these to create precise rules. For example: emails from a specific newsletter sender that also contain the word "sale" in the subject line.

How to Create a Gmail Filter (Step by Step)

Method 1: From the Search Bar

  1. Open Gmail and click the search options icon (the small downward arrow on the right side of the search bar)
  2. Fill in the relevant criteria — From, To, Subject, Has words, Doesn't have, Has attachment, etc.
  3. Click Search to preview which emails would match
  4. If the results look right, click Create filter (appears at the bottom of the search options panel)
  5. Choose one or more actions for matching emails
  6. Click Create filter to save

Method 2: From an Existing Email

  1. Open or right-click the email you want to use as a template
  2. Click the three-dot menu (More options) and select Filter messages like these
  3. Gmail pre-populates the sender's address — adjust any criteria you need
  4. Click Create filter and choose your actions

This second method is often faster when you're reacting to a specific sender you want to manage.

What Actions Can a Filter Perform?

When an email matches your filter, you can tell Gmail to do one or more of the following:

ActionWhat It Does
Skip the InboxArchives the message immediately — bypasses inbox
Mark as readRemoves the unread indicator automatically
Star itAdds a star for easy retrieval later
Apply labelSorts it into a named label/folder
Forward itSends a copy to another email address
Delete itSends directly to Trash
Never send to SpamWhitelists a sender
Always mark as importantOverrides Gmail's importance markers
Categorize asAssigns to Primary, Social, Promotions, etc.

You can stack multiple actions on a single filter. A common setup: skip the inbox + apply a label + mark as read — effectively silencing a sender while keeping their emails accessible later.

Applying a Filter to Existing Emails

When you create a filter, Gmail gives you the option to also apply the filter to matching conversations — this retroactively processes emails already in your inbox or other folders. This is useful when you're getting organized for the first time and want consistency throughout your history.

Managing and Editing Existing Filters

Filters don't disappear after you create them — they accumulate over time, and some can conflict or overlap in unexpected ways. 🔧

To review your filters:

  1. Go to Settings (gear icon) → See all settings
  2. Click the Filters and Blocked Addresses tab
  3. From here you can edit or delete any existing filter

It's worth auditing these periodically. Filters created years ago for jobs, subscriptions, or accounts you no longer use can affect how new emails are processed.

Where Filters Get Complicated

The logic behind filters is straightforward, but outcomes vary based on a few factors:

  • Gmail's own categorization — Gmail applies its own sorting (Primary, Social, Promotions tabs) alongside your filters. These two systems can interact in ways that aren't always obvious.
  • Filter order — Gmail processes filters, but they don't have strict priority ordering the way some email clients do. If multiple filters match the same email, multiple actions can fire simultaneously.
  • Mobile vs. desktop — Filters can only be created and edited in the web version of Gmail. The Gmail mobile app doesn't surface filter management tools.
  • Workspace vs. personal accounts — If you're using Gmail through a Google Workspace account (work or school), your organization may restrict certain actions like forwarding.
  • Wildcards and operators — Gmail supports search operators in filter criteria (like from:(*@domain.com) to catch any sender from a domain), but the syntax needs to be precise for the filter to work as expected.

The Difference Between Filters and Labels 📁

Filters and labels are often discussed together because they work as a pair, but they're separate things. A label is a tag applied to a message — it's the organizational bucket. A filter is the rule that decides which messages get that tag (and what else happens to them).

You can create labels without filters, and apply filters without labels. But combining them is where Gmail's organization system becomes genuinely powerful.

Who Benefits Most — And Where Individual Needs Diverge

Someone managing a high-volume newsletter subscription list has very different filtering needs than someone trying to separate work emails from personal ones, or a freelancer routing client emails into project-specific labels.

The mechanics of creating a filter are consistent across Gmail accounts. But which criteria to use, which actions make sense, and how filters interact with your existing setup — that depends entirely on how your inbox is currently structured, how many emails you receive, what categories matter to you, and how you actually use Gmail day to day.