Connect Xero to Openfolio and it imports your monthly Profit and Loss report, maps each account to 16 standard categories, and calculates five ratios: gross margin, operating margin, net profit margin, operating expense ratio and labor expense ratio. Your ratios are calculated privately in your workspace. Openfolio only reads the Profit and Loss report and basic company settings (currency and lock date) and never sees your Xero password.
Why benchmark your P&L
Xero’s Profit and Loss report gives you revenue, costs and profit for any period. On its own, it does not tell you whether a 38% gross margin is strong or weak, because that depends on your industry, your size and how your books are kept.
Benchmarking answers that question by placing your ratios against comparable businesses. To make the comparison fair, every business’s accounts are first sorted into the same standard categories and every ratio uses the same formula.
Xero added industry benchmarks to Xero Analytics in June 2026, comparing metrics such as gross and net margin with anonymised Xero businesses in the same industry and country. Openfolio is a separate tool: it maps your accounts into standard categories, calculates five monthly ratios and lets your accountant see the same numbers.
How the connection works
- Create a free workspace and choose your industry and annual revenue range.
- Choose Xero and sign in with Xero. You approve the connection on Xero’s own screen, which lists the view-only access Openfolio asks for.
- Choose cash or accrual basis and how many past months to import, up to 24.
- Openfolio imports the Profit and Loss report for each complete month and checks the report’s totals.
- Each account is mapped to one of 16 standard categories with a confidence score. You confirm anything below 0.80.
- Your five ratios are calculated. New months are imported automatically once a day.
The five ratios you get
Each ratio is a share of revenue for one complete month, using the definitions on the methodology page.
- Gross margin: revenue minus direct costs, divided by revenue. What is a good gross margin?
- Operating margin: profit from operations, divided by revenue.
- Net profit margin: profit after other income and expenses, divided by revenue. Operating vs net margin
- Operating expense ratio: overhead as a share of revenue.
- Labor expense ratio: direct labor and payroll as a share of revenue. How to calculate it
What Openfolio can and cannot see
Openfolio reads the Profit and Loss report and basic company settings (currency and lock date) and nothing else from your books. It does not import invoices, bank transactions, customer lists or payroll records, and it never sees your Xero password.
Openfolio asks Xero for view-only access. It reads the Profit and Loss report, basic company settings (currency and lock date) and the list of organizations you connected, so you can pick one. It cannot create, edit or delete anything in Xero.
The imported statement is encrypted and kept in your private workspace. No other business can see it. Your accountant sees it only if you grant access. Contributing ratios to peer benchmarks is a separate choice that starts switched off, and only the ratios themselves are ever contributed, never the statement.
You can disconnect at any time from your workspace. You can also disconnect Openfolio from the connected apps settings inside Xero.
Cash or accrual
Xero can run the same report on a cash or an accrual basis, and the two can show very different margins for the same month. Openfolio keeps them apart and only ever compares a statement with others on the same basis. If your accountant keeps your books on accrual, choose accrual. More on how comparisons work.
Xero’s Profit and Loss report does not confirm which basis it was run on. Until it does, Xero statements are analyzed privately in your workspace but are not used in peer benchmarks, because a comparison must never mix cash and accrual figures.
Other ledgers
If some of your history lives in another ledger, export it as a CSV in the documented format and upload it. Openfolio also connects QuickBooks Online.
Published October 29, 2026. General information, not accounting, tax or financial advice.