Skip to content
YouNeed Tools
Free VPN

Profit Margin and Markup Calculator

Enter what something costs you and what you sell it for to see the profit, margin and markup, or set a target margin or markup and get the price to charge.

I want to find
Currency

Profit margin

38.46%

Price (before tax)

$65.00

Profit

$25.00

Margin

38.46%

Markup

62.5%

The formulas

  • Profit = price − cost
  • Margin = profit ÷ price
  • Markup = profit ÷ cost
  • Price for a margin = cost ÷ (1 − margin)
  • Price for a markup = cost × (1 + markup)

Because margin divides by the larger number (the price), it is always smaller than the markup on the same sale, and it can never reach 100%. Mixing the two up is one of the most common pricing mistakes.

Worked example

A candle costs you $40 to make and sells for $65. The profit is $25.00, the margin $25.00 ÷ $65 = 38.46% and the markup $25.00 ÷ $40 = 62.5%. To earn a 35% margin you’d price it at $40 ÷ 0.65 = $61.54; a 35% markup would only give $54.00. In the UK, a shelf price of £78 with 20% VAT is £65.00 before VAT, so the same £40 cost gives a margin of 38.46%, not the 48.72% you’d get by forgetting the VAT.

Margin and markup side by side

MarkupMarginPrice on a 100 cost
10% 9.09% 110.00
20% 16.67% 120.00
25% 20% 125.00
33.33% 25% 133.33
50% 33.33% 150.00
75% 42.86% 175.00
100% 50% 200.00
150% 60% 250.00
200% 66.67% 300.00

Keystone pricing, common in retail, means doubling the cost: a 100% markup and a 50% margin. A 40% margin needs a 66.67% markup.

What to include in the cost

  • Product cost: materials or wholesale price, plus inbound shipping and packaging.
  • Selling fees: marketplace and payment fees are often 5% to 15% of the price and can wipe out a thin margin.
  • Your time, if you make the product yourself.
  • Returns and discounts: a 10% discount on a 30% margin takes away a third of the profit.

Gross, operating and net margin

The calculator works out gross margin: sales minus the direct cost of what you sold. Operating margin also takes off running costs such as rent, wages, software and advertising, and net margin takes off interest and tax as well. A product can have a healthy 60% gross margin and still lose money if overheads eat the rest, so it helps to know roughly what share of each sale your fixed costs need. If your overheads are $3,000 a month and each sale makes $25 of gross profit, you need 120 sales a month just to break even.

For services, the “cost” is mostly your time. Put a value on each hour, include the hours spent on quotes, travel and admin, and treat that as the cost when you set a price for a job.

Related tools

Sources

Frequently asked questions

What is the difference between margin and markup?
Both compare profit with something else. Margin is profit as a share of the selling price; markup is profit as a share of the cost. Selling for $65 something that cost $40 is a $25 profit: a 38.46% margin but a 62.5% markup.
How do I calculate profit margin?
Margin = (price − cost) ÷ price × 100. Gross margin uses the cost of the goods themselves; net margin subtracts all running costs too, so it’s always lower.
How do I find a price from a target margin?
Price = cost ÷ (1 − margin). For a 35% margin on a $40 cost: $40 ÷ 0.65 = $61.54. Adding 35% to the cost instead gives only $54.00, a margin of 25.93%.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup); markup = margin ÷ (1 − margin). A 50% markup is a 33.33% margin, and a 50% margin is a 100% markup.
Should VAT or sales tax be included?
No. Tax you collect isn’t your money; you pass it on. Work out margins on prices without VAT or sales tax. If your price includes UK VAT at 20%, divide it by 1.2 first, which the calculator does when you tick the box.
What is a good profit margin?
It depends on the trade. Grocery stores often run on low single-digit net margins, while software and services can reach 20% or more. Compare yourself with businesses like yours, and make sure the margin covers your overheads.

Last updated: 2026-11-26