Work out profit margin, markup and profit from cost and price, or find the selling price you need for a target margin or markup.
Margin = profit ÷ selling price. Markup = profit ÷ cost. Enter prices excluding VAT or sales tax for an accurate margin.
A margin calculator works out your profit margin, markup and profit from a product’s cost and selling price, or finds the selling price you need to hit a target margin. Choose what you know: cost and price, cost and margin, price and margin, or cost and markup. The calculator fills in the rest, and if you enter the number of units, it shows total revenue, cost and profit too.
For example, an item that costs 60 and sells for 100 makes a profit of 40. That’s a 40% margin but a 66.67% markup. To earn a 40% margin on something that costs 60, you need to sell it for 100, not 84 as many people guess.
Profit = selling price − cost
Profit margin = profit ÷ selling price × 100
Markup = profit ÷ cost × 100
Selling price for a target margin = cost ÷ (1 − margin)
Selling price for a target markup = cost × (1 + markup)
For the 60 cost and 100 price: profit is 40, margin is 40 ÷ 100 = 40%, and markup is 40 ÷ 60 = 66.67%. To get a 25% margin on a 75 cost, the price is 75 ÷ 0.75 = 100.
Margin and markup describe the same profit, but measure it against different numbers. Margin compares profit with the selling price, so it tells you what share of every sale you keep. Markup compares profit with the cost, so it tells you how much you’ve added on top of what you paid. Markup is always the larger number when you make a profit.
| Margin | Equivalent markup |
|---|---|
| 10% | 11.11% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100% |
| 60% | 150% |
To convert between them: markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup). A 50% markup is a 33.33% margin; a 100% markup (doubling the cost, sometimes called keystone pricing in retail) is a 50% margin.
Many business owners want a 40% margin and simply add 40% to the cost. On a 60 cost, that gives a price of 84 and a profit of 24, which is only a 28.57% margin. Over a year of sales, that gap can be the difference between a healthy business and one that struggles to cover its overheads. Always divide the cost by (1 − margin) to set a price for a target margin.
Profit can never be larger than the selling price, so a margin is always below 100% unless the product cost nothing. Markup has no upper limit: a product costing 10 and selling for 50 has a 400% markup but an 80% margin.
The calculator works out gross margin for a single product: price minus the direct cost of the product. Businesses also look at margins further down the income statement:
For example, a business with 500,000 in revenue and 300,000 of cost of goods sold has a gross profit of 200,000, a 40% gross margin. After 120,000 of operating expenses, operating profit is 80,000, a 16% operating margin. After 30,000 of interest and tax, net profit is 50,000, a 10% net margin. A product can have a healthy gross margin while the business as a whole loses money if overheads are too high.
For product margins, cost usually means everything it takes to get the product ready to sell: the purchase price or materials, inbound shipping, import duties, packaging and direct labour. If you sell online, it can make sense to include payment processing fees, marketplace commissions and fulfilment costs too, since they rise with every sale. The more complete your cost, the more realistic your margin.
Some costs are a percentage of the selling price rather than a fixed amount, such as marketplace commissions or card fees. Suppose an online seller’s product costs 14 to buy and ship in, the marketplace takes 15% of the selling price, and the seller wants a 30% margin after the fee. The fee and the margin together take 45% of the price, so the product cost must fit into the remaining 55%:
Price = 14 ÷ (1 − 0.30 − 0.15) = 14 ÷ 0.55 = 25.45
Check: the fee is 15% of 25.45, about 3.82, and what’s left after the 14 product cost is a profit of about 7.64, which is 30% of the price. If the seller had ignored the fee and priced for a 30% margin on cost alone (14 ÷ 0.7 = 20), the fee of 3 would cut the real margin to 15%.
Each sale’s profit, sometimes called its contribution, goes towards covering your fixed costs, such as rent, salaries and software. Dividing your fixed costs by the profit per unit gives the number of units you must sell to break even. With fixed costs of 10,000 a month and a profit of 40 per unit, you need to sell 250 units a month before you make any overall profit. Raising the margin even slightly lowers the break-even point, which is why small price rises or cost savings can have a big effect on a business.
It varies widely by industry. Supermarkets and fuel retailers often work on thin net margins of a few percent but sell in huge volumes. Software, consulting and luxury goods can have gross margins of 70% or more. Restaurants commonly aim for food costs of around 28% to 35% of menu prices, which means gross margins of about 65% to 72% on food. Compare your margins with businesses like yours, and track them over time: a falling margin is an early warning that costs are rising faster than prices.
In investing, “margin” also means money borrowed from a broker to buy securities, or the deposit required to open a leveraged position. That’s a different concept: buying 10,000 of shares with a 50% initial margin requirement means putting up 5,000 of your own money and borrowing the rest. This calculator covers profit margins for businesses, not trading margin.
The calculator works per unit with a single cost and price. It doesn’t include overheads, taxes, discounts or returns unless you build them into the figures. Use it for pricing and quick checks, and look at your full accounts for overall profitability.
Two other tools work well alongside this one: the discount calculator, to find the sale price and savings for any discount, and the percent off calculator, to find the sale price after a percent off.
Subtract the cost from the selling price, divide by the selling price and multiply by 100. Selling for 100 with a cost of 60 is a 40% margin.
Margin is profit as a share of the selling price; markup is profit as a share of the cost. A 40% margin equals a 66.67% markup.
Divide the cost by 0.7. A product costing 70 needs a price of 100 for a 30% margin.
No. A 50% markup gives a margin of 33.33%. For a 50% margin you need a 100% markup.
No. Profit can't exceed the selling price, so margin is always below 100% unless the cost is zero. Markup can be any size.
It depends on the industry. Net margins of 5% to 10% are common for many businesses, while software and services can have much higher gross margins.
No. Calculate margin on prices excluding tax, because the tax belongs to the government, not to your business.
Revenue minus the cost of goods sold, divided by revenue. It shows how much each sale contributes to overheads and profit before other expenses.
They come straight out of profit. On an item costing 60 and selling for 100, a 20% discount cuts the profit from 40 to 20 and the margin from 40% to 25%.