Always price from target margin, not markup
Divide cost by (1 minus target margin) to set the price. For a 40% margin on a $20 cost, the price is $33.33 — a 66.7% markup, not 40%.
Convert markup to margin and back. Stop confusing a 50% markup with a 50% margin — see the exact price needed to hit any target margin.
Interactive calculator
Fee lines · adjust to match your account
Net profit per unit
—
Net margin —·Markup —
True unit cost
—
Total fees
—
Break-even price
—
ROI on cost
—
Cost breakdown · share of price
—What-if sensitivity analysis
Price +5% / cost −10%, with fees recalculated each time.
| Scenario | Price | Profit | Margin | Δ Profit |
|---|---|---|---|---|
| Baseline | — | — | — | — |
| — | — | — | — | — |
| — | — | — | — | — |
| — | — | — | — | — |
Reference cost at defaults: product cost · break-even $20.60 USD. Currency conversion uses indicative 2026 rates for display only; fee tables show official rates in their original currency.
How this calculator works
Markup and margin describe the same gap between cost and price from different perspectives, and confusing them is one of the most expensive mistakes in small business pricing. A 50% markup produces only a 33% margin, not a 50% one.
Markup is calculated on cost: add 50% of a $20 cost and the price is $30. Margin is calculated on price: a 50% margin means half the selling price is profit, so a $20 cost requires a $40 price.
The gap widens as the percentages rise. A 100% markup is exactly a 50% margin, while a 100% margin is mathematically impossible — you cannot have a price where profit equals the entire price and cost is zero.
This calculator shows both figures side by side from a cost and price input, and solves for the price required to hit any target margin.
Markup equals (price minus cost) divided by cost. Margin equals (price minus cost) divided by price. We compute both from the same inputs so the difference is visible.
The calculator also solves the reverse: given a cost and a target margin, the required price is cost divided by (1 minus the margin as a decimal).
Additional fees are layered in so the reported margin reflects the true figure after processing and other variable costs, not an idealized one.
Break-even price is solved numerically, accounting for percentage fees that rise with price.
02 · Official rates & benchmarks
Reference conversions. Markup is on cost; margin is on price.
| Item | Rate | Billing basis | Notes & conditions |
|---|---|---|---|
| Markup formula | (Price − cost) ÷ cost | Cost basis | Add to cost to get price |
| Margin formula | (Price − cost) ÷ price | Price basis | Percentage of revenue |
| 50% markup | = 33.3% margin | Conversion | The classic confusion |
| 100% markup | = 50% margin | Conversion | Double cost |
| 30% margin | ≈ 42.9% markup | Conversion | Price = cost ÷ 0.7 |
| Price for target margin | Cost ÷ (1 − margin) | Formula | Margin as a decimal |
| Payment processing | 2.9% + $0.30 | Price | Reduces the true margin |
Sources consulted: Small business pricing guides 2026 · Retail markup benchmarks · Payment processor rate schedules. Rates change — verify against the official schedule before publishing a price.
03 · Real-world walkthrough
A product costs $20 and sells for $40. Payment processing is 2.9% of price.
Selling price
$40.00
Product cost
$20.00
Gross profit
$40 − $20
Markup
$20 ÷ $20
Margin before fees
$20 ÷ $40
Payment fee
$40 × 2.9% = $1.16
True margin
($20 − $1.16) ÷ $40
Price for 50% true margin
($20 + $1.16) ÷ 0.5
Final result
A $20 cost and $40 price is a 100% markup but only a 50% margin — and 47.1% after payment fees. To keep a true 50% margin you must price near $42.32.
State which measure you mean. A "50% margin" quoted as a markup actually produces only a 33% margin — a 17-point error.
04 · Margin optimization
Specific to this platform and verified against the fee structure above — not generic business advice.
Divide cost by (1 minus target margin) to set the price. For a 40% margin on a $20 cost, the price is $33.33 — a 66.7% markup, not 40%.
A 50% margin before processing becomes 47% after a 2.9% fee. Add variable fees to the cost side so the quoted margin is the one that reaches the bank.
Margins communicate profitability clearly to stakeholders; markups are intuitive when building a price from cost. Keep both figures but label them explicitly.
05 · Long-tail FAQ
Direct answers to the questions sellers ask before they change a price.
Markup is the percentage added to cost; margin is the percentage of the selling price that is profit. A 50% markup produces a 33.3% margin, not 50%.
Divide the markup by one plus the markup. A 50% markup becomes 0.5 ÷ 1.5 = 33.3% margin. This calculator performs the conversion instantly.
Divide cost by (1 minus the target margin as a decimal). A $20 cost with a 40% target margin needs a price of $33.33.
No. A 100% margin would mean the entire price is profit and cost is zero. A 100% markup, by contrast, is simply doubling the cost and equals a 50% margin.
Use target margin to set the price and report profitability — it reflects the share of revenue retained. Markup is useful for describing the addition to cost but is easier to misread.
Still stuck? Send us a question and we will add the answer here.
Keep going