Profit Margin Calculator
Solve for whichever number you don’t have — margin, selling price, or cost — instead of only running the math one direction. Enter any two of the three and get the third instantly.
Quick markup ↔ margin converter
These get confused constantly — they’re not the same percentage. Convert one to the other here.
| Units sold | Revenue | Total profit |
|---|
How to calculate profit margin
Profit margin answers one question: of every dollar a sale brings in, how much is actually profit? The formula depends on which number you already know and which one you’re solving for — this calculator handles all three directions, not just the one most tools default to.
Margin % = (Price − Cost) ÷ Price × 100
Know cost and target margin → find price:
Price = Cost ÷ (1 − Margin %)
Know price and target margin → find max cost:
Cost = Price × (1 − Margin %)
That second formula — dividing by (1 − margin), not multiplying by (1 + margin) — is the single most common mistake in margin math. Multiplying by 1.40 to “add a 40% margin” actually produces a 28.6% margin, not 40%, because it calculates markup, not margin. The converter above exists specifically because this mix-up is so common.
Something costs you $60 to produce and you want a 40% margin. Price = $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. Check it: profit is $40, and $40 ÷ $100 = 40% margin — correct. Multiplying $60 by 1.40 instead would have given you $84, which is actually only a 28.6% margin.
What’s a good profit margin?
It depends entirely on what you’re selling — there’s no single “good” number that applies everywhere. Here’s roughly how margin expectations shift by business type:
Compare your margin against your own category, not a universal benchmark — a 45% margin is strong for a physical product business and a warning sign for a course business, where near-zero production cost should put you far higher.
Margin vs. markup — the difference that trips everyone up
Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. Same dollar amount of profit, two different percentages, because the denominator changes. A $40 profit on a $100 sale ($60 cost) is a 40% margin — but it’s also a 66.7% markup ($40 ÷ $60). They’ll never be equal except at very small percentages, and the gap widens the higher the percentage goes, which is exactly why “add a 50% markup” and “hit a 50% margin” land on completely different prices.
Frequently asked questions
The Gross Profit Calculator handles platform fees, payment processing, and refund rate automatically — the real costs behind a digital sale.
Related guides:
