Profit Margin & Markup Calculator
Profit margin & markup calculator: get profit, margin and markup from cost and selling price, or the selling price that hits a target margin.
Gross margin
- Selling price
- $100.00
- Profit
- $40.00
- Gross margin
- 40%
- Markup on cost
- 66.67%
How to use the Profit Margin Calculator
- Choose Margin from price if you know the cost and the selling price, or Price for a target margin if you know the margin you want.
- Enter the cost of one unit: what you pay to buy or make it.
- Enter the selling price, or the target margin as a percentage.
- Read the profit, gross margin and markup. In target mode, the result is the price to charge.
Formula
Profit = S − C · Margin = Profit ÷ S × 100 · Markup = Profit ÷ C × 100 · S = C ÷ (1 − m ÷ 100)
Where:
- C
- Cost per unit (purchase price or cost to make)
- S
- Selling price per unit, excluding sales tax or VAT
- Margin
- Gross margin: profit as a percentage of the selling price
- Markup
- Profit as a percentage of the cost
- m
- Target gross margin in percent (must be below 100)
Gross margin only: overheads such as rent, wages, shipping and marketing are not deducted. Enter prices without sales tax or VAT.
Worked example
You buy a product for $45.00 and want a 30% gross margin. What should you charge?
- Selling price: 45 ÷ (1 − 30 ÷ 100) = 45 ÷ 0.70 = $64.2857…, which rounds to $64.29.
- Profit: 64.2857 − 45 = $19.29.
- Check the margin: 19.2857 ÷ 64.2857 × 100 = 30%.
- Markup on cost: 19.2857 ÷ 45 × 100 = 42.86%.
Charge $64.29 for a 30% margin, which is a 42.86% markup on cost.
Margin vs markup: same profit, two different bases
Margin and markup describe the same profit in money. They differ only in what that profit is divided by:
- Margin divides the profit by the selling price. It is the share of each sale you keep.
- Markup divides the profit by the cost. It is how much you added on top of what you paid.
A product that costs $25 and sells for $40 leaves $15 of profit either way. The margin is 15 ÷ 40 × 100 = 37.5%, and the markup is 15 ÷ 25 × 100 = 60%. Because the price is larger than the cost whenever there is a profit, markup is always the bigger percentage. Mixing the two up is one of the most expensive pricing errors, which is why the result shows both side by side.
How to calculate profit margin from cost and selling price
Choose Margin from price, enter what one unit costs you and what you sell it for, and read the profit, gross margin and markup. Two input choices decide whether the answer is honest:
- Leave tax out. Enter cost and price before sales tax, VAT or GST. Tax you collect is passed on to the tax authority and is not revenue.
- Use your landed cost. Include shipping, import duties and payment fees paid on each unit, or the margin will look better than it is.
The figure you get is a gross margin: price minus the direct cost of one product. Operating margin also subtracts overheads such as rent, wages and marketing, and net margin subtracts interest and income tax as well, so each is lower than the one before. Those need your full accounts; this page works on a single product's cost and price.
Selling below cost turns every figure negative. Clearing stock that cost $80 at $72 is an $8 loss, a margin of about −11.11% and a markup of −10%.
How to calculate the selling price for a target margin
Divide the cost by what remains after the margin: price = cost ÷ (1 − margin ÷ 100). A business that buys a handmade candle for $19.60 and wants a 65% margin calculates:
- Share of the price that covers cost: 1 − 0.65 = 0.35.
- Selling price: 19.60 ÷ 0.35 = $56.00.
- Profit: 56.00 − 19.60 = $36.40.
- Check: 36.40 ÷ 56.00 = 65% margin, and 36.40 ÷ 19.60 ≈ 185.71% markup.
Pricing from a markup uses a different formula, price = cost × (1 + markup ÷ 100), and the two give different prices for the same percentage. On a $60 cost:
| Target | Formula | Price | Margin | Markup |
|---|---|---|---|---|
| 40% markup | 60 × 1.40 | $84.00 | 28.57% | 40% |
| 40% margin | 60 ÷ 0.60 | $100.00 | 40% | 66.67% |
The Price for a target margin mode takes a margin, not a markup. If you price by markup, multiply by hand as above, or convert the markup to its margin first.
Margin to markup conversion chart
| Gross margin | Markup on cost | Price for a $100 cost |
|---|---|---|
| 10% | 11.11% | $111.11 |
| 20% | 25% | $125.00 |
| 30% | 42.86% | $142.86 |
| 40% | 66.67% | $166.67 |
| 50% | 100% | $200.00 |
| 60% | 150% | $250.00 |
The formulas behind the chart are markup = margin ÷ (100 − margin) × 100 and margin = markup ÷ (100 + markup) × 100. The price climbs steeply as the margin rises, and a margin can approach 100% but never reach it unless the cost is zero, so the target is capped just below 100%.
What is a good profit margin?
No single number fits every business. A gross margin is good when it covers your overheads and still leaves the net profit you need, and that level depends on the industry: a high-volume seller with low overheads can live on a thin margin, while a low-volume or service-heavy business needs a wide one. Useful comparisons are published gross margin benchmarks for your own sector, your own earlier periods and competitors' prices. If a supplier or benchmark quotes markup, convert it before comparing. Check discounts too: 20% off a product with a 37.5% margin leaves about 21.9%.
Assumptions and disclaimer
Each calculation covers one unit, with one cost and one selling price, and returns gross margin and markup only. Overheads, financing costs, discounts and income tax are not included, and results are rounded only for display. These are estimates for planning and education, not accounting or financial advice. Base important pricing decisions on your full costs.
Frequently asked questions
How do I calculate profit margin with cost and selling price?
Subtract the cost from the selling price to get the profit, divide by the selling price and multiply by 100. Cost $25 and price $40 gives a $15 profit and a 15 ÷ 40 × 100 = 37.5% margin. Enter both prices without sales tax or VAT, because collected tax is not your revenue.
How do I calculate the selling price with a profit margin?
Divide the cost by (1 − margin ÷ 100). For a 40% margin on a $60 cost: 60 ÷ 0.6 = $100. Adding 40% to the cost gives $84, which is only a 28.57% margin, a common and costly mistake. Choose Price for a target margin to get the figure directly.
How do I calculate markup percentage?
Subtract the cost from the selling price, divide the profit by the cost and multiply by 100. Cost $25 and price $40 is a $15 profit and a 15 ÷ 25 × 100 = 60% markup. To price from a markup, multiply the cost by 1 plus the markup as a decimal: a 60% markup on $25 is 25 × 1.6 = $40.
What is the difference between margin and markup?
Both describe the same profit, measured against different bases. Margin divides profit by the selling price; markup divides it by the cost. Buying at $60 and selling at $100 is a $40 profit, a 40% margin (40 ÷ 100) and a 66.67% markup (40 ÷ 60). Markup is always the larger number when there is a profit.
What is a good profit margin for a small business?
There is no single good figure. Gross margin has to cover overheads such as rent, wages, marketing and fees and still leave a net profit, and the level that does this differs widely between industries. Compare your margin with published benchmarks for your own sector and with your own earlier periods, not with a universal number, and check whether a quoted figure is margin or markup.
What is the difference between gross margin and net margin?
Gross margin subtracts only the direct cost of the product. Net margin also subtracts operating costs such as rent, salaries, marketing, interest and taxes, so it is always lower. This calculator works out gross margin per unit; use your income statement for net margin.
Related calculators
- Discount CalculatorDouble discount calculator: see the final price and your savings after one or two stacked discounts, or find the percent off between two prices.
- VAT CalculatorVAT calculator, inclusive and exclusive: add VAT or GST to a net price, or remove it from a gross price, at any rate you choose.
- Sales Tax CalculatorReverse sales tax calculator: split a total into price before tax and tax, or add sales tax to a price, at any rate.
- Percentage Change CalculatorA percentage change calculator between two numbers: the percent increase or decrease from old to new, or the percentage difference.
- Percentage CalculatorA percentage calculator: of a number, as a share of a total, or back to the whole from a part, with the formula shown.
Last updated: