Profit margin is the single most important number in your business. Here’s the formula, the three types you need to know, and how to get it right every time.
The profit margin formula
Profit margin measures how much of every dollar of revenue you keep as profit. The formula is deceptively simple:
Profit margin = (Profit ÷ Revenue) × 100
Where profit is your revenue minus your costs, and revenueis the total sale price the customer paid you. Multiply by 100 to turn the decimal into a percentage. That percentage is what people mean when they say a business “runs on a 30% margin.”
A worked example
Gross vs operating vs net margin
“Profit margin” actually comes in three flavours, depending on which costs you subtract. Using the wrong one is how businesses convince themselves they’re profitable when they’re not.
Gross margin subtracts only the direct cost of goods sold (COGS) — the materials and the unit itself. It tells you whether the product makes money on its own.
Operating margin also subtracts operating expenses: rent, wages, software, marketing, shipping. It tells you whether the business makes money.
Net margin subtracts everything that’s left — taxes, interest, fees. It’s the bottom line, and the number investors and lenders care about most.
A product can show a great 64% gross margin and still leave you with a 5% net margin once rent, ads and taxes are paid. Always be clear about which margin you’re quoting.
The mistake that inflates most margins
By far the most common error is dividing profit by cost instead of by revenue. That gives you markup, not margin, and markup is always the bigger, friendlier-looking number. A seller who thinks they’re running a 50% margin when it’s really a 50% markup (33.3% margin) is quietly underpricing every order.
The second most common mistake, especially on marketplaces, is forgetting to count platform fees as a cost. On Etsy, Amazon or eBay, fees can eat 10–30% of revenue — enough to turn a comfortable margin into a loss. Our marketplace calculators build those fees in automatically.
Calculate it instantly
Rather than do the arithmetic by hand, the free profit margin calculator works it out in four different ways: from cost and markup, cost and sale price, cost and a target margin, or sale price and margin. Enter any two numbers and it fills in the rest — including the conversion between margin and markup that trips so many people up.
Profit margin = (profit ÷ revenue) × 100. Profit is your revenue minus costs, and revenue is the total sale price before any deductions. For example, if you sell an item for $50 and it cost you $30, your profit is $20 and your margin is ($20 ÷ $50) × 100 = 40%.
What's the difference between gross, operating and net margin?+
Gross margin only subtracts the direct cost of goods sold. Operating margin also subtracts operating expenses like rent, wages and marketing. Net margin subtracts everything, including taxes and interest, and is the truest measure of profitability. The same sale can show a healthy gross margin but a thin net margin once all costs are counted.
Is profit margin the same as markup?+
No. Margin is profit as a percentage of the sale price, while markup is profit as a percentage of the cost. A product bought for $10 and sold for $15 has a 50% markup but only a 33.3% margin. Confusing the two is one of the most common — and most expensive — pricing mistakes.
How do I calculate margin from cost and markup?+
First find the sale price: sale price = cost × (1 + markup ÷ 100). Then margin = (sale price − cost) ÷ sale price × 100. For a $10 cost with 50% markup, the sale price is $15 and the margin is 33.3%. The calculator on our homepage does this conversion instantly in either direction.
What counts as revenue when calculating margin?+
Revenue is the total amount the customer pays you for the sale, before you deduct any costs or fees. On a marketplace like Etsy or Amazon, remember that platform fees are a cost, not a reduction of revenue — so include the full sale price (and any shipping the buyer paid) as revenue, then subtract fees as a separate cost.
Can profit margin be more than 100%?+
No. Because margin is profit divided by the sale price, and profit can never exceed the sale price, margin maxes out just below 100%. Markup, on the other hand, has no ceiling — a $1 item sold for $10 has a 900% markup but a 90% margin.