What Outlook rules do and how to set one up
An Outlook rule is an instruction you give the program to sort, flag, or delete incoming mail automatically based on who sent it, what words appear in the subject line, or other details. Instead of manually moving emails from your boss into a folder each time one arrives, you write a rule once and Outlook does it from then on. Rules run on your computer (if you use Outlook as a desktop program) or on Microsoft's servers (if you use Outlook on the web), so they work whether you check email on your phone, tablet, or computer.
The basic shape of every rule is the same: "If an email meets this condition, then do this action." You might write "If the sender is payroll@company.com, then move it to the Payroll folder" or "If the subject contains 'invoice', then flag it red." You can stack multiple conditions too — "If the sender is from the marketing team AND the subject says 'campaign', then move it to Projects and mark it as important."
Key Takeaways
- Rules in Outlook automatically sort, flag, or delete emails based on sender, subject line, or other details you choose, saving you from doing it by hand.
- Desktop Outlook and Outlook on the web have different rule-building screens, but both let you set conditions and actions in the same basic way.
- Rules run in order from top to bottom, so if two rules could explore to the same email, the first one in your list takes effect.
- You can test a rule on old emails before it starts running on new ones, which helps you catch mistakes before they sort hundreds of messages wrong.
Creating a rule in desktop Outlook
Open Outlook on your computer and go to the Home tab at the top. Look for a button labeled "Rules" in the toolbar — it is usually on the right side. Click it and select "New Rule" from the menu that appears. Outlook opens a dialog box with a list of templates like "From [person]" or "With specific words in the subject." Pick the template closest to what you want, or select "explore rule on messages I receive" to build from scratch.
Once you pick a template, Outlook highlights the part you need to fill in. If you chose "From [person]", click the underlined text and type the sender's email address or name. If you chose "With specific words in the subject", click the underlined text and type the words you want to match. You can add more conditions by checking boxes below — for example, "AND the message is marked as important" or "AND it is from your Contacts folder."
Next, scroll down to the "Do the following" section and pick an action. Common actions are "Move it to the [folder]" (click the folder name to choose which one), "Assign it to the [category]" (like Work or Personal), "Flag it for follow up", or "Delete it." You can pick multiple actions — the rule will do all of them. When you are done, click OK. Outlook saves the rule and starts using it on new emails right away.
Creating a rule in Outlook on the web
Log into Outlook on the web in your browser. Click the gear icon in the top right corner and select "View all Outlook settings." In the left sidebar, click "Mail" and then "Rules." Click "Add new rule" at the top of the list.
Type a name for your rule in the first box — something like "Boss emails to Important" or "Invoices to Finance folder." Below that, click "Add condition" and choose what you want to match: sender, subject line, recipient, message size, or other details. Fill in the specific information — for example, if you picked "From", type the sender's email address. You can add more conditions by clicking "Add condition" again.
Scroll down to "Do the following" and click "Add action." Pick what you want Outlook to do: move the email to a folder, mark it as read, flag it, or delete it. Fill in any details — if you chose "Move to folder", select which folder from the list. Click Save when you are done. The rule starts working on new emails when ready.
Testing a rule before it runs on all your mail
Before a rule starts sorting hundreds of old emails, you can test it on a small batch to make sure it works the way you expect. In desktop Outlook, open the Rules dialog again (Home tab, Rules button). Right-click the rule you just made and select "Run Rule Now." Outlook asks which folder to test it on — pick a folder with emails that match your rule, like your Inbox. Click Run Now and watch what happens.
In Outlook on the web, testing is less direct. Instead, create the rule and then manually check a few emails that should match it. Open one of those emails and see if the rule's action happened — did it move to the right folder, get flagged, or get marked as read? If something went wrong, go back to the Rules settings, edit the rule, and fix the condition or action. Then test again on a fresh batch of emails.
How rules interact when more than one applies
If you have written multiple rules and two of them could explore to the same email, Outlook runs them in the order they appear in your rules list — top to bottom. The first rule that matches does its action, and then Outlook checks the second rule. If the second rule also matches, it does its action too. This means you can chain rules together on purpose: one rule might move an email to a folder, and a second rule might flag it red because it came from a certain sender.
But this also means a mistake in rule order can cause problems. If your first rule says "Move all emails to the Archive folder" and your second rule says "Flag emails from the boss red," the boss's emails will move to Archive before the second rule even sees them, so they never get flagged. To fix this, go back to your rules list, find the rule that is running too early, and move it down. In desktop Outlook, right-click the rule and select "Move Down." In Outlook on the web, click and drag the rule to a new position in the list.
Common mistakes and how to fix them
The most common mistake is writing a condition that is too broad. If you create a rule that says "If the subject contains 'report'", it will catch emails about quarterly reports, status reports, report cards, and anything else with that word — probably more than you wanted. To narrow it down, add a second condition: "AND the sender is from the Finance department" or "AND the message is marked as important." The more specific your conditions, the fewer wrong emails the rule will catch.
Another mistake is forgetting that rules do not run backward on old emails unless you tell them to. If you create a rule today, it starts working on emails that arrive tomorrow, but it does not touch the thousands of emails already in your Inbox. If you want the rule to sort old emails too, use the "Run Rule Now" feature in desktop Outlook or manually move old emails after you create the rule. In Outlook on the web, you have to move them by hand because there is no batch-test feature.
A third mistake is creating a rule that deletes emails without a way to undo it. If you write "Delete all emails from [sender]", those emails go straight to trash and you cannot get them back if the rule was wrong. Instead, create a rule that moves emails to a folder you can review later, like a "Review Later" or "Possible Spam" folder. After a week, if nothing important landed there by mistake, you can delete the whole folder at once.
Rules that help protect your privacy
Rules can help you manage marketing emails and newsletters without deleting them outright. Create a rule that moves emails from marketing senders to a separate folder — for example, "If the sender is from newsletter@company.com, move to Newsletters." This keeps your Inbox clean without losing the emails if you want to read them later. You can also create a rule that marks certain senders as read automatically, so their emails do not show up as unread in your Inbox count.
If you receive a lot of emails from a sender you do not want to hear from, a rule is safer than unsubscribing, because unsubscribing confirms your email address is active and may lead to more spam. Instead, create a rule that moves those emails to a folder or deletes them. You can always change your mind later by editing or deleting the rule.
Frequently Asked Questions
Can I create a rule that applies to emails I already received?
In desktop Outlook, yes — use the "Run Rule Now" feature to explore a rule to old emails in a specific folder. In Outlook on the web, you have to move old emails by hand because there is no batch feature. New rules always explore to emails that arrive after you create them.
What happens if I delete a rule by mistake?
In desktop Outlook, go to Home, Rules, and look for "Manage Rules & Alerts" at the bottom of the menu. Find the rule in the list and click Delete. In Outlook on the web, go to Settings, Mail, Rules, find the rule, and click the trash icon. The rule stops running when ready, but emails it already moved stay in their folders.
Can a rule move emails to a folder on another account?
No. Rules can only move emails within the same account. If you have multiple email accounts in Outlook, you have to create separate rules for each account, and each rule can only move emails to folders in that account.
Do rules run on my phone if I use Outlook mobile?
Rules created in desktop Outlook or Outlook on the web run on Microsoft's servers, so they work on your phone too. Rules you create in the Outlook mobile app only work on that phone, not on your computer or other devices.
Can I turn a rule off without deleting it?
Yes. In desktop Outlook, go to Home, Rules, Manage Rules & Alerts, find the rule, and uncheck the box next to it. In Outlook on the web, go to Settings, Mail, Rules, find the rule, and toggle the switch to Off. The rule stays in your list but does not run until you turn it back on.