Sale Price Calculator (from Cost & Margin)

Set the right selling price from cost and the margin you need to hit.

$

What it costs you to make or buy one unit.

%

Margin on the selling price — not markup on cost.

Sale price $66.67
Profit per unit $26.67
Equivalent markup on cost 66.7% Same profit expressed as markup % on cost.

How to calculate sale price from margin

Sale price = Cost ÷ (1 − Target margin % ÷ 100)

To hit a 40% margin on a product that costs $40, price = 40 ÷ (1 − 0.40) = 40 ÷ 0.60 = $66.67. You keep $26.67 profit — which is 40% of $66.67, not 40% of cost.

Worked example: from cost to shelf price

Say you source a SKU for $28 and your category needs at least 35% gross margin to cover platform fees and returns:

  1. Convert margin to decimal: 35% → 0.35
  2. Divide cost by what's left after margin: $28 ÷ (1 − 0.35) = $28 ÷ 0.65
  3. Sale price = $43.08 — profit per unit is $15.08

This is the inverse of the profit margin calculator: there you start with price and cost; here you start with cost and the margin you need.

Margin vs markup — why the formula looks backward

A 40% margin is not the same as 40% markup. Markup is profit divided by cost; margin is profit divided by price. At $40 cost, a 40% margin price is $66.67 — that's a 66.7% markup on cost. Telling your team "add 40% on top of cost" prices you at $56 (28.6% margin), not $66.67. Use the markup calculator if you think in markup; use this tool when you know the margin you need for healthy ROAS and break-even targets.

How margin sets your ad budget ceiling

Every margin point changes what you can spend to acquire a sale. At 50% margin your break-even ROAS is 2x; at 40% it's 2.5x; at 25% it's 4x. Price too low and even a respectable campaign ROAS loses money. That's why serious sellers set margin first, then check the target ROAS calculator before scaling spend.

Pricing scenario: promo without destroying margin

You price at $66.67 (40% margin on $40 cost). A 20% off sale drops price to $53.33:

  • Profit per unit = $53.33 − $40 = $13.33
  • Margin on sale price = 13.33 ÷ 53.33 = 25%

Break-even ROAS jumps from 2.5x to 4x — the promo may need tighter ad targeting or higher AOV bundles to stay profitable. Always run discounts through the discount calculator before launching.

After you set price

Use contribution margin when variable costs beyond COGS apply — shipping, packaging, payment fees. Check break-even units against realistic monthly volume. If margin still looks thin after pricing, revisit cost or promo depth, not just ad creative.

For Amazon and marketplace sellers, remember platform fees count toward variable cost when setting CM — shelf price alone does not tell the full story.

Industry benchmarks

Ecommerce gross margin (typical) 40%–60%
SaaS gross margin (typical) 70%–90%
Retail keystone pricing 50% margin (= 100% markup)
Break-even ROAS at 50% margin 2x
Break-even ROAS at 40% margin 2.5x
Thin-margin categories often 15%–25% margin

Frequently asked questions

How do you calculate sale price from profit margin?

Divide cost by (1 minus margin percentage divided by 100). For $40 cost and 40% target margin: $40 ÷ 0.60 = $66.67 sale price.

What is the difference between margin and markup when pricing?

Margin is profit as a % of selling price; markup is profit as a % of cost. A 40% margin equals a 66.7% markup. This calculator uses margin — the same basis as profit margin and ROAS break-even math.

What margin should I target?

It depends on your category and ad spend. Ecommerce often targets 40–60% gross margin; SaaS higher. Your margin sets your break-even ROAS — thinner margins require higher ad returns to stay profitable.

Can margin be 100%?

A 100% margin means zero cost, which is unrealistic for physical products. Keep margin below 100% — the formula divides by (1 − margin%), which hits zero at 100%.

Does this include ad spend?

No — this is gross margin on product cost only. Ad spend comes out of gross profit afterward. Use target ROAS or the ROAS calculator to layer advertising on top.

How is this different from the markup calculator?

The markup calculator starts from cost and a known selling price (or markup %). This calculator starts from cost and a target margin % to output the price you should charge.

How do I price for a target ROAS?

First set margin with this calculator, then find break-even ROAS = 1 ÷ margin. Example: 40% margin → 2.5x minimum ROAS. Add a profit buffer in the target ROAS calculator before scaling ad spend.

Should I include shipping in the cost field?

Include any cost that scales per unit sold — product cost, inbound freight per unit, packaging. Outbound shipping can go in cost or be modeled separately in the contribution margin calculator if you sometimes subsidize shipping.

Related calculators