Margin and markup calculator

Enter what you know (cost and margin, cost and markup, or cost and price) and see the selling price, the profit per unit, and both percentages side by side.

I know

Result

Selling price

$100.00

Margin 25% · markup 33.33%

Breakdown
Cost$75.00
Profit$25.00
Selling price$100.00
  • A margin of 25% is the same as a markup of 33.33%: margin is profit divided by the price, markup is profit divided by the cost.
  • Sales tax is not included: it is added on top of the selling price.

Last updated:

How it works

Margin is profit divided by the selling price. Markup is profit divided by the cost. From a cost and a target margin, price = cost / (1 - margin). From a cost and a markup, price = cost x (1 + markup). From a cost and a price, profit = price - cost, margin = profit / price and markup = profit / cost. Prices are rounded to the cent, and the profit shown is the rounded price minus the cost, so the rows always add up.

Example with the starting values: an item that costs $75 and needs a 25 % margin sells for $75 / 0.75 = $100.00. The profit is $25.00, which is 25 % of the price and 33.33 % of the cost, so the same price is a 33.33 % markup.

Pricing goes wrong most often in one place: someone wants a “30 % margin” and adds 30 % to the cost. That gives a 30 % markup, and the margin ends up near 23 %. This calculator keeps the two terms apart. Pick what you know, type the cost, and it shows the selling price, the profit per unit, and both the margin and the markup for that price.

Margin vs. markup

Both numbers start from the same profit per unit (price minus cost). They only differ in what that profit is divided by.

  • Margin = profit / selling price. It answers: of every dollar a customer pays, how much is profit?
  • Markup = profit / cost. It answers: how much did you add on top of what the item cost you?

With the starting example, a cost of $75 and a price of $100, the profit is $25. That is a 25 % margin ($25 / $100) and a 33.33 % markup ($25 / $75). Same sale, two percentages. Margin is the number lenders, investors and most financial statements use; markup is the one many retailers and contractors use to price.

Three ways to use the calculator

Cost and margin. You know your target margin. The price is cost / (1 - margin). A $75 item with a 25 % margin sells for $100.00. With a 40 % margin it sells for $125.00.

Cost and markup. You add a fixed percentage to the cost. The price is cost x (1 + markup). An $80 item with a 50 % markup sells for $120.00, which is a 33.33 % margin.

Cost and price. You already have a price and want to check it. An item that costs $60 and sells for $100 has a 40 % margin and a 66.67 % markup. If the price is below the cost, for example a $120 cost sold at $100, the calculator shows a $20.00 loss and a negative margin of -20 %.

Margin to markup table

Here is what common margins look like as a markup, and the price of the $75 item at each one:

MarginSame as a markup ofPrice of a $75 item
10 %11.11 %$83.33
20 %25 %$93.75
25 %33.33 %$100.00
30 %42.86 %$107.14
40 %66.67 %$125.00
50 %100 %$150.00

The gap grows fast. A 50 % margin means doubling the cost. A 75 % margin means a 300 % markup: selling a $25 item for $100. Margin can never reach 100 %, because the price would have to be infinite; the calculator only accepts margins below 100 %.

What to put in “cost”

The result is only as good as the cost you enter. Use the full landed cost of one unit:

  • The price you pay the supplier.
  • Freight or shipping to get it to you, divided by the units in the shipment.
  • Packaging and labels.
  • Payment processing or marketplace fees that scale with each sale. Card fees are usually a percentage of the price, so they lower your real margin.

Fixed costs, like rent, payroll and software, are not part of the unit cost. They are paid from the gross profit this calculator shows. A healthy gross margin has to cover all of them before there is any net profit left. The U.S. Small Business Administration has a short guide on managing your business finances that covers break-even and cash flow.

Sales tax and discounts

Sales tax is not part of your price or your margin: you collect it for the state and pass it on. Set your price first with this calculator, then add the tax at checkout with the sales tax calculator.

Discounts come straight out of the margin. If you sell the $75 item at $100 and run a 10 % off sale, the price drops to $90 and the profit to $15: the margin falls from 25 % to 16.67 %. Before you plan a promotion, use the price mode to check the margin at the sale price.

Common mistakes

  • Adding the margin to the cost. Cost x 1.30 is a 30 % markup, not a 30 % margin. Divide by 0.70 instead.
  • Comparing your markup with an industry margin. Benchmarks are usually stated as gross margin. Convert before you compare.
  • Leaving out fees. A 3 % card fee on a $100 sale is $3 off your $25 profit.
  • Rounding prices down. If you round $107.14 to $105, the margin falls to 28.57 %. Round up when you can.

Frequently asked questions

What is the difference between margin and markup?

Both compare the same profit with a different base. Margin divides the profit by the selling price; markup divides it by the cost. A $75 item sold for $100 makes $25: a 25 % margin and a 33.33 % markup. Margin can never reach 100 %; markup can go above it.

How do I price a product for a 30 % margin?

Divide the cost by 0.70, not multiply it by 1.30. A $10 cost at a 30 % margin sells for $14.29. Multiplying by 1.30 gives $13.00, which is a 30 % markup but only a 23 % margin.

What markup gives a 50 % margin?

A 100 % markup: you double the cost. A $75 item sold for $150 makes $75 of profit, half of the price.

Should the margin include shipping, fees and sales tax?

Put every cost of getting one unit to the customer into the cost field: purchase price, shipping in, packaging and payment or marketplace fees. Leave sales tax out: you collect it for the state and add it on top of the selling price.

Is gross margin the same as net margin?

No. This calculator gives gross margin per unit: price minus the direct cost of the item. Net margin also subtracts rent, wages, software, advertising and taxes, so it is always lower.