Starting from the margin you want

Many pricing decisions begin with a target: the business wants 40 percent of every sale to remain after the cost of the item. Working backward from that target to a price is a small algebra step that is easy to get wrong in a spreadsheet. This page does it for you. You enter the cost per unit and the target margin on the selling price, and it returns the modeled selling price and the amount by which the price exceeds the cost. It is meant for quick quoting, comparing products and checking a price list. The result is a calculation from your inputs, not a market price, so it answers what the price must be to reach the margin, not what customers will pay.

Why the denominator is one minus the margin

Margin is profit divided by price. If price is P, cost is C and margin is m as a fraction, then (P - C) / P = m. Rearranging gives P = C / (1 - m). In the page the margin is entered as a percentage, so the formula is price = cost / (1 - margin / 100), and the difference is surplus = price - cost. Because the divisor shrinks as margin grows, price rises faster than margin does. A 50 percent margin doubles the cost, a 75 percent margin quadruples it, and a 90 percent margin multiplies it by ten. A margin of 100 percent would need an infinite price, which is why the model excludes it for positive costs.

The default: cost 30 at a 40 percent margin

The page opens with a cost of 30 and a target margin of 40 percent. The divisor is 1 - 0.40 = 0.60, so the price is 30 / 0.60 = 50.00, and the difference between price and cost is 20.00. Check it from the other direction: 20 divided by 50 is 0.40, the margin you asked for. The same check works for any result and takes a second. If you divide the surplus by the price and do not recover the target, a value was entered in the wrong units. The most common slip is typing 0.4 for the margin, which the page would read as 0.4 percent, so enter 40 for forty percent.

Other costs and margins

A craft seller with a unit cost of 12.40 and a 35 percent target margin needs a price of 12.40 / 0.65, which is 19.08 after rounding, a difference of 6.68. A contractor reselling equipment at a cost of 80 with a 25 percent margin needs 106.67, with 26.67 on top of cost. A retailer with a cost of 45 who wants a 60 percent margin needs 112.50, a difference of 67.50. With a cost of 200 and a margin of 20 percent the price is 250.00, a difference of 50.00. A margin of zero returns the cost itself, so a cost of 30 and a margin of 0 percent gives a price of 30.00 and a difference of zero.

Margin and markup are different numbers

Markup is profit divided by cost, margin is profit divided by price. Adding a 40 percent markup to a cost of 30 produces a price of 42, and the profit of 12 is only 28.57 percent of that price. To end up with a 40 percent margin on the same cost, the price must be 50, which is a markup of 66.67 percent. Mixing the two is a classic pricing error, and it tends to underprice. If a supplier, a manager or a spreadsheet quotes a markup, convert it before comparing with margin targets. This page works from margin only, which is the figure that financial statements and most profit targets are expressed in.

Deciding what goes into cost

The margin means something only relative to the cost basis. A product cost, a total variable cost and a fully allocated cost all give different answers for the same target. If you want the margin to cover selling expenses, include the sale-related shipping, payment processing and support in the unit cost. If a marketplace takes a percentage of the price, that fee is not a fixed amount and cannot simply be added to the cost. It changes the divisor instead, so treat it separately. Taxes collected for the government, discounts and fixed overhead are outside this model unless you have built them into the cost you enter.

From the formula to a price you can charge

A modeled price rarely lands on a number customers see. Prices are rounded to charm points such as 19.99 or 49.95, and rounding down lowers the achieved margin while rounding up raises it. For the craft seller above, a shelf price of 18.99 gives a margin of (18.99 - 12.40) / 18.99, which is 34.70 percent, just under the 35 percent target. After choosing a shelf price, compute the actual margin to see how far you moved. The displayed outputs are rounded to two decimals, but the underlying calculation is exact, so a rounded price can differ slightly from the exact solution.

Sanity checks against the market

The formula says what a price must be to meet a margin. The market decides whether anyone will pay it. Compare the modeled price with similar products, the price you can justify on features or service, and what customers have paid before. If the result is far above comparable offers, the margin target, the cost or the positioning needs a second look. Sometimes a lower margin at higher volume yields more total profit, and sometimes the reverse. Run two or three margin levels through the page and compare the prices you would have to charge, then decide which are realistic.

Price tiers and several products

A product line often needs the same target applied to many costs, and the page makes that quick. Three items costing 8, 20 and 55 at a 40 percent margin should sell for 13.33, 33.33 and 91.67. Notice that the price ratio is the same for every item, 1.667 times cost, so the shortcut for a 40 percent margin is to multiply cost by 5 and divide by 3. Different margins by tier are common: low-cost accessories may carry 60 percent to support the whole range, while a headline product is held at 25 percent to stay competitive. Writing the target next to each cost keeps the price list auditable, and rerunning it after a supplier change takes seconds.

What a target-margin price does not decide

The model solves one relationship between cost, price and margin. It does not determine a market-clearing price, forecast demand, apply discounts or add taxes. A target of 100 percent or more is not possible with a positive cost, so the page requires the margin to stay below 100. Rounded outputs do not establish the precision of your cost estimate, and rounding the price down can reduce the achieved margin. For the arithmetic of contribution and margin, OpenStax Principles of Managerial Accounting is the source this page cites.