Target margin pricing formula: solve the price and check cent rounding
Calculate price from cost and a target margin, avoid the markup shortcut and verify that rounding or a discount has not pushed the result below target.
When cost is known and you want a margin measured against the selling price, divide cost by one minus the target margin. Adding the target percentage to cost solves a different problem. This guide derives the formula and tests the final price rather than treating the displayed cents as exact.
Derive the price from the margin equation
Let C be the included cost, P the selling price and m the target margin as a decimal. Start with m = (P − C) ÷ P. Rearranging gives P × (1 − m) = C, so P = C ÷ (1 − m). For a positive cost and nonnegative target, use 0 ≤ m < 1.
With cost USD 24 and a 40% target, P = 24 ÷ 0.60 = USD 40. The difference is USD 16 and 16 ÷ 40 = 40%. Adding 40% to cost would instead produce USD 33.60, whose margin is only approximately 28.57%.
| Target margin | Calculation | Selling price |
|---|---|---|
| 20% | 24 ÷ 0.80 | USD 30.00 |
| 25% | 24 ÷ 0.75 | USD 32.00 |
| 40% | 24 ÷ 0.60 | USD 40.00 |
| 50% | 24 ÷ 0.50 | USD 48.00 |
Round in the direction the requirement needs
A 33% target on USD 24 cost gives 24 ÷ 0.67 = USD 35.820895… . Rounding to the nearest cent gives USD 35.82, with margin approximately 32.9983%, slightly below 33%. If the requirement is at least 33% under this model, use USD 35.83, then recalculate; its margin is approximately 33.0170%.
Round up only when that is appropriate for the stated pricing requirement, and verify the final result. Provider-specific fees, tax rounding and discounts may need a separate reconciliation.
Included cost C: [amount] Target margin m: [percentage divided by 100] Unrounded price = C / (1 − m) Chosen customer price P: [actual cents] Verified margin = (P − C) / P × 100 Compare the verified result with the target, using the same included costs.
A discount changes the achieved margin
The USD 40 price gives 40% margin on USD 24 cost. A 10% discount lowers the customer's price to USD 36. Profit on that cost becomes USD 12 and margin becomes one third, not 30% and not 36%.
To retain at least 40% after a planned 10% discount in this simple model, the pre-discount price must be at least 24 ÷ (0.60 × 0.90) = USD 44.444… . Choosing USD 44.45 and rounding the 10% discount to USD 4.45 leaves USD 40.00. Recalculate using the exact discount method in your billing tool.
Check the assumptions before adopting the price
The formula only covers C. A selling-price-based fee cannot be treated as a known fixed amount before the price is chosen unless you solve for it or iterate correctly. Use the fee-aware formula when a percentage is charged on the sale.
A 100% or higher target with positive costs makes this formula invalid for a finite nonnegative selling price. A zero-cost case needs separate interpretation and often indicates omitted costs. No margin target guarantees demand, cash collection or net business profit.
Verify the result in the calculator
For the USD 40 example, enter Cost 24 and Selling price / revenue 40 in the profit-margin calculator. It should show a 40% margin on the entered cost. The markup calculator's percentage field is a different input: this price corresponds to approximately 66.67% markup.
This guide provides general educational information and is not legal, accounting, tax or financial advice. Requirements vary by country, industry and transaction. See how Docuivo tests its tools and calculations.