Most pricing questions in a real business run backwards. Not "what margin does this price produce?" but "what price produces the margin I need?" — or, when the market has already fixed the price, "what's the most I can afford to pay for this?" Both are reverse margin problems, both have clean closed-form answers, and both are routinely gotten wrong by one seductive shortcut: multiplying cost by the target percentage.
The basic reverse formula
Margin is defined as profit over price. Rearranged so that price is the unknown:
price = cost ÷ (1 − target margin)
Want a 45% gross margin on an item that costs $18.00?
price = 18.00 ÷ (1 − 0.45) = 18.00 ÷ 0.55 = $32.73
Check it: profit is $14.73, and 14.73 ÷ 32.73 = 45.0%. The common error is computing 18 × 1.45 = $26.10 — that's a 45% markup, which is only a 31% margin. If those two words are blurring together, detour through our margin vs markup guide first; the divide-not-multiply distinction is the whole game here.
The formula also explains why margin targets get expensive fast. Dividing by (1 − m) means each additional point of target margin raises the price by more than the last one. A 50% margin doubles cost; a 75% margin quadruples it; a 90% margin multiplies it by ten. When a margin target feels unreachable, this denominator is why.
The fee-adjusted version
The basic formula assumes you keep the whole price. Marketplace sellers don't: commission and payment processing take a percentage of the price, plus usually a flat amount. Those percentage fees can't just be added to cost, because they depend on the price you're still trying to find. The fix is to fold them into the denominator:
price = (unit costs + flat fees) ÷ (1 − target margin − fee rate)
where unit costs is everything flat per sale (product, absorbed shipping, packaging), flat fees is the fixed part of processing or listing charges, and fee rate is the combined percentage taken by the platform and the processor.
Worked example, with illustrative fees: unit costs of $23.00 ($18.00 product + $5.00 shipping and packaging), a $0.30 flat processor fee, a combined 9.9% percentage fee, and a 40% margin target.
price = (23.00 + 0.30) ÷ (1 − 0.40 − 0.099) = 23.30 ÷ 0.501 = $46.51
Verify: percentage fees are 9.9% × 46.51 = $4.60, plus $0.30 flat. Profit = 46.51 − 23.00 − 4.60 − 0.30 = $18.61, and 18.61 ÷ 46.51 = 40.0%. The target survives the fee stack because the fee stack was in the formula, not bolted on afterwards.
Note the failure mode: if target margin plus fee rate approaches 1, the denominator approaches zero and the "required price" rockets toward infinity. A 55% margin target on a platform taking 45% in combined fees isn't ambitious — it's mathematically impossible, and the formula tells you so before the market does.
The mirror image: maximum allowable cost
Sometimes price isn't yours to choose — comparable listings, price-sensitive buyers, or a marketplace's going rate have already set it. Then the reverse solve flips: hold price and target margin fixed, and solve for the most you can pay.
max cost = price × (1 − target margin) − percentage fees − flat fees
Say an item reliably sells for $25.00, you want a 35% margin, and illustrative fees run 9.9% + $0.30. Percentage fees are $2.48, so:
max cost = 25.00 × 0.65 − 2.48 − 0.30 = 16.25 − 2.78 = $13.47
That $13.47 is a powerful number to carry into a thrift store, a liquidation auction, or a supplier negotiation. It converts "is this a good deal?" — a feeling — into "is it under $13.47 all-in?" — a fact. All-in matters: the cost being tested includes inbound shipping and any refurbishment, not just the sticker (our hidden-costs guide covers what belongs in that number).
Choosing the target itself
A reverse solver is only as good as the target you feed it. Three anchors help. First, your margin must cover more than the product: overhead, returns, your time, and the discounts you'll inevitably run all live inside it — so pad the target above bare survival. Second, different channels warrant different targets, because their fee stacks differ; a target that's comfortable direct-to-buyer may be unreachable through a high-commission platform (see pricing around marketplace fees). Third, sanity-check the solved price against reality: if hitting your margin requires a price the market laughs at, the math has done its job — it's told you to fix cost or channel, not to hope.
Where Sellculate fits in
This whole guide is one feature in Sellculate: enter cost plus a target margin to get the required selling price, or enter price plus a target margin to get the maximum cost you can pay — with shipping, packaging, platform fees, processor fees, listing fees, tax and discounts included in the solve. Fee profiles keep each marketplace's numbers ready (templates are starting points only; verify current rates). It's a local-first Android app with no account system and no analytics SDK.
Fee figures are illustrative. This guide is general pricing arithmetic, not tax, legal, or financial advice.