Published June 28, 2026 · Updated June 28, 2026 · 7 min read
Pricing a product wrong is one of the most common ways e-commerce sellers lose money. Price too low and you work hard for nothing. Price too high and you lose the sale to a competitor. Here's the complete formula for pricing any product for e-commerce.
Your total cost includes every expense you incur to get the product sold and delivered:
| Cost Component | Example (per unit) |
|---|---|
| Product cost (COGS) | $8.00 |
| Shipping to warehouse (freight ÷ units) | $1.20 |
| Import duty | $0.60 |
| FBA fulfillment fee | $3.50 |
| Platform referral fee (15%) | $4.50 |
| Advertising (target 10% of revenue) | $3.00 |
| Returns allowance (5% rate) | $0.75 |
| Total cost | $21.55 |
With a $30 selling price: profit = $30 − $21.55 = $8.45 per unit = 28% margin. That's a viable product.
Once you know your total cost and target margin, the formula is:
Selling Price = Total Cost ÷ (1 − Target Margin)If total cost is $15 and you want a 35% margin:
Price = $15 ÷ (1 − 0.35) = $15 ÷ 0.65 = $23.08Round to a market-appropriate price (e.g., $22.99 or $24.99).
Price & Margin Calculator — enter your cost and target margin to get selling price, or enter your price to see margin.
This is the most common pricing mistake. Markup and margin are both percentages but they're calculated differently:
| Markup | Margin | |
|---|---|---|
| Formula | Profit ÷ Cost | Profit ÷ Selling Price |
| Example | $5 profit on $10 cost = 50% markup | $5 profit on $15 price = 33% margin |
| Used for | Internal cost-plus pricing | P&L, investor metrics, fee calculations |
Amazon referral fees are expressed as a percentage of selling price — that's a margin calculation. If Amazon takes 15% of revenue, and you calculated that as 15% of your cost, you've underpriced and will lose money.
Cost-plus pricing gives you a floor. Market pricing tells you what buyers will actually pay. The two must intersect:
Most sellers underprice, especially at launch. Signs you should raise prices:
Test a 10–15% price increase and monitor conversion rate for 2 weeks. Often the conversion drop is smaller than the margin gain.
Price = Total Cost ÷ (1 − Target Margin). For example, $15 cost at 40% target margin = $15 ÷ 0.60 = $25.
15–30% net margin is healthy. Amazon FBA sellers typically need 20–30% before advertising to stay profitable after ad spend.
Markup is profit as % of cost; margin is profit as % of selling price. A 50% markup = 33% margin. Always use margin when evaluating platform fees and P&L.
Sum all costs per unit (COGS + fees + freight + ads). That's your break-even. Your actual selling price should be 20–40% above break-even.