↑↓ to move ↵ to open Esc to close Browse all tools

Profit Margin Calculator

Margin, markup and profit from cost and price, the selling price for a target margin, or the most you can pay for a product.

Embed

Your numbers

I know
$ What one unit costs you to buy or make, without VAT or sales tax.
$ The net price your customer pays.
Adds total revenue and total profit.
Profit margin
40.00%

CostProfit
Profit per unit
$40.00
Markup
66.67%

Runs on your device. Nothing you enter is sent to a server.

Saved you time? Buy me a coffee

Free printableFree Invoice TemplateA clean invoice in Word, Excel or PDF; the Excel version does the math. Hand-checked listFree Accounting SoftwareFree invoicing and bookkeeping software for freelancers and small businesses, web and open source, with each free plan checked.

Profit Margin Calculator by Freebiefy, free online tools · Privacy · Legal notice

Embed this tool on your site

Paste this code into your page. The tool runs in the visitor's browser, free and without signup. The height adjusts to the content. All tools you can embed

Profit margin and markup

Profit margin tells you which percentage of the selling price you keep as gross profit. Markup tells you how much you add on top of the cost. Both describe the same profit, just measured against a different number, which is why a 40% margin and a 40% markup lead to very different prices.

Spending on ads? The ROAS Calculator uses your margin to find the return you need to break even.

Margin
(Price − Cost) ÷ Price
Markup
(Price − Cost) ÷ Cost
Price for a target margin
Cost ÷ (1 − Margin)

Margin to markup table

Use this to translate between the two. If your supplier or your team talks in markup, this shows the margin you actually end up with. To turn a cost and a markup into a selling price, use the markup calculator; to see how many sales cover your fixed costs, use the break-even calculator. To see how many sales you can lose after raising prices and still keep the same gross profit, use the price increase calculator.

MarginMarkupPrice for a $60 cost
10%11.1%$66.67
20%25.0%$75.00
25%33.3%$80.00
30%42.9%$85.71
40%66.7%$100.00
50%100.0%$120.00
60%150.0%$150.00
75%300.0%$240.00

How to use the profit margin calculator

  1. 1Pick what you know: cost and selling price, cost and the margin you want, or the selling price and the margin.
  2. 2Enter the numbers per unit, all without VAT or sales tax.
  3. 3Read the margin, markup, profit or the price you need. Add units sold to see the total revenue and profit for a month or a batch.

Frequently asked questions

What is the difference between margin and markup?

Both compare profit, but with a different base. Margin divides profit by the selling price, and markup divides it by the cost. A product that costs $60 and sells for $100 has a 40% margin and a 66.7% markup. Margin can never reach 100%. Markup can be any size.

How do I calculate the selling price for a target margin?

Divide the cost by 1 minus the margin as a decimal. For a 40% margin on a $60 cost: 60 ÷ (1 − 0.40) = $100. Adding 40% to the cost instead gives only $84, which is a 28.6% margin.

Is this gross margin or net margin?

It is the gross margin of whatever you enter as cost. Enter only the product or purchase cost for the gross margin. Add your share of shipping, fees and overhead to the cost to get closer to net margin.

Should prices include VAT or sales tax?

No. Use net prices without VAT or sales tax for both cost and selling price. Otherwise, the margin looks higher than the money you actually keep.

What is a good profit margin?

It depends on the industry. In NYU Stern professor Aswath Damodaran's January 2026 data for US companies, grocery and food retailers averaged a gross margin of about 26% and a net margin of about 1.3%, while system and application software companies averaged a gross margin of about 72%. Compare with businesses like yours, not with an average.