Product pricing · Margin and markup
Margin vs. markup: set the price from the right base
A 50% markup produces a 33.33% gross margin. Work backward from the target you actually mean, then check the order costs and rounded price.

Start with one product and one consistent cost
Margin divides profit by selling price; markup divides the same profit by cost. Before entering a percentage into a pricing sheet, name the target: markup on product cost, gross margin on sales, or contribution after specified variable costs. “Add 50%” is too ambiguous to approve a price.
Use one candle with an $18.00 unit product cost, including its retail packaging and allocated inbound freight. Treat that product cost as variable in this example. Each order contains one candle. Selling price P means net item revenue before tax, with no discounts, refunds or customer shipping charge. Product cost C stays $18.00 throughout.
This is a management worksheet using the stated product-cost basis. Match that basis to your cost-of-sales policy before comparing its gross margin with a financial statement. Do not put a delivery or packaging cost in product cost and then subtract the same cost again below.
Sources: Xero: markup formula and margin denominators; Shopify: margin types and inverse selling-price formula.
A 50% markup and a 50% gross margin produce different prices
A 50% markup adds half the $18.00 cost: $18.00 × 1.50 = $27.00. Gross profit is $9.00. Divide $9.00 by the $18.00 cost and the markup is 50%; divide it by the $27.00 sale and gross margin is 33.33%, rounded.
For a 50% gross margin, the $18.00 cost must occupy the other half of the price. Price is therefore $36.00 and gross profit is $18.00. That is a 100% markup. The percentages describe different bases; the second target also changes the selling price.
Scroll horizontally if needed to see all columns.
| Target | Selling price | Gross profit | Markup on cost | Gross margin on sales |
|---|---|---|---|---|
| 50% markup | $27.00 | $9.00 | 50.00% | 33.33% |
| 50% gross margin | $36.00 | $18.00 | 100.00% | 50.00% |
Solve from the target rather than adding the percentage
Use decimal inputs in the formulas: 50% is 0.50. With positive price P and product cost C, markup u = (P − C) ÷ C, and gross margin m = (P − C) ÷ P. To set a price from markup, use P = C × (1 + u). To set it from gross margin, use P = C ÷ (1 − m).
The conversion is m = u ÷ (1 + u), or u = m ÷ (1 − m). Thus a 50% markup becomes 0.50 ÷ 1.50 = 33.33% gross margin, rounded. A 50% gross margin requires 0.50 ÷ 0.50 = 100% markup.
For positive product cost and selling price, use a gross-margin target below 100% and markup above −100%. A gross-margin target of 100% or more has no finite positive selling price. A zero price makes the margin denominator invalid; a zero cost makes markup undefined. For a profitable sale with positive price and cost, markup is higher than gross margin. Keep loss-making sales visibly negative rather than applying that ordering as a universal rule.
Sources: Xero: markup formula and margin denominators; Shopify: margin types and inverse selling-price formula.
A gross-margin price still has order costs to cover
Now add an assumed transaction charge of 3% of net item price, rounded half up to the nearest cent, and a separate $4.50 fulfilment cost per one-item order. The $4.50 covers the model’s outbound picking, shipping materials and delivery; none is included in the $18.00 product cost. It is flat per order but varies with the number of orders.
Contribution here means price less product cost, that transaction charge and fulfilment, before advertising and fixed overhead. It is a deliberately scoped contribution measure. Add other relevant variable costs when adapting it; the full contribution definition subtracts all variable costs in scope.
At the $36.00 price that delivers 50% gross margin, the charge is $1.08 and contribution is $12.42, or 34.50% of sales. At $36.30, the reconciliation is below. Neither gross profit nor this pre-ad contribution is net profit.
Scroll horizontally if needed to see all columns.
| Step | Amount |
|---|---|
| Net item revenue | $36.30 |
| Product cost | −$18.00 |
| Gross profit on stated basis | $18.30 |
| Transaction charge · 3%, rounded | −$1.09 |
| Fulfilment per order | −$4.50 |
| Contribution before ads and fixed overhead | $12.71 |
Include the price-based charge in a contribution target
Suppose the chosen target is 35% contribution before ads and fixed overhead, on the same net-sales denominator. This is an assumed target, not a recommended margin. Let r be the price-based charge rate and F the flat fulfilment amount per order. Before cent rounding, contribution K = P − C − F − rP.
Set K ÷ P equal to target t and rearrange: P × (1 − r − t) = C + F. The continuous target price is P = (C + F) ÷ (1 − r − t). For this candle: ($18.00 + $4.50) ÷ (1 − 0.03 − 0.35) = $22.50 ÷ 0.62 = $36.29032258…
With positive C + F, this equation requires r + t below 1. At or above 1, no finite positive price can cover those costs and meet the target under this model. A charge based on tax-inclusive order value, a minimum fee, extra items, returns or a different shipping charge needs a different model. Adding 35% to cost does not solve this equation.
Recheck the cents before accepting a displayed 35.00%
The continuous result lies just above $36.29. Round the candidate price upward to $36.30, then recompute the transaction charge using the stated cent-rounding rule. Do not approve a target from a percentage already rounded for display.
At $36.29, the 3% charge rounds to $1.09. Remaining contribution is $12.70, and $12.70 ÷ $36.29 = 34.9959%, rounded to four decimal places. A report showing only two decimal places would display 35.00%, even though the exact ratio is below 35%.
At $36.30, the charge is still $1.09 and contribution becomes $12.71. Its exact ratio exceeds 35%; the displayed value is 35.0138%. The pass/fail column uses the unrounded ratio. Recheck actual fee rules rather than assuming rounding the price upward always guarantees a pass.
Scroll horizontally if needed to see all columns.
| Price, USD | Charge, USD | Contribution, USD | Contribution / sales | Meets 35%? |
|---|---|---|---|---|
| $36.00 | $1.08 | $12.42 | 34.5000% | No |
| $36.29 | $1.09 | $12.70 | 34.9959% | No |
| $36.30 | $1.09 | $12.71 | 35.0138% | Yes |
Keep a pricing record that another person can reproduce
Save the inputs and calculation alongside the proposed price. A formula gives the price required by selected assumptions; it does not predict customer demand or establish the best commercial price. Check the full business cost base and the effect of realistic sales volume separately.
- Unit and sales basis: SKU, one item versus a basket, currency, net price, discounts, expected refunds, shipping income and treatment of tax in the chosen calculation.
- Product-cost version: supplier cost, retail packaging and inbound freight, with the date and allocation method. Mark which costs are already included so they are not deducted twice.
- Target definition: markup on cost, gross margin on sales or contribution after a listed set of variable costs. Record the denominator and the target as a decimal.
- Order costs: provider charge basis and rounding, any flat or minimum charge, fulfilment by order size and other relevant variable costs. Replace the assumed 3% and $4.50 with verified records.
- Price check: unrounded target, proposed price in currency increments, recalculated charges, contribution dollars, exact ratio and pass/fail. Keep display rounding separate from the decision.
- Commercial review: who approved the proposed price, what customer/demand evidence supports it, and when to recheck after cost, fee, offer or mix changes. A mathematically passing price still needs a commercial decision.
Bring one pricing question to the finance audit
Bring one SKU’s cost basis, current net price, verified order charges and the margin definition you want to achieve. The useful question is specific: what price meets that target after the costs we have actually included?
AxisCFO’s free initial e-commerce finance audit is a scoped operating-finance diagnostic. The linked audit page lets you prepare and copy the brief; it does not send an application.
Sources and calculation notes
- Xero: markup formula and margin denominators
Markup uses product cost; margin uses selling price; price from cost and target markup.
Accessed 2026-10-23.
- Shopify: margin types and inverse selling-price formula
Gross versus contribution/operating/net distinctions and price = cost/(1-target gross margin).
Accessed 2026-10-23.
- OpenStax: contribution margin and variable costs
Contribution subtracts variable costs and contributes toward fixed costs; denominator for a contribution ratio is sales.
Accessed 2026-10-23.
Your next step
Choose how you want to start.
A monthly finance team, one AI workflow, or both. Start with a free review of your books or of one repeated process.