Gross Profit Margin
Gross profit margin is the percentage of revenue left after subtracting the cost of goods sold. It shows how efficiently your business produces and delivers what it sells.
Xero metric
Gross Profit Margin = (Revenue − COGS) / Revenue
Gross profit margin is the percentage of revenue left after subtracting the cost of goods sold. It shows how efficiently your business produces and delivers what it sells.
Full guide: definition, formula, and benchmarksHow to calculate Gross Profit Margin
Gross Profit Margin = (Revenue − COGS) / Revenue
Why Gross Profit Margin matters for Xero users
Gross profit margin is the ceiling for every downstream profitability metric. A compressing margin signals rising input costs, pricing pressure, or a shift in product mix towards lower-margin lines, any of which will eventually squeeze operating profit and cash flow.
For Xero users, tracking gross margin by tracking category or product line reveals exactly which parts of the business are earning their keep and which are dragging the overall number down.
Driver
Conversion rate
Outcome · 58% contribution
Revenue
Understand and act on Gross Profit Margin with KPI Tree
Query the Xero MCP profit and loss report or sync Xero revenue and cost of goods sold accounts into your warehouse and let KPI Tree calculate gross profit margin from the mapped accounts. Decompose the metric into revenue and COGS drivers, then further into product lines or tracking categories.
Assign ownership to your commercial lead and set alerts when margin deviates from its statistical baseline for two consecutive periods.
Get started with your Xero data
Pull metrics from Xero directly through the Model Context Protocol.
Connect your existing warehouse where Xero data already lands.
Our professional services team can build you turn-key AI foundations in a matter of weeks. Data warehouse on Snowflake/BigQuery, ELT with Fivetran, all modelled in dbt with a semantic layer.
Related Xero metrics Ready to add to your trees.
Total Revenue
AccountingTotal revenue is the sum of all income recognised across every income account over a period. It is the top line of the profit and loss statement and the foundation metric every other financial KPI depends on.
View metric
Operating Cash Flow
AccountingOperating cash flow measures the cash generated (or consumed) by the core trading activity of the business over a period. Unlike profit, it is not distorted by accruals, non-cash items, or timing of invoices.
View metric
Expense-to-Revenue Ratio
AccountingExpense-to-Revenue Ratio = Operating Expenses / Total Revenue
Expense-to-revenue ratio measures total operating expenses as a percentage of total revenue over the same period. It is a single-number summary of how operationally efficient the business is at each level of revenue.
View metric
Net Profit Margin
AccountingNet Profit Margin = Net Profit / Total Revenue
Net profit margin is the percentage of revenue that remains as profit after every operating expense, interest charge, and tax has been deducted. It is the cleanest single-number measure of overall business profitability.
View metricExplore Gross Profit Margin across integrations
All Xero metrics
Empower your team to understand and act on Xero data
Map what drives your metrics, measure progress at any grain, prove what works statistically, and deliver personalised action plans to every team member.