KPI calculator

Gross Margin Calculator

Enter your values to calculate Gross Margin. Use the formula and examples below for Excel, Google Sheets, Power BI, and dashboards.

Affiliate resources

Ideas for You

Useful learning resources related to this page. As an Amazon Associate, this site may earn from qualifying purchases at no extra cost to you.

Calculate Gross Margin

Result

Formula

(Revenue - Cost of Goods Sold) / Revenue

Excel formula

=IFERROR((B2-C2)/B2,0)

Power BI DAX measure

Gross Margin =
DIVIDE(
    [Revenue] - [Cost of Goods Sold],
    [Revenue]
)

Read the complete Gross Margin formula guide →