Gross Margin Calculator
Calculate gross margin amount and percentage from net sales and COGS.
Formula
Gross Margin Amount = Net Sales − COGS Gross Margin % = Gross Margin Amount ÷ Net Sales × 100
Gross margin is what remains from net sales after paying for the goods sold. Gross margin % expresses it as a share of sales, which makes it comparable across products, categories and periods.
Gross margin % is calculated on the selling price. It is not the same as markup %, which is calculated on cost — see Gross Margin vs Markup.
Assumptions
- Net sales are after discounts and returns, and exclude sales taxes such as VAT or GST.
- COGS relates to the same units and period as the sales.
- When net sales are zero, gross margin % cannot be calculated and is shown as not available.
Worked example: A month of trading
- Net sales: $100,000
- COGS: $58,000
- 100,000 − 58,000 = 42,000
- 42,000 ÷ 100,000 × 100 = 42
Gross margin = $42,000 (42.0%)
Illustrative figures for demonstration only.