How to Set Up and Use Gmail Rules

Gmail Rules & Filters: The Complete Guide (2026)

Gmail rules (also called filters) automatically sort, label, forward, and delete emails based on criteria you set. To create a rule: click Show search options in the Gmail search bar, enter your criteria, click Create filter, choose your actions, and save.

Cody Duval

Last updated: March 7, 2026

11 mins read

Gmail rules (officially called “filters”) automatically sort, label, forward, and delete emails based on criteria you set. Instead of manually dragging messages into folders every morning, you tell Gmail what to do with them — and it handles the rest, 24/7.

Whether you call them rules or filters, the result is the same: less time managing email, more time doing actual work. This guide covers everything from creating your first filter to advanced techniques like search operators, bulk import/export, and Gmail’s 500-filter limit.

What Are Gmail Rules (and Why Does Gmail Call Them “Filters”)?

Gmail uses the term filters in its interface, but most people search for Gmail rules — they mean the same thing. A filter is an instruction that tells Gmail: “When an email matches these conditions, take this action automatically.”

You can filter by sender, recipient, subject line, keywords, attachment size, and more. Once a filter is active, Gmail applies it to every incoming message that matches — no manual effort required.

Filters help you:

  • Stay organized — automatically label and sort emails into categories
  • Protect your focus — skip the inbox for low-priority messages
  • Never miss what matters — star or flag emails from key contacts
  • Reduce noise — auto-archive or delete newsletters and notifications
  • Save hours every week — the average professional spends 28% of their workday on email

How to Create a Rule in Gmail (3 Methods)

There are three ways to create a filter in Gmail. Pick the one that fits your situation.

Method 1: From the Search Bar

This is the most flexible method — it lets you define any combination of filter criteria. Use it when you want to build a filter from scratch with full control over every field.

  1. Open Gmail in your browser.
  2. Click the Show search options icon (the slider button) on the right side of the search bar.
  3. Fill in your search criteria — From, To, Subject, Has the words, etc.
  4. Click Search to preview which emails match (optional but recommended).
  5. Click Create filter at the bottom of the search panel.
  6. Choose the action(s) you want Gmail to take on matching emails.
  7. Optionally check “Also apply filter to matching conversations” to apply the rule retroactively.
  8. Click Create filter to save.
Gmail search bar with Show search options button highlighted
Gmail search options panel with filter criteria fields

Method 2: From an Existing Email

Already looking at an email you want to filter? This is the fastest way — Gmail pre-fills the sender’s address so you don’t need to type anything.

  1. Select the email(s) by checking the box next to them.
  2. Click the three vertical dots (More) in the toolbar.
  3. Select “Filter messages like these.”
  4. Gmail pre-fills the From field. Adjust other criteria if needed.
  5. Click Create filter, choose your actions, and save.
Selecting emails in Gmail to create a filter

Method 3: From Gmail Settings

The Settings page is the central hub for all your filters. This method is best when you want to create a new filter while reviewing your existing ones.

  1. Click the gear icon in the top right, then See all settings.
  2. Go to the Filters and Blocked Addresses tab.
  3. Click Create a new filter at the bottom of the list.
  4. Enter your criteria, choose actions, and save.

This is also where you go to edit or delete existing filters — more on that below.

All Gmail Filter Actions Explained

When you create a filter, Gmail gives you a menu of actions to apply. Here’s what each one does:

  • Skip the Inbox (Archive it) — Removes from inbox but keeps it searchable. Great for newsletters, notifications, and CC’d threads.
  • Mark as read — Marks the email as read automatically. Use for FYI emails you don’t need to open.
  • Star it — Adds a star for quick access. Use for VIP senders and urgent keywords.
  • Apply the label — Tags with a label (like a folder). Use for project sorting and client organization.
  • Forward it to — Auto-forwards to another address. Use for routing leads or distributing to a team.
  • Delete it — Sends to Trash automatically. Use for persistent spam and unwanted senders.
  • Never send it to Spam — Prevents false spam classification. Use for important senders Gmail keeps flagging.
  • Always mark as important — Overrides Gmail’s importance algorithm. Use for key contacts and priority accounts.
  • Never mark as important — Prevents Gmail from flagging as important. Use for automated notifications and marketing.
  • Categorize as — Assigns to a Gmail category tab (Primary, Social, Promotions, Updates, or Forums).

Pro tip: You can combine multiple actions on a single filter. For example, apply a label and skip the inbox and mark as read — all at once.

10 Gmail Rules Every Professional Should Set Up

Here are the filters that deliver the biggest time savings. Each one includes the exact criteria and actions to set, so you can create them in under a minute. Set these up once and they work forever — no maintenance required unless your workflow changes.

1. Auto-Label Client or Project Emails

Filter criteria: from:@clientdomain.com
Actions: Apply the label “Client — Acme”

This gives you instant project-based organization without touching a single email. Create one filter per client domain or project, and every incoming email lands in the right bucket automatically. Works great with Gmail label sharing if your team needs the same folder structure.

2. Skip the Inbox for Newsletters

Filter criteria: Has the words: unsubscribe
Actions: Skip Inbox, Apply label “Newsletters”, Mark as read

Almost every newsletter includes “unsubscribe” in the footer. This single filter catches most of them. Read newsletters on your schedule — during a coffee break or end of day — instead of letting them interrupt deep work.

3. Star Emails from Your Boss or Key Stakeholders

Filter criteria: from:boss@company.com
Actions: Star it, Always mark as important, Never send to Spam

Gmail’s importance algorithm isn’t always right. This filter ensures emails from the people who matter most always stand out — starred, flagged as important, and protected from accidental spam classification.

4. Auto-Forward Leads to Your Sales Team

Filter criteria: Subject contains pricing, demo request, or quote
Actions: Forward to sales@company.com, Apply label “Leads”

When a potential customer reaches out, speed matters. This filter forwards leads automatically so your sales team can respond quickly. The label lets you track volume and follow up on anything that falls through.

5. Archive Social Media Notifications

Filter criteria: {from:@facebookmail.com from:@linkedin.com from:@twitter.com}
Actions: Skip Inbox, Apply label “Social”

LinkedIn connection requests and Facebook notifications are useful to review occasionally, but they shouldn’t compete with actual work emails. Archive them automatically and batch-review when you have downtime.

6. Flag Emails with Attachments

Filter criteria: Has attachment (checkbox)
Actions: Apply label “Has Files”

Need to find that contract, invoice, or proposal from last month? Instead of searching through dozens of threads, click your “Has Files” label and filter by date. You can get even more specific with has:attachment filename:pdf to catch only certain file types.

7. Auto-Delete Persistent Spam

Filter criteria: from:spammer@domain.com
Actions: Delete it

Some senders slip past Gmail’s spam filter consistently. Cold outreach, persistent marketers, automated notifications from services you cancelled — create a filter for their address or domain and send future messages straight to Trash. No more daily cleanup.

8. Separate Personal and Work Emails

Filter criteria: {from:mom@gmail.com from:friend@gmail.com}
Actions: Skip Inbox, Apply label “Personal”

If you use one Gmail account for personal and professional email, keep the boundaries clear. Filter personal contacts to a dedicated label so they don’t distract during work hours. You can also use multiple Gmail inboxes to view personal and work emails side-by-side without mixing them.

9. Route Support Emails by Priority Keywords

Filter criteria: Has the words: {urgent broken "can't login" "billing issue"}
Actions: Star it, Always mark as important, Apply label “Urgent”

Customers don’t always put “urgent” in the subject line, but they use predictable language when something is broken. This filter surfaces high-priority issues automatically. For teams handling real volume, pair this with a proper ticketing system so nothing slips through.

10. Catch Emails Sent to Aliases

Filter criteria: To: you+billing@gmail.com
Actions: Apply label “Billing”

Gmail supports plus-addressing aliases — you can add +anything before the @ symbol and emails still arrive in your inbox. Use different aliases for different purposes (signups, billing, support), then filter by the “To” address to auto-sort them. It’s like having multiple email addresses without the overhead of managing separate accounts.

Advanced Gmail Filter Techniques

Once you’ve set up the basics, these advanced techniques unlock far more powerful filtering. Most Gmail users never discover these features, but they’re the difference between a good email workflow and a great one.

Gmail Search Operators in Filters

The “Has the words” field in Gmail’s filter creation supports the same search operators you use in Gmail search. This unlocks much more precise filters:

  • from:sender@example.com — match a specific sender
  • to:sales@yourcompany.com — match a specific recipient
  • subject:(invoice OR receipt) — match either keyword in the subject
  • has:attachment filename:pdf — only emails with PDF attachments
  • larger:5M — emails larger than 5 MB
  • -from:@yourcompany.com — exclude emails from your own domain
  • {from:alice@example.com from:bob@example.com} — match emails from either sender

Combine operators for powerful filters. For example: from:@clientdomain.com has:attachment filename:pdf larger:1M catches only large PDF attachments from a specific client.

Import and Export Filters Between Accounts

Need the same filters across multiple Gmail accounts? Gmail supports XML-based filter import/export:

  1. Go to Settings → Filters and Blocked Addresses.
  2. Select the filters you want to export.
  3. Click Export — Gmail generates an XML file.
  4. In the target account, go to the same settings page.
  5. Click Import filters and upload the XML file.
  6. Review the imported filters and click Create filters.

This is especially useful when onboarding new team members or standardizing email workflows across a department. For example, if your customer success team all need the same set of filters for routing support emails, one person can set them up, export the XML, and distribute it to the entire team. Keep in mind that exported filters are a snapshot — if you update the original filter later, you’ll need to re-export and re-import.

Gmail Filter Limits

Gmail allows a maximum of 500 filters per account. If you’re approaching this limit:

  • Consolidate filters — use OR operators ({sender1 sender2}) to combine similar rules into one filter
  • Delete outdated filters — review your filter list quarterly and remove rules for senders or projects that no longer exist
  • Use domain-level filters — filter by @domain.com instead of individual email addresses

For Google Workspace accounts, administrators can also create organization-wide routing rules that don’t count against individual filter limits.

Managing and Editing Existing Rules

To view, edit, or delete your existing filters:

  1. Click the gear icon → See all settings.
  2. Go to the Filters and Blocked Addresses tab.
  3. You’ll see a list of all your active filters with their criteria and actions.
  4. Click edit to modify a filter’s criteria or actions.
  5. Click delete to remove a filter entirely.

Best practice: Review your filters every quarter. Delete rules for senders you no longer receive email from, update labels to match your current project structure, and check for conflicting rules that might be fighting each other.

Filters are applied in the order they were created. If two filters match the same email, both sets of actions are applied — which can occasionally cause unexpected behavior. For example, one filter might star an email while another archives it, so the starred email disappears from your inbox. If you notice odd results, check your filter list for overlapping criteria and consider merging them into a single filter with combined actions.

Gmail Rules for Teams: When Filters Aren’t Enough

Gmail filters are powerful for individual inbox management. But if you’re running a team that shares an email address — like support@, sales@, or info@ — you’ll quickly hit their limits.

Here’s the core problem: Gmail filters are per-person. Each team member has their own filter set. There’s no way to share filters, coordinate who’s handling what, or prevent two people from replying to the same email.

Teams managing a Gmail shared mailbox typically need:

  • Shared assignment — route emails to specific team members, not just labels
  • Collision detection — see when someone is already replying
  • Status tracking — know which emails are open, pending, or resolved
  • Shared templates — consistent responses without everyone maintaining their own canned responses
  • Performance analytics — response times, resolution rates, and team workload

This is exactly what Keeping is built for. It adds help desk functionality directly inside Gmail — no separate app, no learning curve. Your team gets assignment, tracking, collaboration, and analytics while customers just see normal email replies from your shared address.

Use Gmail filters to organize your personal inbox. Use Keeping to manage your team’s shared email. They complement each other perfectly.

Need rules that work across your whole team?
Keeping turns your shared Gmail inbox into a collaborative help desk — with assignment, tracking, and collision detection built in.

Frequently Asked Questions

What’s the difference between Gmail rules and Gmail filters?

Nothing — they’re the same feature. Gmail’s interface uses the term “filters,” but most people search for “Gmail rules.” Both refer to automated instructions that sort, label, forward, or delete incoming emails based on criteria you define.

How many Gmail filters can I create?

Gmail allows up to 500 filters per account. If you’re approaching this limit, consolidate filters using OR operators, delete outdated rules, and filter by domain instead of individual addresses.

Can I apply a Gmail filter to emails I’ve already received?

Yes. When creating a filter, check the box that says “Also apply filter to matching conversations.” Gmail will retroactively apply the filter’s actions to all existing emails that match your criteria.

Do Gmail filters work on mobile?

Filters run server-side, so they apply to all emails regardless of where you read them — desktop, mobile app, or tablet. However, you can only create filters from the Gmail web interface (mail.google.com), not from the mobile app.

Can I create a Gmail rule to auto-reply to emails?

Gmail filters don’t support auto-replies directly. For automated responses, use Gmail’s built-in vacation responder or auto-reply feature, or set up a Google Apps Script for more advanced automation.

Can I share Gmail filters with my team?

Not directly — Gmail filters are tied to individual accounts. You can export your filters as an XML file and have teammates import them, but they won’t stay synchronized. For teams that need shared email rules, a tool like Keeping provides shared workflows, auto-assignment, and routing that stays consistent across the whole team.

Why isn’t my Gmail filter working?

Common reasons: (1) The filter criteria is too narrow or misspelled, (2) another filter is catching the email first, (3) the filter uses “Has the words” but the keyword only appears in the HTML source, not the visible text, or (4) the email arrived before the filter was created and you didn’t check “Also apply to matching conversations.” Review your filter list in Settings → Filters and Blocked Addresses to troubleshoot.

Can I use Gmail filters with Google Groups or shared inboxes?

You can create personal filters for emails received through Google Groups, but the filters only apply to your account — not the entire group. For shared inbox management with team-wide rules, consider Keeping, which works inside Gmail and provides shared assignment, status tracking, and automation for your team’s email.

What Gmail extensions can improve my filter workflow?

Several Gmail Chrome extensions can enhance your email management beyond what filters alone can do. For team email, Keeping adds help desk features directly inside Gmail. For personal productivity, look for extensions that add snooze, scheduling, and tracking capabilities.

How do I delete a Gmail filter?

Go to Settings → Filters and Blocked Addresses. Find the filter you want to remove and click delete next to it. The filter stops immediately — emails that were already processed won’t be undone, but future emails will no longer be affected.

Take Control of Your Inbox

Gmail rules are one of the most underused productivity features in Google’s ecosystem. A well-organized set of filters can save you hours every week — automatically sorting, labeling, and routing email so you focus on what actually matters.

Here’s a simple plan to get started: set up filters 1 through 5 from our essential rules list today — they’ll take about 15 minutes and immediately reduce inbox noise. Then add the remaining five over the next week as you notice specific email patterns. Once you’re comfortable, explore the advanced techniques like search operators and import/export to fine-tune your system.

Review your filters quarterly to keep them current. Delete rules for senders that no longer email you, update labels to match your current projects, and consolidate any filters that have grown redundant.

And if your team shares an email address like support@ or sales@, don’t try to solve it with individual filters — they weren’t designed for team coordination. Try Keeping free for 14 days and see how much smoother shared email management can be when everyone has shared assignment, collision detection, and analytics built right into Gmail.

Cody Duval

Cody is the Founder and CEO of Keeping. He's a self-professed nerd about processes and operations and loves helping others grow and build their businesses.

Join 150+ teams that are sharing inboxes with us

The easiest way to upgrade your shared Gmail account. There’s no credit card is required.

blog-post-sidebar-cta