Gross Margin & Markup Calculator

Compare gross profit, margin, and markup from unit cost and selling price. Calculate the minimum selling price for a target gross margin or markup.

Calculate from

Pricing breakdown

Gross profit per unit
20.00
Gross margin
20%

Based on selling price

Markup
25%

Based on unit cost

Calculate gross margin and markup from cost and price

Enter the cost to buy or make one unit and what you sell it for, using the same currency. Use comparable figures, such as cost and price both excluding sales tax. The calculator shows gross profit or loss per unit and two ways to express that amount as a percentage.

  • Gross profit per unit = selling price − unit cost.
  • Gross margin (%) = gross profit ÷ selling price × 100.
  • Markup (%) = gross profit ÷ unit cost × 100.

If a product costs 80 and sells for 100, it earns 20 in gross profit per unit. The gross margin is 20% of the selling price, and the markup is 25% of the cost. The two rates describe the same sale using different denominators.

Find the selling price for a target margin or markup

Choose Target gross margin (%) to set what share of the selling price you want to retain as gross profit. The unrounded price is cost ÷ (1 − target margin ÷ 100). Choose Target markup (%) to add a percentage to your cost. The unrounded price is cost × (1 + target markup ÷ 100).

For example, an item that costs 10 needs a selling price of at least 14.29 to meet a 30% gross margin. A 30% markup on the same cost gives a price of 13. The calculator rounds a target price upward to a multiple of 0.01 and shows the rates achieved at that price.

Read losses, break-even, and zero values

Selling below cost gives a gross loss and negative rates wherever the denominator is positive. When selling price equals a positive cost, gross profit, gross margin, and markup are all zero. Gross margin is undefined at a zero selling price, and markup is undefined at a zero cost.

Use the gross profit to compare how much each sale contributes toward expenses. The calculation already accounts for the unit cost you enter. To estimate net profit, account separately for expenses such as selling fees, operating costs, and taxes.

Show more related tools