How to set up email filters and labels takes about fifteen minutes per mail account, and you need no technical skill: a filter is a saved rule that sorts incoming mail for you, and a label is a tag you create to file it. Gmail, Outlook.com, and Apple Mail all ship with the feature, they just bury it in different menus. Updated for 2026.
The reason most people never finish this task is that they set it up once, watch three newsletters land in a new label, and assume everything else got handled too. It did not. Filters only touch mail that arrives after you save them, unless you tick the box that reaches back through your existing conversations.
Below I walk through Gmail first because it has the most flexible rule engine, then Outlook.com and Apple Mail, which use the same idea with different words. I finish with the mistakes that make rules look broken when they are working fine.
Table of Contents
What You Need Before You Start
You need access to the full settings screen of your mail account, which almost always means the desktop or web version. Phone apps expose a stripped-down version of the same settings, so do the setup work on a laptop.
You also need three things decided before you click anything:
- A short label list. Three to eight labels is plenty to start. Write them down in a plain text file so you type the same name every time instead of inventing near-duplicates like Bills and Bills2.
- Real examples. Scroll your inbox for two minutes and collect actual senders and phrases worth sorting. A filter built from [email protected] works on the first try; one built from a vague idea of “shopping mail” does not.
- A way to test. Ask a friend or use a second account to send you one message that should match and one that should not. Testing beats guessing every time.
Decide also whether you are sorting for archiving, for flagging, or for deleting. Those three goals want different rules, and mixing them is how people end up with a rule that quietly trashes something they needed.
Step-by-Step: How to Set Up Email Filters and Labels

How to set up filters in Gmail
Gmail keeps labels separate from folders, so a message can carry three labels and still sit in your inbox. Create the labels first, because a filter can only apply a label that already exists.
- Click the Create a new label plus sign at the top of the label list in the sidebar, or go to Settings > See all settings > Labels and scroll to the bottom.
- Type the name, choose a parent label to nest it under if you want, then click Create.
- Open Settings > See all settings > Filters and Blocked Addresses in the top menu. This is where Gmail stores every rule you have ever saved.
- Click Create a new filter. Choose the field you want to match: From, To, Subject, Has the words, or the option to include or exclude a list of addresses.
- Enter the criteria. Multiple words in the Has the words field are treated as OR by default, so invoice receipt matches mail containing either word.
- Set the actions: Apply the label to file it, Skip the Inbox to archive it out of sight, Mark it as read, Star it, or Delete it.
- Tick Also apply filter to matching conversations if you want the rule to sweep up mail that is already sitting in your inbox or archive. It will not touch anything in Trash or Spam.
- Click Create filter, then send yourself a test message to confirm it fires.
Gmail runs filters top to bottom and stops at Stop processing further rules if you tick that option, so ordering matters. Put your most specific rules above general ones or a broad catch-all will eat the mail before the narrow rule sees it.
One thing Gmail will not do is match on its own inbox tabs. Primary, Social, Promotions, Updates, and Forums are not usable as filter criteria, so a rule written around them either fails silently or matches nothing.
How to set up filters in Outlook.com
Outlook calls filters rules, and the structure is folder-based rather than label-based. You will need the folder to exist before you route mail into it.
- Create the destination folder in the folder pane on the left, or use one of the built-in folders such as Junk Email or Archive.
- Open the Settings gear in the top right, then choose Mail > Rules and alerts.
- Select Manage rules and alerts and click New rule > Create new rule. The rules wizard opens with a blank rule.
- Pick the trigger: The sender is, The subject is, or The body contains. Each accepts several entries, so you can list several senders in one rule.
- Click Next, then choose the action. Move the message to sends it to a folder, Mark as read clears it, and Stop processing further rules prevents later rules from grabbing the same message.
- Click Finish, then confirm the rule name and click OK.
Outlook runs server-side, so your rules keep working on the phone, the web, and desktop clients at the same time. That is a genuine advantage over some desktop-only setups, and worth knowing if you switch between devices.
How to set up filters in Apple Mail
Apple Mail rules live in the Mail app on a Mac and on iPhone and iPad. On iOS you can review, reorder, and switch rules on or off, but building one from scratch is easier on the desktop app.
- On macOS, open Mail and go to Mail > Settings > Rules. Choose Add Rule at the bottom of the list.
- Name the rule and set If to the condition, such as Sender or Subject. The condition line expands to is or contains, so an email address must match exactly while a subject phrase can be partial.
- Set Then to the action. Move to Mailbox handles filing, Mark as Read, Flag, and Delete handle the rest.
- Click OK, then drag the rule into position in the list.
- On iPhone, open the Mail app, tap your account name at the top, then Rules to see the same list.
Apple Mail stops at the first matching rule and never looks further. Unlike Gmail, it will not go back and label mail you already received, so if you are cleaning an old mailbox you do it by hand. If you do not own a Mac, iCloud.com Mail lets you create rules in the browser instead.
Create rules that do not overwhelm you
Look at the r/gsuite threads about filter setups and you will see the same failure repeatedly: forty rules that each check one sender. It works, but nobody can maintain it.
A system that lasts uses one label per group and one rule per group, with the senders combined inside a single condition. A receipts label fed by twelve shops beats twelve receipts rules because you can rename it, extend it, or delete it in one place.
Keep the naming convention boring and consistent. Capitalised, no spaces, grouped by parent label, so a label list stays readable at twenty entries instead of collapsing at thirty.
Give your rules a priority order that mirrors how specific they are, and cap yourself. Ten active rules that each do something you understand beat forty you have never reviewed. Set a calendar reminder to look at the list once a quarter, and delete anything you stopped noticing.
Common mistakes and how to fix them
Expecting old mail to be sorted. By default, a new filter only applies to future arrivals. Open Filters and Blocked Addresses, edit the rule, tick Also apply filter to matching conversations, and save. That is the single most common reason people think filters are broken.
Writing the rule in Gmail’s search bar first. Search and filter criteria are not identical. Paste your string into the Gmail search box and confirm real messages come back before saving it as a rule.
Assuming wildcards work everywhere. Users on the Gmail support forums keep trying to use the asterisk the way they expect, and the rule then matches nothing. Use the Has the words field with plain phrases, and split different senders into separate conditions rather than trying one clever pattern.
Filtering by category. Promotions, Updates, Social, and the rest are inbox tabs, not filterable fields. Match on the sender domain or the wording in the message body instead.
Using a desktop mail client. When a third-party client fetches your mail over IMAP, Gmail’s server-side filters never see those messages. Test in the web interface before you rewrite a working rule.
Building duplicate labels. Merge them instead of starting a new one. Gmail can merge labels, but note that deleting a label outright strips it from every message that carried it, so merge rather than delete whenever the history matters.
Setting a rule to delete too eagerly. A misfired delete rule is annoying to recover from, and Gmail empties Trash automatically after 30 days. Start with Skip the Inbox, live with the label for a couple of weeks, and only then consider Delete it.
Putting a broad rule at the top. Whichever client you use, the first match wins. Reorder so that specific senders are evaluated before anything with a broad keyword.
Frequently Asked Questions
Can I use labels instead of filters in Gmail?
Labels and filters do different jobs, and you need both. A label is just a tag you apply, whether by hand or by a rule. A filter is the rule that watches every arriving message and decides what to do with it. If you label by hand, you are doing the filter’s job slowly, once per message. Set up the label first, then attach a filter that applies it automatically.
Does Outlook.com let me automatically move email into folders?
Yes, and rules work on every device signed into the account because they run on Microsoft’s servers rather than in the client. Open Settings, choose Mail, then Rules and alerts, and select Manage rules and alerts to create one. The wizard lets you match on sender, subject, recipients, or body text, and the action can move mail to any folder you have created.
Why are my Apple Mail filters not working?
Apple Mail applies the first rule that matches and stops, so a broad rule placed near the top of the list quietly eats mail your later rules needed. There is a second catch: rules do not go back over mail already in the mailbox, so old messages stay unsorted until you move them by hand. Check the rule order, confirm the destination mailbox still exists, and test with a fresh message.
How do I prevent email filters from moving important messages?
Start with the least destructive action available. Instead of Delete it, use Skip the Inbox or Apply the label, which keeps every message recoverable and searchable. Add an exclusion list for senders you never want filtered, such as your employer or your bank, and place those addresses above any broad rule. Remember Gmail removes items from Trash after 30 days.
Conclusion
Start small and prove it works. Create three labels, write two filters with narrow conditions, send yourself a test message for each, and only expand once you trust the result.
When you are ready to learn how to set up email filters and labels properly across a second account, repeat the same process on that client rather than copying rules across. Each provider stores its rules separately, and the naming convention is what keeps two inboxes from turning into chaos.