Guide

How to Calculate Profit Margin in E-Commerce

Gross vs net margin, markup vs margin, and pricing for a target margin.

Selling a lot but earning little is e-commerce's most insidious trap, and the cause is almost always a wrong margin calculation. This guide walks through calculating margin correctly, the difference between markup and margin, and setting the sale price for a target margin.

Quick answer

Profit margin is profit as a proportion of the sale price: Net Margin = (Net Profit / Sale Price) × 100. Net profit is found by deducting commission, commission VAT, service fee, shipping, withholding, product cost, packaging, ads and return losses from the sale price. Markup (profit added on cost) and margin (profit relative to the sale price) are different things and, if confused, the price is set wrong. A healthy e-commerce net margin is generally 15-25%; to hit it, the price is worked backwards from the target margin with every cost included.

Summary: what you need to know

  • Margin = profit relative to sale price; markup = profit relative to cost
  • Net profit appears after commission, VAT, shipping, service fee and cost
  • Gross margin misleads; decisions should be made on net margin
  • Price is worked backwards from the target margin
  • A healthy e-commerce net margin is generally 15-25%
  • The same margin does not yield the same profit in every category
1

What Is Profit Margin? Gross vs Net

Profit margin is the ratio of profit earned to the sale price, expressed as a percentage. It has two levels. Gross margin deducts only the product cost: (Sale Price − Product Cost) / Sale Price. This figure is optimistic and misleading because it ignores real costs such as commission, shipping and VAT. Net margin shows the real profit after all costs are deducted: (Net Profit / Sale Price) × 100. In e-commerce, decisions must be made on net margin; a product that looks like 40% gross margin can fall to a net 8% after commission and shipping. Example: on a product you sell for a certain price with a cost two-thirds of it, the gross margin may be 40%, but once 20% commission, VAT, shipping and the service fee are added, net profit can drop and net margin can fall to 10-13%. So the only valid answer to "is it profitable?" is the net margin.

2

Markup vs Margin

Confusing these two is the most expensive calculation mistake in e-commerce. Markup is profit as a percentage added on cost: (Sale − Cost) / Cost. Margin is profit as a proportion of the sale price: (Sale − Cost) / Sale. For the same product these two numbers are always different. Example: if you sell a product costing 100 for 150, the markup is 50% but the margin is 33%. A seller who says "I added 50% profit" is actually working at a 33% margin. The danger: many sellers add "30% profit" on cost (markup) and think it is margin; in reality their true margin is much lower and can turn into a loss once costs are deducted. The right practice: set your target as a margin and calculate the price accordingly. A tool that converts between markup and margin (Ecomiro's profit-margin calculator does this) eliminates the confusion.

Cost Sale price Markup (on cost) Margin (on price)
100 150 50% 33%
100 125 25% 20%
100 200 100% 50%

A seller who says "I added 50% profit" is actually working at a 33% margin. Set your target as a margin, not a markup.

Markup ↔ margin converter and target-margin pricing tool
3

The Net-Profit Formula: Every Cost Line

Real net profit is found by deducting all of these from the sale price: product cost (COGS), marketplace commission (on the VAT-included price), the VAT on the commission (20%), the fixed service fee and its VAT, shipping (by volumetric weight), withholding tax where it applies, packaging material, ad/marketing cost, and the expected return loss (return rate × related costs). Formula: Net Profit = Sale Price − Product VAT − Commission − Commission VAT − Service Fee − Shipping − Withholding − Product Cost − Packaging − Ads − Return Loss. Most sellers forget the ad and return lines; yet in a high-return category these two lines alone can erode the margin. The price must not be fixed without a net-profit calculation that accounts for every cost line.

4

Setting the Sale Price for a Target Margin

Professional pricing is done not as "cost plus estimated profit" but backwards from a target margin. First you set the net margin you want to reach (for example 20%). Then you put all cost lines (cost, commission percentage, shipping, service fee, VAT) into the equation and solve for the sale price that yields that margin. The point to watch is that commission depends on the sale price itself — as the price rises, the commission amount rises too; so the calculation is circular and rough manual estimates mislead. In practice you need a calculator: you enter the cost and the target margin, and the tool computes the recommended sale price with commission and costs included. Ecomiro's profit-margin calculator does exactly this; enter the target margin and it returns the recommended sale price with commission and VAT included. So "what price gives me a 20% net margin?" is answered in seconds.

5

What Is a Healthy Margin? (Category Bands)

There is no single "correct margin"; the healthy range varies by category, volume and business model. A widely accepted threshold is that net margin should not fall below 15% in e-commerce; below that, a small shock such as ads, returns or currency swings zeroes the profit. On low-priced, high-volume products the margin can be low (10-15%) but the volume high; on boutique, niche or branded products the margin can reach 30-50%. In intensely competitive categories such as electronics, margins are thin and offset by volume. The key is to judge the margin against your own cost structure, not the category average: if you have a high return rate, target a higher margin. Tracking the margin continuously is also essential; commission and shipping hikes quietly pull it down. Ecomiro's analytics module reports the real net margin per product and per channel, so you catch products whose margin is eroding early.

  • General threshold — Net margin should not fall below 15%; below it a small shock zeroes the profit
  • High-volume product — 10-15% margin, offset by volume
  • Niche / branded product — Can reach 30-50%
  • High return rate — Target a higher margin
6

Ways to Raise Your Margin

There are two directions to raise margin: increase revenue or reduce cost. On the revenue side: positioning the product better, raising basket value with bundles/sets, justifying the price with strong photos and descriptions, and avoiding needless price wars all help. On the cost side: negotiating a better purchase price with the supplier, avoiding overpaying commission by picking the right category, lowering shipping cost by optimising volumetric weight, reducing the return rate with clear descriptions and accurate photos, and cutting inefficient campaigns by measuring ad return are the most effective levers. Most sellers focus only on the sale price; yet optimising "invisible" costs such as shipping and returns often wins margin faster. Seeing net margin per product clarifies which lever to pull — you cannot improve a margin you do not measure.

Free tools

Related calculators

Free, no sign-up — run the numbers from this guide instantly:

FAQ

FAQ for this guide

Gross margin deducts only the product cost; net margin deducts commission, VAT, shipping, the service fee and all other costs. Decisions should always be made on net margin; gross margin is misleading.

No. Markup is profit relative to cost, margin is profit relative to the sale price. Selling a product costing 100 for 150 is a 50% markup but a 33% margin. Confusing them sets the price wrong.

There is no single ideal; generally net margin is advised not to fall below 15%. High-volume products run 10-15%, niche/branded products can reach 30-50%. Judge it against your own cost structure.

Put the cost and all costs (commission, shipping, VAT) into the equation and solve for the price that yields the target margin. Because commission depends on the price, the calculation is circular; using a profit-margin calculator is best.

Commission, shipping and cost hikes quietly pull the margin down. If you do not regularly track net margin per product and channel, a product you thought profitable may have slipped into a loss.

Simplify your marketplace management today.

Manage 7 marketplaces from one panel. 5-minute setup, cancel anytime.

Start free