Calculate Gross Margin
Result—
Formula
(Revenue - Cost of Goods Sold) / RevenueExcel formula
=IFERROR((B2-C2)/B2,0)
Power BI DAX measure
Gross Margin =
DIVIDE(
[Revenue] - [Cost of Goods Sold],
[Revenue]
)
Enter your values to calculate Gross Margin. Use the formula and examples below for Excel, Google Sheets, Power BI, and dashboards.
Useful learning resources related to this page. As an Amazon Associate, this site may earn from qualifying purchases at no extra cost to you.
(Revenue - Cost of Goods Sold) / Revenue=IFERROR((B2-C2)/B2,0)
Gross Margin =
DIVIDE(
[Revenue] - [Cost of Goods Sold],
[Revenue]
)