How to use the selling price calculator
- Enter the unit cost in the "Cost" box, including shipping, packaging and payment fees so the price covers everything.
- Choose whether your target is a margin or a markup using the toggle, then enter the percentage you want.
- Read the suggested selling price in the result panel, with the profit per unit and both margin and markup shown so you can see the full picture.
- Turn on "round up to" and pick a step, such as the nearest 5 or 50, to get a cleaner shelf price that still meets or beats your target.
What to include
- Full cost per unit, not just the supplier invoice
- Your target as a margin or a markup, and which of the two it is
- Payment processing fees, which are a percentage of price and reduce the real margin
- Any discount you expect to give on average, so you price above it
- Competitor prices, to check the result is realistic
- A rounding step for a tidy shelf or website price
Selling price formula: pricing from a margin target versus a markup target
From a margin: Selling price = cost ÷ (1 − margin ÷ 100). From a markup: Selling price = cost × (1 + markup ÷ 100). Say you type a cost of 450 and a target of 40. Priced as a markup, the selling price is 450 × 1.40, which is 630, and the margin on that is 28.57 percent. Priced as a margin, the selling price is 450 ÷ 0.60, which is 750, and the markup turns out to be 66.67 percent. Same cost, same number typed, a gap of 120 in the price.
A common mistake is to take the margin you want and multiply cost by it, so cost 450 becomes 450 × 1.40 while believing you have a 40 percent margin. You have not; you have 28.57. If a business needs 40 percent gross margin to cover overheads, that error means every sale is short. Use the margin toggle on this page whenever the target comes from your accounts or a business plan, and the markup toggle only when the figure is a trade convention you apply to cost. The result panel always shows both so the mismatch is visible.
Frequently asked questions
How do I calculate selling price from cost and margin?
Divide the cost by one minus the margin as a decimal. For a cost of 200 and a 25 percent margin, 200 ÷ 0.75 is 266.67. Enter those numbers with the margin toggle on to see it.
Why can I not set a margin of 100 percent?
A 100 percent margin means the cost is zero, which gives division by zero in the formula. The calculator caps margin targets below 100; markup, by contrast, can be any size.
Should I include payment gateway fees in the cost?
Yes if you want an accurate margin. Fees are usually a percentage of the price, so add your typical fee per unit to the cost box or price with a slightly higher margin to absorb them.
Can this calculator suggest a price based on competitors?
No. It only works from your cost and target. Compare the result with competitor prices yourself, and if yours is too high, the cost price page tells you what the cost would need to be.
Does the selling price calculator work on mobile?
Yes. It is a lightweight page that works on any phone browser, so you can price stock while standing in the warehouse.