Profit Margin Calculator
Enter what a product costs you and the price you sell it for, and you get the profit, the margin and the markup. You can also start from the margin or markup you want to get the price, or from the price and margin to find the most you can pay.
Works anywhere in the world, wherever you are.
What it costs you: purchase, materials, shipping to your business.
Before sales tax.
Margin
40%
Markup: 66.67%
- Profit per unit
- $40.00
- Markup
- 66.67%
- Cost
- $60.00
- Price
- $100.00
Margin vs. markup
Margin = profit ÷ selling price
Markup = profit ÷ cost
Margin = $40.00 ÷ $100.00 = 40%
Markup = $40.00 ÷ $60.00 = 66.67%
Same profit, divided by two different bases. That is why markup is always higher than margin when there is a profit.
Works with any currency: the $ sign is only a label. Use cost and price per unit, without sales tax. The profit shown is gross: it does not subtract overheads such as rent, payroll or advertising.
Related tools
Break-Even Calculator
Money
How many units to sell to cover costs and hit your goal.
OpenPercentage Calculator
Math
Six modes: percent of, what percent, change and more.
OpenDiscount Calculator
Everyday
Sales, stacked coupons and the final price with tax.
OpenSales Tax Calculator
Money
Tax and total at any rate you enter, or in reverse.
OpenInvoice Generator
Work
Invoice, quote, receipt or pro forma as a PDF, with logo and taxes.
OpenAbout this calculator
Margin and markup are not the same
Both describe the same profit — price minus cost — but divide it by different bases. Margin is profit divided by the selling price: how much of each dollar you charge you keep. Markup is profit divided by cost: how much you added on top of what you paid.
That is why markup is always higher than margin when there is a profit, and mixing them up is the most common pricing mistake: add 30% to the cost expecting a 30% margin and your margin is actually 23.08%.
To convert: markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup), with the percentages written as decimals.
How each mode works
Cost and price: profit = price − cost; margin = profit ÷ price; markup = profit ÷ cost.
Cost and target margin: price = cost ÷ (1 − margin). It is not cost × (1 + margin): that sum gives a markup, not a margin.
Cost and markup: price = cost × (1 + markup).
Price and margin: maximum cost = price × (1 − margin). Useful for knowing how much you can pay a supplier when you already know what you will sell at.
Examples
A product that costs you $60.00 and sells for $100.00 leaves $40.00 of profit: a 40% margin and a 66.67% markup.
For a 40% margin on that same $60.00 cost, the price is 60 ÷ 0.60 = $100.00. If you add a 40% markup instead, the price is $84.00 and the margin stays at 28.57%.
If the market pays $100.00 for the product and you need a 25% margin, the most you can pay for it is $75.00, which is a 33.33% markup.
Rounding to cents
When the calculator works out a price, it shows it rounded to the cent, and that can move the margin slightly. A $25.00 cost at a 30% margin gives an exact price of 35.714…, charged as $35.71; at that price the actual margin is 29.99%. When this happens, the calculator says so under the price.
If the margin must not fall below the target, round the price up to the next cent or to a round price. The maximum cost, on the other hand, is rounded down, so the margin never ends up under the target.
Important limitations
- The profit is gross, per unit: it does not subtract overheads such as rent, payroll, advertising or payment fees. To see how many units you need to sell to cover them, use the Break-Even Calculator.
- Use cost and price without sales tax. The tax you collect from the customer is not profit: it is passed on to the government.
- Works with any currency; the $ sign is only a label.
- It does not account for discounts, returns or shrinkage. If you discount often, work the margin out from the price you actually charge.
Frequently asked questions
This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.