Tools / Growth

Profit Margin Calculator

Calculate profit margin and markup from cost and price, or find the selling price that hits a target margin. Free, with formulas and a margin-to-markup table.

$
$
%
%

Results

  • Selling pricei–what the customer pays
  • Costi–what one item costs you
  • Profit per itemi–price − cost
  • Profit margini–profit ÷ price
  • Markupi–profit ÷ cost
  • Total revenuei–price × units
  • Total profiti–profit × units

What these terms mean

Cost
What one item costs you to make or buy, including anything else you pay per sale such as shipping, packaging and payment fees. Leave out fixed costs like rent and salaries.
Back to the calculator ↑
Selling price
What the customer pays for one item, before sales tax.
Back to the calculator ↑
Profit margin
The share of the selling price you keep as profit: (price − cost) ÷ price. Selling for $50 something that costs you $30 is a 40% margin. A margin can never reach 100%, because that would mean the item cost nothing.
Back to the calculator ↑
Markup
How much you add on top of cost, as a share of cost: (price − cost) ÷ cost. The same $30 item sold for $50 has a 66.67% markup. Markup is always bigger than margin for the same item, so mixing them up leads to underpricing.
Back to the calculator ↑
Units sold
How many items you sell, or expect to sell, at this price. Used only for the totals.
Back to the calculator ↑
Profit per item
What you keep from each sale: selling price − cost.
Back to the calculator ↑
Total revenue
Selling price × units sold: all the money that comes in before costs.
Back to the calculator ↑
Total profit
Profit per item × units sold: what is left from those sales after paying for the items themselves.
Back to the calculator ↑

How to use the profit margin calculator

Enter any two of cost, selling price, margin and markup and the calculator fills in the rest. Cost and price give you the margin and markup. Cost and a target margin give you the price to charge. Add units sold to see total revenue and profit.

Profit margin and markup formulas

What you wantFormula
Profit margin(Price − Cost) ÷ Price
Markup(Price − Cost) ÷ Cost
Price for a target marginCost ÷ (1 − Margin)
Price for a target markupCost × (1 + Markup)
Margin from markupMarkup ÷ (1 + Markup)

Example

A product costs you $30 and you sell it for $50. Profit is $20 an item, so the margin is $20 ÷ $50 = 40% and the markup is $20 ÷ $30 = 66.67%. To reach a 50% margin on the same item you would need to charge $30 ÷ (1 − 0.5) = $60.

Margin vs markup

Both compare the same profit, but margin divides it by the price and markup divides it by the cost. That is why a 50% markup is only a 33.33% margin. Pricing with a markup when you meant a margin is one of the most common ways to undercharge.

MarginMarkup needed
20%25%
25%33.33%
33.33%50%
40%66.67%
50%100%
60%150%

What margin means for your ads

Your margin decides how much you can spend to win a sale. Take it to the Break-Even ROAS Calculator to find the lowest return on ad spend that still makes money.

Frequently asked questions

How do you calculate profit margin?
Subtract the cost from the selling price, divide by the selling price and multiply by 100. An item that costs $30 and sells for $50 has a 40% profit margin.
What is the difference between margin and markup?
Margin is profit as a share of the price; markup is profit as a share of the cost. For the same item, markup is always the larger number: a 40% margin is a 66.67% markup.
How do I price a product for a 30% margin?
Divide the cost by 1 minus the margin. For a $14 cost, $14 ÷ 0.7 = $20.
What is a good profit margin?
It depends on the business. Retail and e-commerce gross margins are often 30% to 50%, while software and digital products can run above 70%. What matters is that the margin covers your marketing and fixed costs.
Is this gross margin or net margin?
It is the margin on whatever costs you enter. Enter only the cost of the item itself for gross margin. Net margin also takes off overhead like rent and salaries, which are usually calculated for the whole business rather than per item.

Daily free limit reached