PricingProfitE-commerce

How to Price a Product for E-commerce: The Complete Formula

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.

Step 1: Calculate Your Total Cost Per Unit

Your total cost includes every expense you incur to get the product sold and delivered:

Cost ComponentExample (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.

The Pricing Formula

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.08

Round 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.

Markup vs Margin: Don't Confuse Them

This is the most common pricing mistake. Markup and margin are both percentages but they're calculated differently:

MarkupMargin
FormulaProfit ÷ CostProfit ÷ Selling Price
Example$5 profit on $10 cost = 50% markup$5 profit on $15 price = 33% margin
Used forInternal cost-plus pricingP&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.

Competitive Pricing: What the Market Will Bear

Cost-plus pricing gives you a floor. Market pricing tells you what buyers will actually pay. The two must intersect:

Psychological Pricing

When to Raise Prices

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.

Frequently Asked Questions

How do you calculate product price from cost?

Price = Total Cost ÷ (1 − Target Margin). For example, $15 cost at 40% target margin = $15 ÷ 0.60 = $25.

What is a good profit margin for e-commerce?

15–30% net margin is healthy. Amazon FBA sellers typically need 20–30% before advertising to stay profitable after ad spend.

What is the difference between markup and margin?

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.

How do I find my break-even price?

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.

Related Tools

→ Price & Margin Calculator→ Break-Even Price Calculator→ Landed Cost Calculator→ Amazon FBA Profit Calculator
← All articles