Skip to content

Margin and pricing

Price from cost and margin calculator

This works backwards from the margin you want to the selling price that delivers it. Divide the unit cost by 1 minus the margin expressed as a decimal. The answer is a floor, not a price.

Calculate your selling price

$

Everything to make and deliver one

%

Share of the price kept, not markup on cost

The formula

Cost1Margin100
Unit cost
Everything it takes to produce and deliver one unit, not the supplier invoice alone. Inbound freight and duty, payment processing, packing, outbound shipping, and the share of returns you absorb all belong here. Because the price is derived from this figure, anything missing from it comes straight out of the margin you thought you had set.
Target margin
The share of the selling price you intend to keep, not the percentage you want to add to cost. Those are different numbers and confusing them is the most common pricing error there is, covered in full on markup to margin. Where the target came from matters as much as the target itself, and a round number chosen because it sounds right is worth interrogating.

A worked example

The outdoor gear brand decides 25 percent is too thin and sets a 35 percent target. The jackets cost 150 from the supplier, so the price comes out at 230.77 and the range gets repriced.

The supplier invoice is not the unit cost. Freight and duty, payment processing, pick and pack, outbound shipping, and unsellable returns add another 37.50, so the real cost is 187.50. At 230.77 the actual margin is 18.8 percent. The brand set out to raise margin from 25 to 35 and instead cut it to 19. Hitting a genuine 35 percent means pricing at 288.46, and the gap between the two prices is 57.69 an order, or about 92,000 a quarter across the brand volume.

There is a second question hiding underneath, which is where 35 came from at all. Work it from the costs instead. The brand carries 102,000 of quarterly overhead across roughly 1,600 orders, so every order has to cover 63.75 of overhead on top of the 187.50 it costs to fulfil. That puts the true break-even price at 251.25, which is just above what the brand currently charges. For a 10 percent net margin the price needs to be 279.17, which happens to be a 33 percent gross margin. That is a target derived from the business rather than chosen because it sounded ambitious, and it is the version worth defending in a room.

When to use it

The honest use of this calculation is setting a floor. It tells you the point below which a deal has stopped being worth doing, which is the single most useful thing to know before a negotiation and the thing most often worked out afterwards. Once the floor exists, discounting becomes a decision with a boundary rather than a conversation about how much the customer wants.

It is also how a target margin should be tested rather than assumed. Run the price your target implies and ask whether the market would actually pay it. If the answer is clearly no, the problem is either the cost base or the product, and no amount of pricing arithmetic will resolve it. Better to learn that before the range is manufactured than after.

For new products it is the right starting point precisely because there is no history to anchor on. Build the full unit cost, derive the floor, then price above it based on what the thing is worth to the person buying it. The calculation tells you where you cannot go. It does not tell you where to land.

Where it misleads

The output is only as good as the cost that produced it, and unit costs are systematically understated. Materials and supplier invoices arrive as clean documents while freight, processing fees, and returns arrive scattered across the year, so the former get counted and the latter get forgotten. Every omission understates the price by more than the omission itself, because the shortfall is divided by the margin.

A cost-derived price ignores what the product is worth to the buyer, which is what actually determines whether it sells. Cost-plus pricing systematically underprices things people value highly and overprices commodities. Treat the result as the lower bound of a range whose upper bound is set by the market, not as an answer.

It assumes volume holds when the price moves, and it will not. A price increase loses some customers and the question is whether the improved margin more than covers them. The break-even calculation answers that directly, and the answer is usually more forgiving than instinct suggests: at a thin margin, quite a lot of volume can go before a price rise stops being worth it.

Costs move and prices tend not to. Freight rates, currency, and supplier increases all erode a margin that was correct when it was set, silently and without anything appearing to change. Rebuild the unit cost at least annually, and price off the current figure rather than the one from the last time anyone looked.

Frequently asked

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

Divide the unit cost by 1 minus the target margin expressed as a decimal. A 60 unit cost at a 40 percent target margin gives 60 divided by 0.6, which is 100. Adding 40 percent to the cost instead produces 84 and a margin of 28.6 percent.

Why not just add the target margin to the cost?

Because margin is measured against the selling price and adding a percentage measures against cost, which is markup. The two are different and the gap widens as the target rises. Adding the margin will always land below the target, and the shortfall grows with ambition.

What should be included in unit cost?

Every cost incurred because that unit was produced and delivered: materials or supplier price, inbound freight and duty, payment processing, packing, outbound shipping, and the share of returns absorbed. Overheads such as rent and salaries are excluded here, though the margin target itself has to be large enough to cover them.

How do I choose a target margin?

Derive it rather than pick it. Take total overhead for the period, divide by expected unit volume to get overhead per unit, add it to the unit cost to find the break-even price, then set the margin that produces the net profit the business needs. A target arrived at that way survives scrutiny in a way that a round number does not.

What if the market will not pay the price the calculation produces?

Then the target margin is not achievable at the current cost base, and pricing is not where the problem lives. The realistic options are reducing unit cost, changing the product so it justifies the price, or accepting a lower margin knowingly. Quietly pricing below the floor and hoping volume compensates is the option that fails slowly.

Numbers are the easy part

Getting the calculation right takes two inputs. Getting an organization to agree on what counts as gain, what counts as cost, and what the number should change takes considerably longer.

That translation work is most of what I do. Westphal Solutions builds websites, tools, and reporting for nonprofits and growing teams, including the kind of measurement setup that makes a number like this one worth trusting in the first place.

Start a conversation