Gmail “rules” are called filters. They help you automatically handle incoming emails—so messages can be labeled, archived, marked as important, forwarded, or even deleted without you doing anything manually.

Before you start: what Gmail filters can (and can’t) do

  • They run on matching messages based on criteria like sender, subject, keywords, attachments, or recipients.
  • They can apply actions such as applying a label, skipping the inbox (archiving), starring, marking as read, forwarding, or deleting.
  • They’re best for automation of routine sorting—newsletters, receipts, project mail, support tickets, etc.
  • They’re not “smart rules” like some email clients—filters are condition + action. Complex logic usually means creating multiple filters.

How to create a Gmail rule (filter) from the search bar

  1. Open Gmail on a desktop browser (filters are easiest to manage here).
  2. In the search bar at the top, click the filter icon (sliders) to open advanced search.
  3. Fill in one or more fields:
    • From: a sender email or domain (e.g., @example.com)
    • To: useful if you receive mail to aliases
    • Subject: match specific subject patterns
    • Has the words: keywords that must appear
    • Doesn’t have: keywords to exclude
    • Has attachment: limits to emails with files
  4. Click Create filter.
  5. Choose what should happen when an email matches. Common actions include:
    • Apply the label (create a new label if needed)
    • Skip the Inbox (Archive it) to keep the inbox clean
    • Mark as read for low-priority notifications
    • Star it or Always mark as important for priority senders
    • Forward it to another address (requires forwarding setup)
    • Delete it (use carefully—consider archiving instead)
  6. (Optional) Tick Also apply filter to matching conversations if you want to organize existing emails too.
  7. Click Create filter to save.

How to create a filter directly from an email

  1. Open the email you want to automate.
  2. Click the three-dot menu (More) near the top-right of the message.
  3. Select Filter messages like these.
  4. Adjust the criteria (sender, subject, keywords), then click Create filter.
  5. Select the action(s), then save.

Practical filter recipes (copy these ideas)

1) Auto-label and archive newsletters

  • Criteria: From contains a newsletter sender or domain.
  • Actions: Apply label “Newsletters”, Skip Inbox, Mark as read.

2) Keep receipts and invoices searchable

  • Criteria: Has the words receipt OR invoice OR order confirmation.
  • Actions: Apply label “Receipts”, Never send it to Spam (optional).

3) Prioritize your boss or key clients

  • Criteria: From is a specific address.
  • Actions: Star it, Mark as important, Apply label “Priority”.

4) Organize project emails using an alias

  • Criteria: To contains [email protected].
  • Actions: Apply label “Project”, Categorize (if available), Star (optional).

How to edit, disable, or delete Gmail filters

  1. In Gmail, click the gear iconSee all settings.
  2. Open the Filters and Blocked Addresses tab.
  3. Find your filter, then choose:
    • Edit to change conditions or actions
    • Delete to remove it entirely

Tips to avoid mistakes

  • Test before you delete: If you’re unsure, label + archive first. After a week, you can switch to delete if it’s truly safe.
  • Be specific with keywords: Short words can match unrelated emails and cause mis-sorting.
  • Use multiple filters for complex logic: If you need “A AND (B OR C)”, you may get better results by splitting into two filters.
  • Forwarding requires setup: Gmail typically requires you to verify the forwarding address before a filter can forward automatically.

Troubleshooting: why your Gmail rule isn’t working

  • The criteria don’t match the real message: Check the exact sender address, subject text, and whether the message was delivered via a list.
  • Another filter overrides your expectations: Filters can stack; review other rules that might archive or label first.
  • The email is categorized: Tabs (Primary/Social/Promotions) can make it feel like a filter failed. Confirm where the message landed and adjust actions accordingly.
  • Mobile limitations: Creating and managing filters is most reliable on desktop Gmail.

Once you set up a handful of targeted filters, Gmail becomes much easier to scan: your inbox stays focused, and everything else gets sorted into labels you can review on your schedule.