Pricing · Last reviewed

How to price a product from cost and a target margin

If you know what a product costs you, and you know the gross margin you want to keep as a share of the selling price, the price is not a guess:

Selling price = cost ÷ (1 − margin)

Margin here is gross margin on price, not markup on cost. If you are unsure of the difference, read markup vs margin first. A 50% markup is not a 50% margin.

This formula does not include sales tax, postage policy or what a customer is willing to pay. It answers one question: at this cost, what price produces that margin?

Worked example

An item costs $60. You want a 40% gross margin.

  • Price = $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100
  • Profit = $40
  • Check: $40 ÷ $100 = 40% margin, and $40 ÷ $60 = 66.67% markup

The same cost at other margins:

Target gross margin Selling price from a $60 cost
20% $75.00
30% $85.71
40% $100.00
50% $120.00
60% $150.00

Use the profit margin calculator to get the “price needed” line: enter the cost as cost of goods, any revenue figure to satisfy the form, and your target gross margin. When cost is greater than zero, the calculator returns the price for that margin.

What to put in “cost”

Include what it costs you to get one unit ready to sell: materials, packing, and other costs that sit on that unit. Operating expenses (rent, software, your own salary) belong in net margin, not in this unit cost, unless you have already allocated them yourself. The calculator treats cost of goods and optional operating expenses as separate fields.

If some costs rise with every sale (payment fees, shipping you absorb, contractor time on that job), you may also want contribution margin and a break-even point.

What is a “good” margin?

It depends on the business, the product and what is already sitting in the cost. There is no single good percentage, and this page does not invent an industry average. A useful test is: at this price and cost, does the margin, together with your expected volume, cover fixed costs? That is a break-even question, not a slogan.

For services and freelance time, start from a rate floor rather than a product cost: how to calculate a freelance hourly rate.

The Pricing & Profit Margin Workbook applies the same price-from-margin formula to a list of up to 25 items, and shows a target-price table at several margins. It works in Excel and Google Sheets. Sample prices in the file are a worked example, not suggested prices for your market.

FAQ

How do I calculate a selling price from cost and margin?

Divide the unit cost by one minus the target gross margin (as a decimal). A $60 cost and a 40% margin need a $100 price.

What if I prefer to think in markup?

Price = cost × (1 + markup). Remember that the margin will be lower than the markup percentage. The calculator shows both so you can check.

Does this include tax or shipping?

No. The formula is for a pre-tax selling price from a unit cost and a target gross margin. How you present tax and shipping to customers is a separate decision.