# How do I change a category and make a rule?

Source: https://magicbnb.io/help/expenses/change-a-category-and-make-a-rule · Category: Expenses and categories · Last updated: 2026-11-16

**Short answer:** On the Expenses tab, open a merchant and choose Set category to file every charge from it, now and from now on. For one charge, use its category button. On Transactions, a payee rule files everything paid to a name. A category you set by hand on a charge is never overridden.

**Time:** about 5 minutes

**What you need:**
- A bank account connected with some expenses on the Expenses tab

**Where in the app:** https://app.magicbnb.io/portfolio/profitability?tab=expenses

## Change one charge

1. Open **Profitability** and choose the **Expenses** tab.
2. Open the charge. Click the category shown on it (a charge without one reads **Uncategorized**).
   ![The category picker open on an expense line, listing categories such as Cleaning, Utilities, Maintenance / Repairs and Improvements.](https://magicbnb.io/help/expenses-category-list-open.webp)
3. Search and pick a category under **This charge**. A **Plaid suggests** option appears when the bank data has an idea.
   ![The category picker on an expense line, with a search box, an Apply to all from this merchant option, a Plaid suggests option and the list of categories.](https://magicbnb.io/help/expenses-category-picker.webp)

## Change every charge from a merchant

1. On the **Expenses** tab, switch the list to **By merchant**.
   ![The Expenses tab switched to By merchant, with a row per merchant and Set category and Always allocate buttons.](https://magicbnb.io/help/expenses-by-merchant.webp)
2. Choose **Set category...** (or **Change category...** if the merchant already has one) on that merchant.
3. Pick the category. Tick **Re-file its past charges too** if you want old charges updated as well. Charges you filed yourself stay as you filed them, and so do charges in months that are already final on an owner statement.
   ![The Categorize merchant dialog with a category menu and the Re-file past charges checkbox.](https://magicbnb.io/help/expenses-merchant-category-dialog.webp)
4. Choose **Save rule**. New charges from that merchant now arrive already categorized.

## Make a payee rule

A payee rule files every payment whose payee contains some text, such as a person's name. It works well for people you pay by bank transfer.

1. On **Transactions**, set a category on a charge. A banner appears asking **Always file payments to this payee this way?** Choose **Make it a rule**.
2. Or open the **Rules** tab and choose **New rule**. Fill in **When the payee contains**, **File it as**, **Money** (out or in) and **Category**, then **Save rule**.
   ![The New payee rule dialog with fields for When the payee contains, From account, File it as, Money and Category.](https://magicbnb.io/help/expenses-new-payee-rule.webp)

- The text needs at least 3 characters. Capital letters and extra spaces do not matter.
- You can limit a rule to one bank account.
- You can file the rule as a **Business expense**, a **Listing expense** (with a property, or **Allocate later**), or **My own transfer**.
- Pausing or deleting a rule leaves the payments it already filed as they are.

> Your hand edit beats every rule. A rule beats MagicBNB's automatic guesses. The **Rules** tab also lists **Learned from your edits**, where you can make one a rule or forget it.

**When it worked:** The charge shows its new category. After you save a rule, new charges from that merchant or payee arrive already categorized.

## If something goes wrong

- **A toast says "The category didn't save".** Try again. Open the charge to confirm what it shows before moving on.
- **The rule dialog says to use at least 3 characters.** A payee rule needs at least 3 characters of the payee name. Use more of the name.
- **Some past charges did not change after Re-file.** Charges you filed yourself or by a payee rule stay as you filed them, and so do charges in months already final on an owner statement.
- **The Expenses tab shows "These expenses aren't part of your role".** Seeing them takes both profit and transaction access. Ask the account owner.

Related: [How does MagicBNB categorize my expenses?](https://magicbnb.io/help/expenses/how-expenses-are-categorized) · [What expense categories does MagicBNB have?](https://magicbnb.io/help/expenses/expense-categories-list) · [What does "Uncategorized" mean on an expense?](https://magicbnb.io/help/profit/what-does-uncategorized-mean) · [How do I split one bill across several properties?](https://magicbnb.io/help/expenses/split-a-bill-across-properties)
