The right ecommerce price is the one that covers all variable costs and leaves your target margin — including ads. A common mistake is pricing from cost + markup and only later realizing ads and returns wiped the margin. The formula below prices for a target margin after everything variable.
Use it before launching a product, and re-run it whenever COGS, ad costs, or return rates shift by more than 10%.
The formula
Price = (COGS + Shipping + Ad cost per order + Return reserve) ÷ (1 − Target margin − Platform fee %)
Target margin is expressed as a decimal (0.25 for 25%). Platform fee is also a decimal (0.029 for Shopify Payments; higher for marketplaces).
Step-by-step build
- Calculate landed COGS — supplier price, freight in, duty, inbound shipping.
- Add shipping absorbed per order (net of what the customer pays).
- Add ad cost per order — total ad spend ÷ orders from ads. If unknown, start with 15% of projected AOV.
- Add a return reserve — 5% for stable categories, 15–30% for apparel and beauty.
- Sum these variable costs.
- Divide by (1 − target margin − platform fee %). The result is your minimum viable price.
Example calculation (USD)
USD worked example — Shopify apparel brand
| Line | Value |
|---|---|
| Landed COGS | $16.00 |
| Shipping absorbed | $5.00 |
| Ad cost per order | $9.00 |
| Return reserve (20% of expected price) | $12.00 |
| Sum of variables | $42.00 |
| Target margin | 25% |
| Payment fee | 3% |
| Price = $42 ÷ (1 − 0.25 − 0.03) | $58.33 |
| Recommended list price | $59.00 |
If the market price for a comparable product is $49, you have three choices: cut COGS, cut ad cost, or accept a smaller margin. Never launch below break-even hoping ads will save you.
Common mistakes to avoid
- Pricing from cost + markup without modeling ads.
- Using a return reserve as a percentage of COGS instead of a percentage of price.
- Assuming ad cost per order stays flat as you scale — it usually rises.
- Ignoring platform fees on marketplaces where they are higher than Shopify Payments.
- Not rerunning the formula after a big shipping rate change.
Best practices
- Rerun the formula every quarter or after any COGS/ad-cost change.
- Segment by product tier — cheap SKUs cannot absorb the same ad cost per order as premium.
- Have a floor price you never go below, even on promotions.
- Compare your calculated price against the market — if you can't match, fix costs, don't discount margin.
- Model at target ad cost, then track actual and update.
Frequently asked questions
How do I estimate ad cost per order for a new product?
Look at your existing store's average cost per order from paid, or use 15% of expected AOV as a placeholder. Update after your first 200 orders.
Is a return reserve really necessary?
Yes if your category has real return rates. Ignoring it means every return eats margin from other orders.
Should I price for gross or net margin?
Net. Gross margin ignores ads and shipping, which are the two costs most likely to move.