Free Profit Margin Calculator
Enter what an item costs you and what you sell it for, and this profit margin calculator shows your gross margin, your markup and your profit per unit in seconds.
Last updated 17 November 2026
Profit Margin Calculator
Cost and selling price give margin, markup and profit. Reverse mode gives the price for a target margin.
Gross margin only, on the cost you enter. Tax, fees, shipping and other running costs are not taken off here.
The Profit Margin Calculator answers the question every seller asks: after costs, how much of each sale do I actually keep. Type in your cost and your selling price and it shows your gross margin percent, your markup percent, your profit on one unit and your total profit for the quantity you sell.
How to Use This Tool
- Enter your cost and price: type what one unit costs you and the price you sell it for.
- Add a quantity: enter how many units you sell to see total profit as well as profit per unit.
- Read your margin: the results show margin percent, markup percent, profit per unit and total profit.
- Try the reverse mode: pick a target margin and the tool works out the price you need to charge.
How the Profit Margin Calculator Works
Margin and markup sound alike, but they divide by different numbers. Margin is profit divided by the selling price, so it tells you what share of each sale you keep. Markup is profit divided by the cost, so it tells you how much you added on top of what you paid.
The same sale can look very different either way. A cost of 60 and a price of 100 gives 40 profit, which is a 40 percent margin and a 66.7 percent markup. That is why suppliers who talk margin and sellers who talk markup can disagree about the same price, and why this page shows both numbers side by side.
The Formulas
Profit per unit equals selling price minus cost. Margin percent equals profit divided by selling price, times 100. Markup percent equals profit divided by cost, times 100. Total profit equals profit per unit times quantity.
The reverse mode turns the formula around. Price equals cost divided by one minus the target margin as a decimal. So a cost of 60 with a target margin of 40 percent needs a price of 100, because 60 divided by 0.6 is 100.
Margin, Markup and Discounts
This tool is about the price you charge, not about cutting it. If you want to work out a sale price after a percentage off, use the Discount Calculator instead, which cuts a price rather than building one up from cost.
Every result here is a gross margin on the cost you enter. It does not take off tax, fees, shipping or other running costs, so treat it as a starting point for pricing, not as your final net profit.
Why Use This Tool
- Both numbers at once: margin and markup side by side, so you never mix them up again.
- Reverse pricing: set the margin you want and get the price to charge.
- Quantity totals: profit per unit plus total profit for the units you sell.
- Private: the maths runs in your browser, so your costs never leave your device.
Frequently Asked Questions
Margin is profit divided by the selling price, times 100. Markup is profit divided by the cost, times 100. A 40 profit on a 100 price is a 40 percent margin and a 66.7 percent markup on a 60 cost.
Subtract the cost from the selling price to get the profit, divide the profit by the selling price, then multiply by 100. A cost of 60 and a price of 100 gives a profit of 40 and a margin of 40 percent.
Divide the cost by one minus the target margin as a decimal. For a cost of 60 and a target margin of 40 percent, divide 60 by 0.6 to get a price of 100.
No. A margin of 100 percent would mean the item cost nothing. The reverse mode caps the target margin at 99.9 percent, and a margin that high means almost the whole price is profit.
Then you are making a loss. The tool shows a negative margin, a negative markup and a negative profit per unit, so you can see exactly how much each sale loses.
No. The Discount Calculator cuts a price by a percentage. This tool works out the margin and markup on the price you charge, and the price a target margin needs.
Yes. It is free, with no signup and no install, and every calculation runs in your browser.
If you want to cut a price for a sale instead, try the Discount Calculator to work out the sale price and the saving.