CalcTrace

Margin Calculator

Fill in any two of cost, selling price, gross margin and markup, and the calculator finds the other two along with the profit on each sale. It also shows the price you would need for a target margin, and how margin and markup line up at your cost.

Last updated .

Fill in any two

Leave the two you want worked out blank. Cost and price are for one unit and should both leave out any sales tax. A margin or markup can be negative when something sells below cost.

Optional. The calculator gives the price that would reach this margin at the cost above.

Result

Gross margin

–

–Cost
–Selling price
–Gross profit per unit
–Markup on cost

Where the selling price goes

    Margin and markup side by side

    Gross marginMarkupPrice at your costProfit
    Show the working

      Margin and markup formulas

      Margin and markup both describe the same thing, the gross profit on a sale, which is the selling price less what the item cost you. They differ only in what the profit is divided by. Margin divides it by the selling price. Markup divides it by the cost.

      Gross profit = P − C

      Gross margin (%) = (P − C) ÷ P × 100

      Markup (%) = (P − C) ÷ C × 100

      P is the selling price and C is the cost of the item, both for one unit and both without sales tax. Turned around, the same formulas give a price from a cost, or a cost from a price:

      P = C ÷ (1 − margin ÷ 100) = C × (1 + markup ÷ 100)

      C = P × (1 − margin ÷ 100) = P ÷ (1 + markup ÷ 100)

      Because the two percentages come from one profit figure, either can be converted to the other without knowing the cost or the price:

      Markup = margin ÷ (100 − margin) × 100

      Margin = markup ÷ (100 + markup) × 100

      Worked example

      1. Profit. An item costs $60 and sells for $100. The gross profit is $100 − $60 = $40.
      2. Margin. $40 ÷ $100 = 0.4, so the gross margin is 40%. Forty cents of every dollar of sales is left after paying for the item.
      3. Markup. $40 ÷ $60 = 0.6667, so the markup is 66.67%. The price is the cost plus two-thirds again.
      4. Check the conversion. 40 ÷ (100 − 40) × 100 = 66.67%, and 66.67 ÷ (100 + 66.67) × 100 = 40%.
      5. Price for a target margin. To earn a 50% margin on the same $60 cost, the price must be $60 ÷ (1 − 0.5) = $120. That is a markup of 100%.

      Margin is not markup

      The costly mistake is to want a 40% margin and add 40% to the cost. On a $60 item that gives $60 × 1.4 = $84. The profit is $24, and $24 ÷ $84 is a margin of 28.57%, not 40%. The price that really gives a 40% margin is $60 ÷ 0.6 = $100, so every unit priced the wrong way is sold $16 too cheaply.

      The gap exists because the two percentages have different bases. The cost is always the smaller number when there is a profit, so the same profit is a bigger percentage of it. For any profitable sale the markup is higher than the margin, and the gap widens quickly as the figures rise:

      The same profit expressed both ways
      Gross marginMarkupPrice of an item that costs $60
      10%11.11%$66.67
      20%25%$75.00
      25%33.33%$80.00
      30%42.86%$85.71
      40%66.67%$100.00
      50%100%$120.00
      60%150%$150.00
      75%300%$240.00

      Margin can never reach 100% while an item costs anything at all, because the profit is always less than the price. Markup has no ceiling. Something bought for $1 and sold for $100 has a margin of 99% and a markup of 9,900%. When you read or quote a percentage, say which one it is.

      Reading the result

      A discount comes straight out of the profit

      The cost does not move when the price is cut, so the whole discount is taken from the profit. Take 20% off the $100 item and it sells for $80. The profit falls from $40 to $20 and the margin from 40% to 25%. A one-fifth cut in price has halved the profit on each sale, so twice as many units have to sell to earn the same gross profit as before.

      Selling below cost

      If the $60 item sells for $50 there is a loss of $10. Both figures turn negative: the margin is −20% and the markup is −16.67%. The calculator accepts negative percentages for this reason.

      Leave sales tax out of both figures

      A sales tax, GST or VAT that you collect and pass on is not part of your revenue. Compare a price without the tax against a cost without the tax. A shelf price of $110 that includes a 10% tax is a selling price of $100 for this calculation.

      Gross margin is not what the business keeps

      The cost here is the direct cost of the item: what you paid for it, or the materials and direct labour that went into it. Rent, wages, freight out, card fees and every other overhead still have to be paid out of the gross profit. The calculator does not estimate those, and what counts as a direct cost varies between businesses, so use the same definition each time you compare two margins.