Business & Pricing
Profit Margin Calculator
Find the gross margin on a product from its cost and selling price, or 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 it works
Gross profit margin is the share of the selling price you keep after paying for the item itself. It uses only two numbers, the cost and the price, so it tells you about the pricing of one product, not the profit of your whole business once rent, wages and other overheads are paid.
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
An item costs $64 and sells for $80. The profit is $16, so the margin is 16 ÷ 80 = 20% and the markup is 16 ÷ 64 = 25%. The other way round: to make a 20% margin on an $80 cost, price it at 80 ÷ 0.80 = $100, not $96, which is what adding 20% to the cost gives.
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% |
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.
Margin-to-markup table
A quick reference for converting common margins to the markup you'd need on cost.
Read before relying on it
Assumptions
- This is gross margin on one item: the selling price minus what the item cost you. 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 (the GST and VAT calculators can do that), 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%: a 100% margin would need an infinite price.
Questions
Frequently asked questions
Profit margin shows how much of each sale you keep as profit, as a percentage of the selling price. This calculator works out gross margin: the price minus the cost of the item, divided by the price. If you sell something for $80 that cost you $64, you keep $16, a 20% margin. It doesn't account for overheads, interest or tax, so it isn't the same as your business's net profit margin.
Both describe the same profit, measured against different things. Margin is profit as a share of the selling price, and 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% margin but a 25% markup. To convert, margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). A 20% margin needs a 25% markup, and a 50% margin needs a 100% markup. Mixing the two up is one of the most common pricing mistakes.
Divide your cost by (1 − the target margin). For a $80 cost and a 20% margin: 80 ÷ 0.80 = $100. 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. Choose “Find the selling price” in the calculator to do this directly. It rounds up to the next cent, so a $64 cost at a 35% margin gives $98.47 rather than $98.46, which would fall just short.
Gross margin looks only at the price 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. Net margin is always lower than gross margin. This calculator shows gross margin for a single item, which is the right figure for pricing decisions; your accounts show the net margin for the whole business.
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. Make sure you compare like with like: gross margin on a product isn't comparable with another business's net margin.
Use this one when you know the cost and the price and want the margin, or when you want the price that hits a target margin. Use the Markup Calculator when you price by adding a set percentage to your cost. It shows the selling price and the margin that markup gives you. To see how many sales you need to cover your fixed costs, use the Break-Even Calculator.
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.
