📈 Margin Calculator

Profit Margin Calculator

Calculate gross margin, markup, and profit from cost and revenue. Switch between finding margin, markup, revenue, or cost — the essential tool for pricing decisions.

Pricing Inputs

$
$
Gross Margin
Markup
Cost
Revenue
Gross Profit
Total Profit (×units)
Cost per Unit
Selling Price
Gross Profit per Unit
Gross Margin %
Markup %
Total Revenue (×units)
Total Cost (×units)
Total Gross Profit

FAQ

What is gross margin?
Gross Margin = (Revenue − Cost) / Revenue × 100. It expresses profit as a percentage of revenue. A 40% margin means 40 cents of every dollar of revenue is gross profit.
What is the difference between margin and markup?
Margin is calculated on selling price: Margin = Profit/Revenue. Markup is calculated on cost: Markup = Profit/Cost. A 40% margin equals a 66.7% markup (because $40 profit on $60 cost = 66.7% markup).
What is a good gross margin?
Depends heavily on industry: Software (70-80%+), Retail (25-50%), Manufacturing (20-40%), Grocery (15-30%), Restaurants (60-70% on food but low net). Compare against your specific industry benchmarks.
Why does margin matter more than markup for pricing?
Margin tells you what fraction of revenue is profit — the most useful metric for financial statements and comparisons. Markup helps set prices from cost. Both are needed; just do not confuse them.