Set up rules to move emails automatically
Outlook can move emails to a specific folder the moment they arrive, without you reading or sorting them manually. You do this by creating a rule — a standing instruction that watches for emails matching conditions you set, then performs an action like moving them to a folder.
The rule runs on your computer (in Outlook desktop) or on Microsoft's servers (in Outlook web). Desktop rules are faster and work offline. Web rules work whether you check email on your phone, computer, or browser. Most people use both: a desktop rule for when ready sorting, and a web rule as backup.
Rules are not templates or mail merge — they are automatic filters that sort incoming mail. You set them once and they run forever, or until you turn them off.
Key Takeaways
- Desktop rules in Outlook run when ready when mail arrives and work even when you are offline, but only on that one computer.
- Web rules in Outlook.com work across all your devices and browsers, but run on Microsoft's servers with a slight delay.
- A rule needs a condition (like "from a specific person" or "contains a word") and an action (like "move to folder").
- You can create a rule from an existing email by right-clicking it, or build one from scratch in the Rules menu.
- Test a new rule on a few emails before letting it run on all incoming mail, because moving emails to the wrong folder is hard to undo at scale.
Create a rule in Outlook desktop
Open Outlook on your computer. Go to the Home tab at the top. Click Rules (in the Move group on the right side), then click New Rule.
A dialog box opens with templates. Choose explore rule on messages I receive if you want the rule to sort incoming mail. Click Next.
Now you set the condition — what kind of email the rule should watch for. Check the box next to the condition you want. Common ones are From (a specific sender), To (a specific recipient), Subject contains (certain words in the subject line), or Body contains (certain words anywhere in the email). If you check From, click the underlined text and pick a contact or type an email address. Click Next.
Now you set the action. Check the box next to Move it to the specified folder. Click the underlined text and pick the folder where you want these emails to go. If the folder does not exist yet, you can create it now. Click Next.
You can add exceptions (emails that match the condition but should not be moved). For most rules, you can skip this. Click Next, then Finish. The rule is now active.
Create a rule in Outlook web
Open Outlook.com in your browser. Click the gear icon in the top right, then View all Outlook settings. Click Mail on the left, then Rules.
Click Add new rule. Type a name for the rule (like "Work emails to Work folder"). Under When the message arrives and, set your condition. You can filter by sender, recipient, subject, or body text. Click Add condition if you need more than one.
Under Do the following, click the dropdown and choose Move to folder. Pick the folder from the list. Click Save. The rule is now active on all your devices.
Create a rule from an existing email
If you want to sort emails from a specific person, the fastest way is to start with one of their emails. Right-click the email in your inbox. Click Rules, then Create rule. Outlook fills in the sender automatically.
Pick the folder where you want their emails to go. Click OK. The rule is created and active when ready. Any future emails from that person will move to the folder you chose.
This method works in both desktop and web Outlook. It saves you from typing email addresses or hunting through menus.
Test a rule before it runs on all mail
Before a rule sorts hundreds of emails, send yourself a test email that matches the condition. Watch whether it moves to the right folder. If it does, the rule is working. If it does not, check that the condition is spelled correctly and the folder exists.
If a rule moves emails to the wrong folder, you can undo it for individual emails (right-click and move them back), but undoing it for hundreds is tedious. So test first. You can also temporarily turn a rule off by going back to the Rules menu, right-clicking the rule, and clicking Disable.
Common rule setups
Sort emails from your boss to a "Priority" folder: Create a rule with condition From [boss's email], action Move to folder "Priority".
Sort newsletters to a "Reading" folder: Create a rule with condition From [newsletter sender], action Move to folder "Reading".
Sort emails with "Invoice" in the subject to an "Invoices" folder: Create a rule with condition Subject contains "Invoice", action Move to folder "Invoices".
Sort emails to a group address (like a team mailing list) to a "Team" folder: Create a rule with condition To [group email], action Move to folder "Team".
You can combine conditions so a rule only runs when multiple things are true. For example, From [sender] AND Subject contains "Report" means the rule only moves emails from that sender if the subject line says "Report".
Troubleshoot rules that are not working
If a rule is not moving emails, check that the folder exists and that you have permission to move emails into it. Some shared or archived folders block incoming mail.
Check that the condition is exact. If the rule looks for From "john@company.com" but emails come from "john.smith@company.com", the rule will not match. Use a partial match if your email program allows it.
If you use both desktop and web Outlook, web rules take priority. A desktop rule might move an email, but then a web rule could move it again. Check both places if emails are bouncing between folders.
Rules run on new mail only. They do not sort emails that arrived before you created the rule. To sort old emails, select them manually, then move them to the folder.
Frequently Asked Questions
Can I create a rule that sends emails to multiple folders?
No. A single rule moves an email to one folder. If you want the same email in two places, create a copy by forwarding it to yourself, or use a category or flag instead of a folder. Categories let you tag emails with a label without moving them.
What happens if two rules match the same email?
Both rules run in the order you created them. If the first rule moves an email to Folder A, and the second rule moves it to Folder B, the email ends up in Folder B. You can reorder rules in the Rules menu by dragging them.
Do rules work on emails I already received?
No. Rules only sort new emails that arrive after you create the rule. To sort old emails, select them in your inbox and move them manually, or use the search and filter tools to find them all at once.
Can I create a rule that sends emails to a folder on a shared mailbox?
Yes, if you have permission to access that mailbox in Outlook. The folder must appear in your folder list. Create the rule the same way, but pick the shared folder instead of a personal one.
What is the difference between a rule and a category?
A rule moves an email to a folder automatically. A category adds a colored label or tag to an email but leaves it in your inbox. Use rules to sort mail you do not need to see often. Use categories to mark mail you want to keep visible but organized by type.