Margin & Markup Calculator
Convert between cost, price, gross margin, and markup. Set a target margin and see the exact selling price, or check the margin on a price you already charge.
Margin = profit ÷ price. Markup = profit ÷ cost. The same sale always has a higher markup than margin.
Two ways to measure the same profit
Profit is the selling price minus the cost. Gross margin divides that profit by the price, so it tells you how much of each sales dollar is kept. Markup divides the profit by the cost, so it tells you how much you added on top of what you paid. Because price is larger than cost, margin is always the smaller percentage.
The conversion formulas
Markup = margin ÷ (1 − margin), and margin = markup ÷ (1 + markup). A 25% markup is a 20% margin. A 100% markup is a 50% margin. A 300% markup is a 75% margin. Memorizing a couple of these pairs helps you catch the most common pricing mistake, which is treating the two as interchangeable.
Pricing from a margin target
To hit a given margin, divide cost by (1 − margin). For a $12 cost and a 35% margin the price is 12 ÷ 0.65 = $18.46. The calculator does this in its target-margin mode and also shows the equivalent markup, so you can speak to both finance and sales.
What margin does not include
Gross margin counts only direct costs, such as materials, goods sold, and direct labor. It does not cover rent, marketing, salaries, or taxes. A healthy gross margin still has to be large enough to fund those, which is where the break-even calculator helps.
Typical ranges
Margins vary widely by industry. Grocery and fuel retail run on thin margins and high volume, while software and branded goods often carry much higher gross margins. Compare against your own sector rather than a generic target, and revisit prices when supplier costs change.
Frequently asked questions
What is the difference between margin and markup?▾
Both describe profit, but against different bases. Gross margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. A product that costs $60 and sells for $100 has a 40% margin and a 66.67% markup.
How do I price a product for a target margin?▾
Divide the cost by one minus the margin. For a 40% margin on a $60 cost: $60 ÷ (1 − 0.40) = $100. Do not simply add 40% to the cost, which would give $84 and a margin of only 28.6%.
How do I price for a target markup?▾
Multiply the cost by one plus the markup. A 100% markup on a $50 cost gives $50 × 2 = $100. That same sale is a 50% margin.
Why is markup always larger than margin?▾
They share the same profit in the numerator, but the cost in the markup denominator is smaller than the price in the margin denominator. Markup = margin ÷ (1 − margin), so a 20% margin equals a 25% markup and a 50% margin equals a 100% markup.
Which should I use, margin or markup?▾
Use margin for comparing profitability across products, reading financial statements, and setting targets as a share of revenue. Use markup when you build prices up from costs, which is common in retail. Just never mix the two when quoting numbers.
Guides that use this calculator
- Margin vs Markup: What's the Difference and Why It Costs Businesses Money
Margin and markup measure the same profit against different bases. Learn the formulas, the conversion between them, and how to price from a target margin.
Related calculators
Break-Even Calculator
Find how many units you must sell to break even, or to hit a profit target, from your fixed costs, price per unit, and variable cost per unit.
Discount & Sale Price Calculator
Find the sale price after a percentage discount, stack a second discount, add tax, or work out the percent off from an original and sale price.
Sales Tax Calculator
Add sales tax to a price, or work backwards from a tax-inclusive total to the pre-tax price and the tax paid. Works with any rate.
Investment ROI Calculator
Calculate total return and annualized return on an investment over any time period. Factors in additional contributions for accurate results.