TikoTools

Profit Margin Calculator – Margin, Markup & Selling Price

Enter your cost and selling price to get profit, gross margin and markup — or enter a cost and a target margin or markup to find the price to charge. A table shows the price needed for common margins so you can set prices with confidence.

Formula checked 23 Oct 2026 Free · no sign-up
Was this calculator helpful?

Found a bug or have a suggestion?

Leave it here and we will fix it and reply to you.

Embed this calculator on your website (free)

Copy this code into your page. It stays free and updates automatically.

How to use the profit margin calculator

  1. Choose what you know: cost and price, cost and target margin, cost and markup, or price and margin.
  2. Enter the numbers. Cost should include everything it takes to get the product ready to sell: purchase price, inbound shipping and packaging.
  3. Optionally enter the number of units to see total revenue and total profit.

The formulas

Profit = Price − Cost Margin = Profit ÷ Price × 100 Markup = Profit ÷ Cost × 100 Price from margin = Cost ÷ (1 − Margin) Price from markup = Cost × (1 + Markup)

Worked example

You buy a product for $60 and sell it for $100:

  • Profit = $100 − $60 = $40
  • Margin = 40 ÷ 100 = 40%
  • Markup = 40 ÷ 60 = 66.7%

If you wanted a 50% margin instead, the price would be 60 ÷ 0.5 = $120.

Margin vs markup table

MarginEquivalent markupPrice for a $10 cost
10%11.1%$11.11
20%25%$12.50
25%33.3%$13.33
30%42.9%$14.29
40%66.7%$16.67
50%100%$20.00
60%150%$25.00
75%300%$40.00

The most common pricing mistake

Many sellers add a percentage to cost and think of it as their margin. Adding 30% to a $10 cost gives $13, but the margin is only 3 ÷ 13 = 23%. If your business needs a 30% margin to cover overheads, you must charge $14.29, not $13. Always decide on the margin first and work the price out with Cost ÷ (1 − Margin).

Remember all the costs

  • Marketplace and payment fees: Amazon, Etsy, eBay, Shopify Payments and card processors take a percentage of the price, which lowers your real margin.
  • Shipping and returns: free shipping is a cost you pay; returns and damaged stock reduce average profit.
  • Discounts: a 20% off sale on a product with a 40% margin cuts profit per unit in half.
  • Overheads: rent, wages and software are covered by gross profit — use the break-even calculator to see how many units you need to sell.

Using margin to price services

The same maths works for freelancers and service businesses. Treat your cost as the time you spend multiplied by the hourly pay you want, plus any materials or subcontractors, then add the margin needed for unbilled time, software, insurance, taxes and profit. A designer who wants $40 an hour for 10 hours of work and a 35% margin should quote 400 ÷ 0.65 = $615, not $400 plus 35% ($540). Checking the margin on each quote before you send it avoids jobs that keep you busy but earn little, and makes it easy to see how much room you have to offer a discount.

Frequently asked questions

How do I calculate profit margin?

Profit margin = (Price − Cost) ÷ Price × 100. An item that costs $60 and sells for $100 has a $40 profit and a 40% gross margin.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. The same $40 profit on a $60 cost and $100 price is a 40% margin but a 66.7% markup. Markup is always the larger number.

How do I find the price for a target margin?

Price = Cost ÷ (1 − Margin). For a 40% margin on a $60 cost: 60 ÷ 0.60 = $100. Note that you cannot have a margin of 100% or more.

How do I convert markup to margin?

Margin = Markup ÷ (1 + Markup). A 50% markup equals a 33.3% margin. Going the other way, Markup = Margin ÷ (1 − Margin), so a 25% margin is a 33.3% markup.

What is a good profit margin?

It depends on the industry. Grocery stores often run gross margins of 25–30%, restaurants 60–70% on food cost, and software companies 70–90%. Compare yourself with businesses like yours, and remember gross margin must also cover overheads.

What is the difference between gross and net margin?

Gross margin uses only the direct cost of the product. Net margin subtracts every expense — rent, wages, marketing, interest and tax — so it is much lower.

How we checked this calculator

We test this tool against worked examples before every release (last check: 23 Oct 2026, version 1.0.0). Results are estimates for planning — confirm critical figures with your supplier or a qualified professional.

References: