Business & Pricing
Profit Margin Calculator
A gross profit margin calculator: find the margin from a cost and a selling price, or from sales revenue and cost of goods sold, and the selling price you need to hit a target margin.
What do you want to find?
Your results will appear here
Enter the cost and the selling price. The margin updates as you type.
The method
How to calculate profit margin
Gross profit margin is the share of the selling price you keep after paying for what you sold. It uses two numbers, the cost and the price, for one product, or sales revenue and cost of goods sold for a whole period. Rent, wages and other overheads come out later, in the net margin.
There are two ways to use the calculator. Find the margin takes your cost and selling price and shows the margin, the markup and the profit per sale. Find the selling price works the other way: enter your cost and the margin you want, and it gives the price, using cost ÷ (1 − margin), rounded up to the next cent.
The formulas
Margin = (price − cost) ÷ price
Markup = (price − cost) ÷ cost
Price = cost ÷ (1 − margin)
Worked example: one product
An item costs $64 and sells for $80. The profit is $16.00, so the margin is 16 ÷ 80 = 20.00% and the markup is 16 ÷ 64 = 25.00%. To make a 20% margin on an $80 cost, price it at 80 ÷ 0.80 = $100.00, not $96.
Worked example: a year's sales
$250,000 of sales and $150,000 cost of goods sold: gross profit $100,000.00, a 40.00% gross margin. After $70,000 of other running costs, profit is $30,000.00, a 12.00% net margin before tax.
Margin to markup at a glance
| Margin | Markup needed |
|---|---|
| 10% | 11.11% |
| 20% | 25.00% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100.00% |
| 60% | 150.00% |
Price for a target margin on a $50 cost
| Target margin | Selling price |
|---|---|
| 20% | $62.50 |
| 30% | $71.43 |
| 40% | $83.34 |
| 50% | $100.00 |
| 60% | $125.00 |
Margin, markup or break-even? If you price by adding a percentage to your cost, use the Markup Calculator. Our guide to markup vs margin explains why the two numbers differ. To see how many sales cover your fixed costs, use the Break-Even Calculator, and to take VAT or GST out of a price first, the VAT Calculator.
What you get
Key features
Margin and markup together
See profit as a share of the selling price (margin) and as a share of the cost (markup), clearly labelled so they aren't confused.
Price for a target margin
Enter your cost and the margin you want, and get the selling price, rounded up so you don't fall short.
Losses and break-even
A price below cost shows a negative margin in red, and a price equal to cost is labelled break-even.
Product or whole business
Use one item's cost and price, or a period's sales revenue and cost of goods sold: the gross margin formula is the same.
Read before relying on it
Assumptions
- This is gross margin: the selling price (or sales revenue) minus the cost of what was sold. Overheads such as rent, wages, marketing, interest and tax aren't included, so it isn't your net profit margin.
- Enter prices before sales tax. If your price includes GST or VAT, remove the tax first, or the margin will look higher than it is.
- In target-price mode, the price is rounded up to the next cent, so the margin at that price is never below your target.
- A cost of $0 gives a 100% margin. Markup isn't defined in that case, because it divides by the cost. Target margins must be below 100%.
Questions
Frequently asked questions
Take the cost away from the selling price, divide by the selling price and multiply by 100. An item that costs $64 and sells for $80 makes $16 profit, and 16 ÷ 80 × 100 = 20.00%. For a whole business, use sales revenue and the cost of goods sold for the same period instead.
Gross profit margin = (revenue − cost of goods sold) ÷ revenue × 100. With $250,000 of sales and $150,000 cost of goods sold, gross profit is $100,000 and the gross margin is 40.00%. Enter the cost of goods sold as the cost and the revenue as the selling price in the calculator.
Gross margin looks only at revenue and the direct cost of what you sold. Net margin is what's left after every expense, including rent, wages, marketing, interest and tax, divided by revenue. In the example above, $70,000 of other running costs bring the 40.00% gross margin down to 12.00% before tax. Net margin is always lower than gross margin.
Divide your cost by (1 − the target margin). For an $80 cost and a 20% margin: 80 ÷ 0.80 = $100.00. A common mistake is to add the margin percentage to the cost instead: $80 plus 20% is $96, which is only a 16.67% margin. The calculator rounds up to the next cent, so a $64 cost at a 35% margin gives $98.47.
No. Margin is profit as a share of the selling price; markup is profit as a share of the cost. On an item that costs $64 and sells for $80, the $16 profit is a 20.00% margin but a 25.00% markup. Markup is always the higher number. The table on this page converts common margins to the markup they need.
It depends heavily on the industry and business model, so the useful comparison is with similar businesses and with your own past results. Businesses that sell high volumes at low prices often work on thin margins, while those with low costs for each extra sale can run much higher ones. Compare like with like: gross margin on a product isn't comparable with another business's net margin.
Related Articles
Keep going
Related calculators
- Markup CalculatorMarkup from cost and price, or the price for a target markup
- Break-Even CalculatorUnits you need to sell to cover your costs, and to reach a profit target
- Revenue CalculatorTotal revenue from units sold and price, compared with a previous period
- Cost CalculatorTotal fixed and variable costs for a period, and the cost per unit
- Discount CalculatorSale price, stacked discounts, original price and percent off
More tools like this are in Business Calculators.
Where this comes from
Sources
Standard formula, see How it works.
Last reviewed: October 2026. Built and maintained by FinCalcBox; see About.
