Profit margin calculator. Margin, profit and markup.

Profit margin is the share of revenue left after costs. Enter revenue and cost to calculate margin, profit and markup, or switch the calculator to find the selling price a target margin needs or the most you can spend.

By Brady Heinrich · Updated

Solve for

Cost of the goods for gross margin, or all costs for net margin.

Profit margin40%

You keep $0.40 of every $1 of revenue as profit.

Profit
$40.00
Markup
66.67%
The formula

Profit margin = (revenue - cost) / revenue x 100

A worked example

A product sells for $100 and costs $60. Profit is $100 - $60 = $40, and $40 / $100 = a profit margin of 40%. The markup on the same sale is $40 / $60 = 66.67%.

How to calculate profit margin

Subtract cost from revenue to get profit, divide profit by revenue, and multiply by 100. The formula works the same for one unit, using its price and cost, or for a whole company, using total revenue and total costs.

  1. Profit = revenue - cost.
  2. Margin = profit / revenue.
  3. Multiply by 100 to state it as a percentage.

The calculator also solves for the other two numbers:

  • Selling price = cost / (1 - margin / 100). To earn a 40% margin on a $60 cost, charge $60 / 0.60 = $100.
  • Highest cost = revenue x (1 - margin / 100). To keep a 40% margin on $100 of revenue, costs must stay at or under $60.

How to calculate margin at each level

Which margin you get depends on which costs you subtract. The three in common use take away more costs at each step, shown here for one company with $1,000,000 of revenue.

MarginCosts subtractedProfitMargin
Gross margin$300,000 cost of goods sold$700,00070%
Operating marginplus $500,000 of operating expenses$200,00020%
Net marginplus $50,000 of interest and tax$150,00015%

Put only the cost of delivering the product in the cost field to get gross margin, or every cost to get net margin. For gross margin on its own, with what counts as cost of goods sold, use the gross margin calculator.

How to read the result

A margin of 40% means 40 cents of every dollar of revenue is profit. Margin can never be more than 100%, because profit cannot be larger than revenue, and it turns negative when costs are higher than revenue.

Margin is not markup. Both start from the same profit, but margin divides it by the selling price and markup divides it by the cost. The $40 profit in the example is a 40% margin and a 66.67% markup. The calculator shows both, and the markup calculator converts one to the other.

What is a good profit margin?

A good profit margin is one that covers the costs below it with room to spare, and that depends on the business model more than on any average. These are rules of thumb, not benchmarks:

  • Compare like with like. Software has little cost per extra customer, so gross margins are high. Retail and services carry stock or labour in every sale, so they are lower. Judge a margin against the same kind of business.
  • Gross margin sets the ceiling. Every other margin is gross margin minus more costs. If gross margin is thin, no amount of cost control further down makes net margin healthy.
  • Watch the trend. A margin that slips a point each quarter says more than one that is level, whatever the starting number.
  • Check margin after acquisition costs. A healthy gross margin can still lose money if winning each customer costs too much. Compare it with your break-even point.

Common mistakes

  1. Dividing by cost. Profit divided by cost is markup. Margin always divides by revenue.
  2. Pricing with margin as if it were markup. Adding 40% to a $60 cost gives $84 and a 28.57% margin. A 40% margin needs a price of $100.
  3. Leaving costs out. Payment fees, shipping, returns, support and discounts all come out of the same revenue. A margin worked out on the supplier price alone is too high.
  4. Averaging margins. The margin across two products is total profit divided by total revenue, not the average of the two percentages, unless they sell in equal amounts.

How people search for a profit margin calculator

  • margin calculator110,000 a month
  • profit margin calculator22,200 a month
  • how to calculate margin14,800 a month
  • how to calculate profit margin14,800 a month

US monthly searches, Google Ads keyword data.

Questions

What is the profit margin formula?

Profit margin = (revenue - cost) / revenue x 100. With $100 of revenue and $60 of cost, the margin is $40 / $100 = 40%.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of cost. The same sale has a lower margin than markup: a 50% markup is a 33.33% margin.

How do I calculate a selling price from a margin?

Divide the cost by 1 minus the margin as a decimal. A $60 cost at a 40% margin is $60 / 0.60 = $100. Set the calculator to Selling price to do this.

Can profit margin be over 100%?

No. Profit is revenue minus cost, so it cannot be more than revenue and margin tops out at 100%. Markup has no upper limit.

What is the difference between gross and net profit margin?

Gross margin subtracts only the cost of goods sold. Net margin subtracts every cost, including operating expenses, interest and tax, so it is always the lower of the two.

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.