Profit Margin & Markup Calculator

This profit margin calculator divides the profit on a sale by the selling price to give the gross margin, and by the cost to give the markup. It also works out the selling price needed to reach a target margin or a target markup.

Reviewed by FeePulse HubLast updated

Cost and price

Amounts in USD
%
%

Your fees and payout

Results update as you type.

Profit
$25.00
Gross margin
38.5%
Markup
62.5%
Price for the target margin
$66.67
Price for the target markup
$80.00

How the two are worked out

MeasureFormulaResult
MarginProfit ÷ price38.5%
MarkupProfit ÷ cost62.5%

How to use the margin and markup calculator

  1. Enter the cost of the item: what you paid for it, or what it costs to make, including any fees you want to count.
  2. Enter the selling price.
  3. Enter a target margin and a target markup to see the prices that would reach them.

The calculator uses the currency chosen in the header. For marketplace sales, run the relevant fee calculator first and add the fees to the cost, so the margin is what you really keep.

How margin and markup are worked out

Profit = price − cost
Margin = profit ÷ price × 100
Markup = profit ÷ cost × 100
Price for a target margin = cost ÷ (1 − margin)
Price for a target markup = cost × (1 + markup)

Margin and markup describe the same profit from two directions. Margin compares it with the price, so it can never reach 100 percent. Markup compares it with the cost, so it can be any size: an item bought for $10 and sold for $40 has a 300% markup but a 75% margin.

Worked example

A product costs $50 and sells for $75:

  1. Profit is $75 − $50 = $25.00.
  2. Margin is $25 ÷ $75 = 33.3%, while markup is $25 ÷ $50 = 50%.
  3. For a 40% margin the price would need to be $50 ÷ 0.6 = $83.33.

Load this example into the calculator

Margin and markup side by side

MarkupMarginPrice for a $10 cost
25%20%$12.50
50%33.3%$15.00
100 percent50%$20.00
150%60%$25.00
200%66.7%$30.00

A useful conversion: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin), with both written as decimals.

The most common pricing mistake

Adding a target margin to the cost as if it were a markup leaves the real margin short. To make a 30% margin on an item that costs $70, adding 30% gives $91, which is only a 23% margin. The correct price is $70 ÷ 0.7 = $100. On every sale the gap grows with the target, and with marketplace fees on top it can wipe out the expected profit entirely.

Fees also need care: a marketplace that takes 13% of the price takes it from the margin, not from the cost. If the gross margin is 40% before fees, it is roughly 27% after them.

Margin after marketplace and card fees

When you sell through a marketplace or take card payments, the platform’s fee comes out of the price, so the margin you keep is lower than the margin on paper. A product bought for $20 and sold for $40 has a 50% margin before fees. If the marketplace keeps 13% of the price, the fee is $5.20, profit falls to $14.80 and the margin to 37%. To protect a target margin after fees, add the fee rate to the margin before dividing: for a 35% margin on a platform taking 13%, the price is the cost divided by 1 − 0.35 − 0.13, or 0.52.

The marketplace fee comparison shows the fee rate on each platform for the same sale, which you can use in that formula.

Tips for setting prices

  • Decide in margin, quote in price. Margins are easier to compare across products of different prices.
  • Include all costs. Shipping, packaging and fees belong in the cost when you set a target margin.
  • Check the whole sale. The reseller profit calculator takes fees and shipping into account automatically.

Frequently asked questions

Results are arithmetic on the figures you enter, not financial or tax advice. Check your real costs, fees and taxes before you set prices. See our disclaimer.