Margin Calculator formulas

Profit = Revenue − Cost

Margin percentage = Profit ÷ Revenue × 100

Alternative form:

Margin = (Revenue − Cost) ÷ Revenue × 100

Other useful formulas:

  • Revenue = Cost ÷ (1 − Margin ÷ 100)
  • Cost = Revenue − Profit
  • Profit = Revenue × Margin ÷ 100

Example

  • Cost: $60
  • Revenue: $100
  • Profit: $40
  • Margin: $40 ÷ $100 × 100 = 40%

User guide

  1. Enter any two of the following values:
    • Cost
    • Margin percentage
    • Revenue or selling price
    • Profit
  2. Enter the number of paying customers acquired from that campaign.
  3. To use a different pair, edit one of the calculated fields. The two most recently edited fields become the inputs.
  4. Click Calculate Margin to confirm the calculation.
  5. Review the margin summary, including:
    • Gross margin
    • Gross profit
    • Cost
    • Revenue
  6. Click Clear All to begin a new calculation.

Margin measures profit as a percentage of revenue. It differs from markup, which measures profit as a percentage of cost. For example, a 60% markup produces a 37.5% margin—not a 60% margin.

Margin Calculator
MARGIN

Margin, with confidence.

Enter any two values—cost, margin, revenue, or profit—and this margin calculator finds the other two instantly.

Enter any two values. Your two most recent edits are treated as the inputs.

To use a different pair, edit either calculated field. It will become one of the two inputs automatically.

Margin summary
— Gross margin
— Gross profit
Cost—
Revenue—
Profit—

Margin = (Revenue − Cost) ÷ Revenue × 100

What is a Margin Calculator?

A margin calculator finds your profit margin — the percentage of revenue that’s actual profit after cost. Enter any two of cost, revenue, profit, or margin and it works out the rest.

How to calculate margin ?

  1. Find your revenue: the total you sold the item for.
  2. Find your cost: what it took to produce or acquire it.
  3. Subtract cost from revenue to get profit.
  4. Divide profit by revenue, then multiply by 100.

Average gross margin by industry

INDUSTRY
MARKUP
GROSS MARGIN
Software (system & application)
71.72%
Retail — special lines (e.g. apparel)
35.30%
Business & consumer services
33.38%
Restaurants / dining
32.24%
Retail — distributors / wholesale
30.57%

Frequently asked questions

It varies by industry see the verified benchmark table above. As a rough guide, below 5% is thin and 20%+ is healthy for many businesses, but software and services run structurally higher than retail or restaurants.

Input cost and revenue in two cells, subtract to get profit, then divide profit by revenue and format as a percentage.

Related calculators