Finance

How to Calculate Selling Price From Cost and Target Margin

Find selling price from cost and target gross margin, check the result after rounding, and see how cost changes or discounts affect the margin actually earned. This guide explains the reasoning, not just the keystrokes.

Published · Updated · 6 min read

Divide cost by the share not kept as margin

To calculate selling price from cost and a target gross margin, use price = cost / (1 − margin / 100). The target describes the share of selling revenue left after the entered cost, not a percentage added to cost. For an illustrative cost of 84 and a target margin of 30%, divide by 0.70 to get a price of 120. Profit is 36, which is exactly thirty percent of 120.

A target is an input assumption, not a forecast that customers will pay the calculated amount. This article explains how to solve and check that assumption using the Markup Calculator. It does not choose a suitable margin for an industry or promise net profit. Use a positive cost on a clearly defined basis and keep the same currency and tax treatment throughout the calculation before evaluating any real pricing decision.

Derive the equation before choosing a mode

Gross margin as a fraction is (price − cost) / price. Rearranging gives margin × price = price − cost, then cost = price × (1 − margin). Dividing by the final factor yields the target-price formula. This derivation shows why the denominator shrinks as the target rises. It also explains why a one-hundred-percent margin cannot be reached at a finite price when cost remains positive.

Choose cost-and-margin mode and enter 30 for thirty percent, rather than 0.30. Cost-and-markup mode answers a different question: 84 × 1.30 = 109.20. That price leaves 25.20 profit, whose margin is about 23.08%, not 30%. A plausible-looking result is not enough to validate the mode. Calculate profit divided by selling price as an independent check of whether the target relationship was actually met.

Check an unrounded and a rounded price

For a cost of 47 and a target margin of 35%, the exact price is 47 / 0.65 = 72.307692... . A two-decimal display gives 72.31. At that rounded price, profit is 25.31 and the actual margin is about 35.0021%. The very small difference is expected because the target equation was solved before the selling price was rounded to the available currency precision.

If the selected shelf price is instead 72.30, profit becomes 25.30 and actual margin is about 34.9931%. Calculate the achieved margin from the selected price rather than continuing to display the target as if it were exact. NumUtility does not choose a psychological price, a price increment or a rounding-up policy. Those decisions are separate from solving the initial equation and should remain visible in the record.

Define the cost that the price must cover

A supplier quote of 84 may not represent the complete cost boundary intended for a pricing worksheet. If a hypothetical additional 6 per unit is included, the entered cost becomes 90. With the same 30% target, the required price becomes about 128.57 rather than 120. Whether that additional amount belongs in your particular gross-cost definition is an accounting question; the example simply shows the arithmetic consequence of changing an input.

Separate flat per-item costs from fees calculated as a percentage of selling price. A revenue-based fee depends on the unknown price and cannot always be treated as a fixed money amount copied from an earlier sale. The calculator does not solve a combined fee-and-margin model or determine tax treatment. Establish a consistent cost boundary separately instead of silently treating every operating expense as an interchangeable addition to product cost.

Model a changed cost without changing the target

If the original cost of 84 rises by 10% to 92.40, maintaining a 30% margin requires a price of 92.40 / 0.70 = 132. Keeping the old price of 120 would leave profit of 27.60 and margin of 23%. This comparison distinguishes holding a target constant from holding a price constant. Those are different scenarios, even though both begin with the same supplier cost increase.

For several products, repeat the calculation with each product's own cost and actual selling price. An average of product margin percentages is not automatically the business's overall gross margin. Products can contribute very different revenue amounts. This single-item tool does not calculate a weighted portfolio margin or predict sales volume. Keep quantities and aggregate revenue in a separate worksheet if the decision requires a business-wide rather than per-item comparison.

A discount reduces profit faster than revenue

Return to cost 84 and price 120, with profit 36 and margin 30%. Taking 10% off the price gives 108, profit 24 and margin about 22.22%. Revenue has fallen by 12, but the original profit has fallen by 12 / 36, or one third. The target margin did not survive merely because the discount rate was less than thirty percent. The unchanged cost makes the profit denominator important.

A 30% price reduction would leave a price of 84 and zero gross profit under this cost boundary. This is a mathematical boundary, not an endorsement of a maximum discount or evidence that the sale covers operating expenses. For two successive discounts, calculate the final price with the Discount Calculator first, then compare that actual price against cost. Do not subtract the sum of two coupon percentages from a target margin.

Recognize unrealistic and undefined requests

At a 90% target margin, cost 84 requires price 840. At 99%, it requires 8,400. Those calculations are valid arithmetic but do not establish market demand or justify the price. The denominator approaches zero as the target approaches 100%, so small changes near that boundary produce very large changes in the required price. A model should expose this sensitivity rather than presenting the output as an automatically sensible recommendation.

The calculator accepts positive cost and limits margin inputs below 100%, with 99.99% as its upper supported value. A negative target can represent selling below cost: at cost 84 and target −20%, price is 70 and profit is −14, giving −14 / 70 = −20%. That is an educational loss example, not tax advice or a recommendation. A zero selling price has no defined revenue-based margin.

Store the assumptions with the chosen price

A practical audit note records the cost definition, target margin, exact calculated price, selected rounded price and actual margin at that selected price. For the 47-cost example, preserving both 72.307692... and 72.30 explains why the achieved margin differs slightly from the target. Without that record, a later reviewer may confuse intentional pricing or display rounding with an incorrect formula or a changed supplier cost.

Recheck the worksheet when cost, fees or the final item price changes. Use cost-and-price mode for the achieved result, rather than assuming yesterday's target still describes today's sale. Currency labels do not convert exchange rates, and the result excludes automatic taxes, demand forecasts and net-profit accounting. This guide supplies a reproducible calculation and its limitations; it does not replace business judgment or professional financial and accounting advice.

Frequently asked questions

Why not multiply cost by one plus the desired margin?

That applies a markup to cost. A revenue-based margin requires dividing cost by one minus the margin fraction.

Can I achieve exactly 100% gross margin with positive cost?

Not at a finite selling price under this model. The target-price denominator would be zero.

Should I check the margin after choosing a rounded price?

Yes. Recalculate profit divided by the actual selected price; rounding can move the achieved rate above or below the target.

Does the calculated price guarantee a profit?

No. It meets a gross-margin equation for the entered cost and assumes the sale occurs. Other expenses, demand and taxes are not inferred.

Sources

References used to support definitions and interpretation in this guide.

  1. Shopify — Markup vs. Margin
  2. CalculatorSoup — Margin and Markup Formulas