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.
- Profit = revenue - cost.
- Margin = profit / revenue.
- 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.
| Margin | Costs subtracted | Profit | Margin |
|---|---|---|---|
| Gross margin | $300,000 cost of goods sold | $700,000 | 70% |
| Operating margin | plus $500,000 of operating expenses | $200,000 | 20% |
| Net margin | plus $50,000 of interest and tax | $150,000 | 15% |
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
- Dividing by cost. Profit divided by cost is markup. Margin always divides by revenue.
- 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.
- 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.
- 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.