Xero bank rules: how to set them up, examples, and why a rule isn't working
How Xero bank rules work: conditions, Any vs All, contacts, percentage splits, the reference, why a rule isn't working, and a worked quarter-end check.
Updated 24 November 2026
ReportPilot reads your Xero and emails you what your numbers mean every Monday. Try it free (14 days, no card)
Short answer: a bank rule tells Xero how to code bank statement lines that look alike: “anything containing AMPOL is fuel, GST on expenses, contact Ampol”. You make one from a statement line on the reconcile screen (Options > Create bank rule) or from the Bank rules list (search “bank rules” in Xero). There are three kinds: spend money, receive money and transfer. A rule has conditions (which lines it catches), a contact, the account lines (fixed amounts, then percentages of what is left), the reference and which bank accounts it applies to. When a new line fits, Xero fills in the coding and you click OK; it reconciles on its own only if Xero’s automatic bank reconciliation is switched on for that account. A rule cannot pay an invoice or bill or create an overpayment. Most “bank rule not working” problems are the condition: the text is in a different field than you think, it changes each month, or another rule or a match gets there first. The worked example checks a quarter of rule-coded lines before a BAS and finds $282.84 of GST.
Menu names move between Xero releases and differ a little by region. If a label below does not match your screen, search for “bank rules” in Xero’s menu.
How to create a bank rule in Xero
The quickest way is from a line you are about to reconcile, because Xero fills in a condition from that line.
- On the bank account’s Reconcile screen, find a line you want a rule for (a direct debit, a card payment, a regular transfer) and choose Options > Create bank rule. Or go to Bank rules and choose New rule, then spend, receive or transfer.
- Conditions. Xero suggests one from the line, often “Payee equals” the full bank text. Change it to Any text field contains and keep only the words that stay the same every month:
AMPOL, notAMPOL GEELONG 4471 03/10. The text must be one unbroken run of characters as it appears on the statement. - Any or All. If you have more than one condition, choose whether any or all must match. Xero’s updated rule screen defaults to Any, and Xero’s community team said in October 2022 that there were no plans to change it back. With two conditions, “Any” catches a lot more than you meant; see the worked example.
- Contact. Pick an existing contact or create a clean one (“Ampol”). The Payee option creates a contact from the raw bank text, which fills your contact list with names like “AMPOL GEELONG 4471” and splits your supplier report across them. Leaving the contact blank puts the spend in “no contact” on that report.
- Account lines. Optional fixed amount lines come first (a fixed $15 fee, for example), then percentage lines that share what is left and must add to 100%. Each line has an account, a tax rate, a description and, if you use them, tracking categories.
- Reference. Copy it from a field on the statement line, or leave it to type in during reconciliation. A fixed custom reference is not an option (Xero said in January 2026 it is not planned); put fixed text in the line description instead.
- Bank account. Apply the rule to all bank accounts, or one. A rule set to your business account does nothing on the credit card feed.
- Name the rule so you can find it later (“Fuel - Ampol”), and save.
A transfer rule codes a regular movement between two of your own accounts, such as a weekly sweep to a tax savings account. Receive money rules are for money in without an invoice: card terminal or online shop payouts, interest, a regular rent you receive.
What bank rules are useful for, and what they are not
Rules suit regular lines with no invoice or bill behind them: bank fees, fuel, subscriptions, rent and loan direct debits, card payouts, owner drawings and transfers.
They are the wrong tool when a document exists:
- A customer pays an invoice, or you pay a bill. Use Match, so the invoice or bill is marked paid. A rule would code the money to income or an expense a second time and leave the invoice in Aged Receivables.
- An overpayment or prepayment. A rule makes a plain spend or receive money transaction. Record an overpayment or prepayment from Receive money or Spend money, where they are options, so it sits against the contact for a later invoice.
- A loan repayment with changing interest. A fixed split goes out of date; the loan repayments guide shows the rule-plus-monthly-journal routine.
Why a Xero bank rule isn’t working
Work through these in order:
- There is a match. If Xero finds an invoice, bill or earlier transaction that looks like the line, it usually offers that on the Match tab. Look on the Create tab, or check the match is not the right answer.
- The text is in another field. Banks put the name in Payee, Description or Reference, and feeds change. Users report feeds where the payee is blank and everything is in one description. Any text field avoids most of this.
- The text changes. “CHARGES OCT” only matches in October; a store number or date in the condition only matches that store or that day. Shorten the condition to the part that never changes.
- “Equals” instead of “contains”. Equals needs the whole field to be identical, character for character.
- The rule is limited to another bank account. Check the bank account step.
- Another rule got there first. Xero suggests one rule per line; users report it is the first matching rule in your list. Make conditions specific enough that only one rule can fit, or use cash coding, where you can pick which rule to apply to selected lines.
- The line is a spend and the rule is a receive (or the reverse). Refunds from a supplier come in as receive money, so a spend rule will not catch them.
After fixing a rule, look at the lines still waiting on the Reconcile screen: the updated rule should now fill them in. Lines it already coded and you reconciled are not changed; recode those with find and recode.
Do bank rules reconcile automatically?
Not by themselves. A rule prepares the transaction and you click OK, which is also when you can spot that it has caught the wrong line. Xero’s automatic bank reconciliation (powered by JAX) can reconcile lines itself, using your bank rules, matches, what you did before and its own predictions, but only when it is highly confident. Xero’s Australian page says it is on Grow plans and above and a paid add-on for Ignite, and you switch it on or off for each bank account; Xero still called it a beta in August 2026. It is all or nothing per account: in October 2026 Xero acknowledged requests to choose which rules can auto-reconcile, with no date. So if you turn it on, the monthly check below matters more, because nobody clicks OK on each line.
Editing, finding and copying rules
- Edit or delete from the Bank rules list. Changes affect lines reconciled from then on, not transactions already reconciled.
- Find which rule coded a line: with automatic reconciliation on, Xero’s reconciled view shows whether each line was reconciled by a match, a rule, memory, a prediction or by hand. Either way, rule names that say what the rule does (“Fuel - Ampol”) make the list quick to read.
- Copy rules to another organisation: Xero has no copy or export. Its staff said in January 2026 it is not on the roadmap yet. Bookkeepers set them up per client, or use a third-party browser tool at their own risk.
- Who can create rules depends on the user’s role and bank permissions; see Xero user roles.
A worked example: a quarter’s bank rules checked before the BAS
These figures are made up. Marlo Rossi is a sole trader mobile mechanic in Geelong, registered for GST, lodging quarterly. Before the September quarter BAS, Marlo’s bookkeeper runs Account Transactions for July to September on the expense accounts, filtered to Spend Money, and reads the lines bank rules coded. Amounts include GST; GST is one eleventh.
Three rules are wrong:
1. The phone bill. The Telstra rule codes the whole bill to Telephone with GST on Expenses. Marlo uses the phone 70% for the business, and the private 30% is drawings with no GST. Three bills of $132 are 3 × $132 = $396. The rule claimed $396 ÷ 11 = $36.00 of GST. The business share is $396 × 70% = $277.20, so the right credit is $277.20 ÷ 11 = $25.20, and $118.80 belongs in Owner drawings. The rule over-claimed $36.00 − $25.20 = $10.80. Fix: two percentage lines, 70% Telephone (GST on Expenses) and 30% Owner drawings (BAS Excluded). See owner drawings in Xero.
2. Fuel. The Ampol rule was set up with the tax rate GST Free Expenses. The quarter’s fuel came to $1,980, so the missed credit is $1,980 ÷ 11 = $180.00. Fix: change the rule’s tax rate to GST on Expenses, then recode the quarter’s lines.
3. The loan rule set to Any. The van loan rule had two conditions, Any text field contains FINANCE or Amount equals 1,250.00, with Any left as the default. In August a $1,250 payment to the parts supplier matched the amount, was coded to the loan account, and was clicked through. Its GST credit of $1,250 ÷ 11 = $113.64 was missed, the parts cost of $1,250 − $113.64 = $1,136.36 is missing from the Profit and Loss, and the loan balance looks $1,250 lower than the lender’s statement. Fix: delete the amount condition, recode the payment to the supplier, and check the balance sheet reconciliation of the loan.
| Rule | What it did | GST credit change |
|---|---|---|
| Telstra | 100% business | −$10.80 |
| Ampol | GST Free | +$180.00 |
| Van loan (Any) | Caught a parts payment | +$113.64 |
| Net | +$282.84 |
The BAS claims $180.00 + $113.64 − $10.80 = $282.84 more GST credits than it would have. The Xero BAS report guide shows where those credits land on the return. Three wrong rules looked fine on the Reconcile screen, because every line had a contact and an account: rules make wrong coding look tidy.
A quarterly check for bank rules
- Run Account Transactions on your expense and income accounts for the period, source Spend Money and Receive Money, and scan the rule-coded lines for wrong tax rates and odd amounts.
- Look for rules with more than one condition set to Any.
- Check rules that split costs (phone, car, home office) still use the right percentages.
- Look at the “no contact” spend in the supplier report: those lines usually come from rules with no contact.
- Delete rules for suppliers you no longer use, so they cannot catch a new line by accident.
The Xero month-end checklist has the rest of the routine, and the suspense account guide covers a rule that keeps sending a supplier to Suspense.
Common questions
How do I set up a bank rule in Xero? On the Reconcile screen choose Options > Create bank rule on a line, or open Bank rules and choose a new spend, receive or transfer rule. Set the conditions (Any text field contains a word that never changes), the contact, the account and tax rate lines, the reference and the bank account, name it and save.
Why is my bank rule not working in Xero? Usually the condition does not match: the text is in a different field, it changes each month, or the rule uses “equals”. Also check the rule applies to that bank account, that it is the right type (spend or receive), and whether Xero is offering a match or another rule instead.
Do Xero bank rules reconcile automatically? No. A rule fills in the transaction and you click OK. Lines reconcile without a click only if Xero’s automatic bank reconciliation is switched on for that bank account, and then only when Xero is highly confident.
Can I set the reference in a Xero bank rule? Yes, from a field on the bank statement line, or to be typed during reconciliation. Xero does not offer fixed custom text for the reference; put fixed wording in the line description.
Can a bank rule handle an overpayment in Xero? No. A rule creates a spend money, receive money or transfer transaction. Record an overpayment or prepayment from Receive money or Spend money so it sits against the contact, and use Match for invoice and bill payments.
Can I split a transaction by percentage with a bank rule? Yes. Add fixed amount lines first if you need them, then percentage lines for what is left, adding to 100%. Each line can have its own account, tax rate and tracking.
Can I copy bank rules from one Xero organisation to another? Not in Xero itself. Rules are set up in each organisation; Xero has said copying is not on its roadmap yet.
Your coding, checked every Monday
ReportPilot reads your Xero figures and sends a short plain-English email every Monday: sales, costs and profit against last month and the same month last year, the cash in the bank, and bills due against that cash. It reads what you have reconciled, not your rules, so a rule that sends a cost to the wrong place shows up as a cost that jumped or vanished. It asks Xero for read-only access, and there is a 14-day free trial with no card.
No Xero needed
Get a sample Monday email for a business like yours
Pick your kind of business, rough sales and country. We email you the Monday email ReportPilot would write for a business like that: cash, sales and profit against last month, who owes money and one thing to do. Made-up figures, clearly labelled as a sample, from the same engine as the real one.
We email a link to confirm first; nothing else is sent until you press it. Then the sample, a few related emails over three weeks and a monthly cash check. One click to unsubscribe.
No need to wait for the email: read your sample now.