Business

Gross Margin Calculator

Enter revenue and cost of goods sold to calculate gross margin %, gross profit, and markup percentage.

Updated June 2026 · Editorial standards

Revenue & Costs

$
$
Gross Margin
40.00%
Gross Profit
$200,000
Markup
66.67%
COGS Ratio
60.00%

Revenue of $500,000 minus COGS of $300,000 = gross profit of $200,000 (40.00% margin).Gross margin varies widely by industry: software/SaaS 70-90%, retail 20-50%, manufacturing 30-50%, restaurants 60-70% (before labor). Always compare against industry benchmarks.

By the KalkWise Editorial Team Reviewed for accuracy Updated June 2026

What is the gross margin calculator — profit margin & markup?

In short

Gross margin = (revenue − COGS) ÷ revenue × 100. A business with $500K revenue and $300K COGS has a $200K gross profit and 40% gross margin. SaaS companies average 70%+; retail averages 25–35%.

Calculates gross profit, gross margin percentage, markup percentage, and COGS ratio from revenue and cost of goods sold.

How to use this calculator

  1. 1Enter total revenue (net sales).
  2. 2Enter total cost of goods sold (COGS) — direct costs of producing/purchasing what you sell.

The formula

Gross Profit=RevenueCOGS
Gross Margin %=Gross ProfitRevenue×100
Gross Profit = R − C; Gross Margin % = (R − C) ÷ R × 100; Markup % = (R − C) ÷ C × 100
R
Revenue
C
COGS

Worked example

The scenario

$500,000 revenue, $300,000 COGS.

gives

The result

Gross profit: $200,000. Gross margin: 40%. Markup: 66.7%. COGS ratio: 60%.

Common use cases

  • Track gross margin trends over time.
  • Compare gross margin to industry benchmarks.
  • Evaluate pricing and cost control decisions.
  • Model impact of price increase or COGS reduction on profit.

Limitations & assumptions

  • Gross margin only covers direct costs — operating expenses (salaries, rent, marketing) reduce this to operating margin.
  • COGS definition varies by business — ensure consistency for meaningful comparisons.
  • High gross margin doesn't guarantee profitability if operating expenses are high.
  • Industries have very different gross margin norms — compare within industry.

Frequently asked questions

Software/SaaS: 65–80%. Financial services: 60–75%. Healthcare services: 40–60%. Retail: 25–35%. Grocery: 25–30%. Restaurants: 60–70% food margin, 30–40% beverage. Manufacturing: 25–40%. Always compare within your industry.

Disclaimer: KalkWise calculators are provided for general informational and educational purposes only and do not constitute financial, investment, tax, or legal advice. Results are estimates based on the figures you enter and the assumptions described above. Actual outcomes will vary. Consult a qualified professional before making financial decisions.