Ecommerce margin guide

What is a good profit margin for ecommerce? Measure the right margin first.

Is 10% good? 20%? 50%? The percentage only becomes useful when you know which costs are included and which type of margin you are comparing.

Quick answer: There is no universal “good” ecommerce profit margin. A useful margin is one calculated consistently from your own economics and strong enough to cover the costs, risk and profit goals of your business. Gross margin, contribution margin and net margin answer different questions, so compare like with like.

Why one “good margin” number can mislead you

A store can look highly profitable when you measure selling price against product cost alone, then look very different after fulfillment, payment fees, discounts, returns, advertising and overhead are considered. This is why two businesses can both claim a 30% margin while describing different economics.

Before comparing your number with another store or benchmark, ask: 30% of what, after which costs?

Gross margin vs contribution margin vs net margin

MarginWhat it helps answerTypical cost scope
Gross marginHow much is left after the direct product cost?Revenue minus COGS
Contribution marginHow much is left to fund acquisition and overhead?Revenue minus COGS and relevant variable/order costs
Net marginHow much profit remains after the wider business costs?Broad operating costs and expenses

The exact accounting treatment can vary by business. The important point for decision-making is to use a consistent definition and know what your percentage includes.

Core margin formulas

Gross margin % = (Revenue − COGS) ÷ Revenue × 100

Modeled order profit = Selling price − Entered order costs

Modeled order profit margin % = Modeled order profit ÷ Selling price × 100

Keeplytics' Profit Margin Calculator lets you model product cost, shipping, percentage fees, advertising and other variable costs so you can see what remains per order.

What do 10%, 20%, 30%, 40% and 50% margins mean?

The table below shows how much profit remains from a $100 sale at different after-cost margins. It is an illustration, not a universal benchmark.

Modeled marginProfit on $100 revenueCosts represented by the model
10%$10$90
20%$20$80
30%$30$70
40%$40$60
50%$50$50

Is a 10% ecommerce profit margin good?

It can be. If the 10% is measured after the costs relevant to your decision, it represents $10 retained from each $100 of revenue in that model. But a 10% gross margin and a 10% net margin are not comparable.

Is a 20% ecommerce profit margin good?

A 20% after-cost margin leaves twice as much profit per $100 of revenue as a 10% margin. That extra room can help absorb volatility in advertising, shipping, returns or discounting. Whether 20% is sufficient still depends on what the calculation excludes and what the business needs to fund.

Is a 30% or higher margin good?

A 30%+ after-cost margin can provide substantial room at the order level, but very high percentages deserve the same scrutiny as low ones. Make sure costs have not been omitted and that the margin definition matches the decision you are making.

Calculate your own margin

Enter your selling price, product cost, shipping, fees, advertising and other variable costs to see modeled profit per order, margin, markup and contribution before ads.

Calculate my profit margin →

Worked example: a $49.95 ecommerce order

Suppose an order sells for $49.95. Product cost is $10, shipping is $4.89, payment/platform fees are 3% of revenue, and advertising costs $10 per order. The percentage fee is about $1.50, giving modeled costs of about $26.39 and modeled profit of about $23.56.

$49.95 − $10.00 − $4.89 − $1.50 − $10.00 ≈ $23.56 profit

$23.56 ÷ $49.95 × 100 ≈ 47.2% modeled order margin

This does not mean the whole business has a 47.2% net margin. Fixed overhead, returns, taxes and other expenses may still sit outside the simplified order model.

How advertising changes the picture

Advertising is one of the easiest reasons a healthy-looking product margin turns into weak actual profit. A product can have an attractive gross margin before customer acquisition but leave little after ad spend. This is why margin and ROAS should be analyzed together.

Once you know the contribution available before ads, use the Break-Even ROAS Calculator and Maximum CPA Calculator to translate that margin into acquisition limits.

One $100 order: gross margin, contribution and profit after ads

Here is why an ecommerce store can report several different margins for the same sale. Assume $100 in revenue, $30 in product cost, $10 in shipping and fulfillment, a $3 payment fee and $20 in advertising. All figures below use the same $100 revenue basis.

StageAmount remainingMargin on revenue
After $30 product cost$7070% gross margin in this example
After another $10 shipping and $3 fee$5757% contribution before ads
After another $20 advertising$3737% modeled order margin after ads

The $37 still needs to contribute toward any fixed overhead, returns and other expenses excluded from this example. It is not automatically net profit. State explicitly whether your contribution figure is before or after advertising when comparing results.

How much can you spend on ads and retain a 20% order margin?

For this order, a 20% after-ad margin means retaining $20. With $57 available before ads, the advertising budget is $37 per order:

Maximum CPA for this goal = $57 − $20 = $37

Target ROAS = $100 ÷ $37 ≈ 2.70×

Spending the full $57 on ads reaches order-level break-even instead, leaving nothing for the omitted costs. Use the Maximum CPA Calculator to model your own goal, and the Good ROAS Guide to understand the difference between break-even and target ROAS. These are simplified planning thresholds, not industry benchmarks or promises of campaign performance.

How to calculate a selling price for your desired margin

If your modeled dollar costs per order are fixed, divide them by the share of revenue left after your desired margin. If you also pay a percentage fee on revenue, subtract that fee rate from the denominator:

Use the Ecommerce Product Pricing Calculator to solve the same relationship with your own costs, fee rate, return allowance, advertising cost and target margin.

Selling price = Fixed dollar costs per order ÷ (1 − Fee rate − Desired margin)

For example, product cost of $30, shipping of $10 and planned advertising of $20 total $60. With a 3% revenue-based fee and a 20% desired order margin, the price is $60 ÷ (1 − 0.03 − 0.20) ≈ $77.92. At that price, the fee is about $2.34 and the modeled profit is about $15.58, or 20% of revenue.

Enter rates as decimals and keep the denominator positive. Include all relevant fixed dollar costs in the numerator, and do not count the percentage fee twice. This model assumes those dollar costs, including planned CPA, stay unchanged when price changes; discounts, taxes, returns and changes in conversion rate require separate consideration.

Profit margin vs markup

Margin divides profit by selling price. Markup divides profit by cost. They are not interchangeable. If an item costs $50 and sells for $100, the $50 difference is a 50% margin on selling price but a 100% markup on cost.

How to improve ecommerce margin without guessing

Start with the largest controllable drivers: product cost, shipping and fulfillment, payment/platform fees, discounting, return leakage, selling price and customer acquisition cost. Test one change at a time in your unit economics rather than chasing a generic benchmark.

A practical margin decision process

Choose the margin definition you need, include the relevant costs, calculate the current percentage, stress-test it when costs rise, then connect it to your acquisition economics. Recalculate whenever price, shipping, fees or ad costs materially change.

Good Ecommerce Profit Margin FAQ

What is a good profit margin for ecommerce?

There is no single percentage that fits every ecommerce business. First identify whether you mean gross, contribution or net margin, then compare businesses using the same definition and consider acquisition costs, fulfillment, returns, overhead and growth goals.

Is a 10% profit margin good for ecommerce?

It can be, depending on the margin definition and what costs are included. Ten percent after a broad set of costs means something very different from 10% gross margin before fulfillment, advertising and overhead.

Is a 20% profit margin good?

A 20% after-cost margin provides more room than a 10% margin, but whether it is sufficient depends on the costs included and what the business needs to fund.

What is the difference between gross margin and net margin?

Gross margin generally focuses on revenue after cost of goods sold. Net margin is broader and reflects profit after the wider costs of running the business.

Should advertising be included in profit margin?

Include advertising cost when you want to understand after-acquisition order economics. Keep it separate when you specifically want to examine contribution before customer acquisition.

Keeplytics provides planning calculators and educational information, not accounting, tax or financial advice.

More free seller calculators

TikTok Shop fees · Walmart fees · Mercari fees · eBay fees · Square fees · Poshmark fees · Amazon FBA fees · Black Friday discount profit · Markup vs margin · Shopify fees · Etsy fees · Shopify vs Etsy · PayPal fees · Stripe vs PayPal · Gumroad vs Payhip vs Etsy · Break-even ROAS · Maximum CPA · Profit margin