Margin vs Markup Calculator

See your gross margin and markup side by side, and the price you need to hit a target margin.

$
$
%

Results

Gross margin—
Markup—
Gross profit per unit—
Price for target margin—

How it's calculated

Gross margin = (Price − cost) ÷ price Markup = (Price − cost) ÷ cost Price for a target margin = Cost ÷ (1 − target margin)

Want the full worksheet? The Small Business Budget vs Actual template does this and more in Excel or Google Sheets, with room for your real numbers.

See the template

Margin and markup are not the same

Both describe the gap between what something costs and what it sells for, but they divide by different numbers:

  • Markup divides profit by cost. Buy for $60, sell for $100, and the markup is 67%.
  • Margin divides profit by price. The same item has a 40% gross margin.

Mixing them up is one of the most common pricing mistakes. If you want a 40% margin and add 40% to cost, you end up with a 28.6% margin, and over a year that difference can wipe out most of your profit.

Pricing to a target margin

To hit a target margin, divide cost by one minus the margin. For a 45% margin on a $42 item: $42 ÷ 0.55 = $76.36. The calculator does this in the last result line. Working from margin keeps your pricing tied to the number on your income statement.

Quick conversion table

Common pairs to keep in mind: a 25% markup equals a 20% margin; 50% markup equals 33.3% margin; 100% markup equals 50% margin; 150% markup equals 60% margin. Markup is always the larger number, because cost is always smaller than price.

Which costs belong in "cost"

Use the full landed cost of the item: the purchase price plus freight in, duties, and packaging. For a service, use the direct labor and materials to deliver it. Overhead like rent and salaries does not go here; it is covered by gross profit and shows up in your break-even.

Why margin matters to lenders

Gross margin is one of the first numbers a lender or financing partner checks. Purchase order funders usually want 20% or more, and a falling margin across years raises questions in any credit review. Track it monthly and investigate any drop.

Frequently asked questions

What is the difference between margin and markup?

Markup is profit divided by cost. Margin is profit divided by selling price. The same sale always has a higher markup percentage than margin percentage.

How do I convert markup to margin?

Margin equals markup divided by one plus markup. A 50% markup is 0.5 ÷ 1.5, or a 33.3% margin.

How do I price for a 50% margin?

Divide the cost by 0.5, which doubles it. A $30 cost needs a $60 price for a 50% margin.

What is a good gross margin?

It varies widely by industry. Distributors may run 15% to 30%; software and services can exceed 60%. Compare to your own history and industry peers.

This calculator gives estimates for education and planning. It is not financial, legal or tax advice, and it is not an offer of credit. Actual terms come from your lender or provider. Last reviewed 2026-11-16.