Contact, if you are interested in this website / domain name / Sponsorship / Advertisement / Partnership — web.works/contact
Home / Tools / Profit Margin & Markup Calculator
Business calculator

Profit Margin & Markup Calculator

Margin and markup describe the same profit from two different angles, and confusing them is one of the most expensive pricing mistakes a small business can make. Enter your cost and price to see both, then set a target margin to get the exact price you need.

Your numbers

$
$
%

Results update as you type. Nothing you enter leaves your browser.

Show the work

Email me this result

Get these numbers plus a short explanation in your inbox.

Want a second pair of eyes?

Our free Numbers Check-up turns these figures into a one-page review with the one number to fix first.

Get my free Check-up

How it works

Gross profit per unit is simply price minus cost. Margin divides that profit by the selling price; markup divides it by the cost. Because price is always bigger than cost when you make money, margin is always the smaller percentage. A product bought for $40 and sold for $65 earns $25 of profit: that is a 38.5% margin but a 62.5% markup.

The formulas

  • Gross profit = Price − Cost
  • Gross margin % = (Price − Cost) ÷ Price × 100
  • Markup % = (Price − Cost) ÷ Cost × 100
  • Price for a target margin = Cost ÷ (1 − target margin)
  • Convert: Markup = Margin ÷ (1 − Margin); Margin = Markup ÷ (1 + Markup)

Worked example

Your landed cost is $40 and you want a 45% gross margin. Price = 40 ÷ (1 − 0.45) = 40 ÷ 0.55 = $72.73. Many owners instead add 45% to cost and charge $58 — which only produces a 31% margin. On 1,000 units that gap is more than $14,700 of gross profit left on the table.

Mistakes to avoid

  • Using markup when your accountant reports margin. Financial statements, investors and lenders talk in margin.
  • Ignoring landed cost. Include freight, duties, packaging and payment fees in "cost".
  • Discounting off a thin margin. A 20% discount on a 30% margin product wipes out two-thirds of your profit per unit.
Rule of thumb: retail and e-commerce products commonly need 40–60% gross margin to cover marketing, returns and overhead; software often runs 70–90%. Benchmark against your own industry before setting prices.

Video: learn the concept

Embedded from YouTube; all rights belong to the creator.

Frequently asked questions

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 cost. A 50% markup equals a 33.3% margin.

What is a good profit margin?

It depends on the industry. Grocery can run on low single-digit net margins, while software gross margins are often above 70%. Compare with businesses that share your cost structure.

How do I price for a 40% margin?

Divide your cost by 0.60. For a $30 cost the price is $50.

Last reviewed 2026-11-15 · Editorial policy · Estimates only, not financial advice.

Free Numbers Check-up — a 1-page review of your business numbers.Get mine