Gross Margin

Gross margin is revenue minus cost of goods sold, expressed in dollars or as a percentage of revenue, and it shows what is left from sales after the direct cost of the products.

A price tag minus the cost of the product equals the margin coin.

Why it matters for ecommerce brands

Gross margin is the budget for everything after the product itself: shipping, fulfillment, marketing, and overhead. It decides how much you can spend to acquire a customer and how generous free shipping can be. Calculate it with landed cost, or it will be overstated, especially when tariffs rise. For example, $500,000 of net revenue and $200,000 of COGS leave $300,000 of gross profit, a 60% gross margin. A $5 tariff on a $40 product that sells for $100 cuts its margin from 60% to 55%.

Formula and calculator

Gross margin % = (net revenue − COGS) ÷ net revenue × 100

Try your own numbers

$
$

Gross profit = $300,000

Gross margin = 60.0%

Common questions

What is the difference between gross margin and markup?
Gross margin divides profit by the selling price, while markup divides profit by the cost. An item that costs $40 and sells for $100 has a 60% gross margin but a 150% markup.
How do you calculate gross margin?
Subtract COGS from net revenue, divide by net revenue, and multiply by 100. $500,000 of revenue and $200,000 of COGS give a 60% gross margin.
What is a good gross margin for an ecommerce brand?
It varies by category and business model. The real test is whether it covers shipping, fulfillment, marketing, and overhead with profit left over, which is what contribution margin checks.