Gross margin in one sentence
Gross margin is gross profit expressed as a share of revenue. Gross profit is the dollar figure; gross margin is that figure divided by sales and shown as a percentage.
The distinction matters because a percentage lets you compare a five-dollar sticker to a five-hundred-dollar jacket on equal footing. Revenue alone tells you nothing about whether a sale was worth making — margin does.
The gross margin formula
The formula has two moving parts: revenue and cost of goods sold (COGS).
Gross margin % = (Revenue − COGS) ÷ Revenue × 100
COGS is the direct cost of the thing you sold — materials, the blank product, print or manufacturing, and the labor baked into producing it. It excludes marketing, rent, software, and salaries that aren't tied to a specific unit. Getting the boundary of COGS right is the whole game; if you're unsure what belongs inside it, our COGS formula breakdown walks through the line items. And because margin is built on top of sales, it helps to be precise about what counts as revenue in the first place — the revenue formula guide covers that.
A worked example
Say you run a print-on-demand apparel store. Your average order is forty dollars. The blank garment, the print, and the supplier's base fulfillment charge come to sixteen dollars.
Gross profit = $40 − $16 = $24
Gross margin = $24 ÷ $40 = 0.60 = 60%
So sixty cents of every dollar survives the cost of the product. Scale that to a month of one thousand orders:
Revenue = 1,000 × $40 = $40,000
COGS = 1,000 × $16 = $16,000
Gross profit = $40,000 − $16,000 = $24,000
That twenty-four thousand dollars is what's left to pay for ads, shipping, payment fees, staff, and — if anything remains — profit. Gross margin doesn't promise you keep it; it tells you how much is on the table before the bills arrive.
Why gross margin is really a profit question
Here's the part most explainer articles skip: gross margin is the ceiling on every other margin you'll ever earn. You can't have a healthy net margin sitting under a broken gross margin, because gross profit is the only pool the rest of the business draws from.
Watch what happens to the same forty-dollar order once real variable costs come off:
$40 revenue − $16 COGS = $24 gross profit (60%)
$24 − $5 shipping − $1.60 processing − $1.40 pick/pack = $16 (40%)
$16 − $10 ad spend = $6 (15%)
That sixty-percent gross margin is really fifteen percent once ads and fulfillment are paid. This is the number that decides whether growth makes you money or quietly drains it — and it's why raising gross margin matters more than raising revenue. A few points of gross margin flow straight down to that last line. If that last line is where your attention is, our guide on how to improve gross profit covers the levers.
What is a good gross margin?
There's no universal number, and any article that gives you one is misleading you. A good gross margin depends entirely on your industry, because "direct cost" means something wildly different for software than for a supermarket.
Across all industries, the average gross margin sits at roughly thirty-seven percent, according to Vena's compilation of NYU Stern data. But that blended figure hides an enormous spread by sector, per the same Vena / NYU Stern dataset:
- System and application software averages about seventy-two percent gross margin — code costs almost nothing to copy.
- General retail runs near thirty-one percent, and grocery closer to twenty-six percent, on thin per-item spreads.
- Auto and truck manufacturing sits around twelve percent, weighed down by heavy materials and capital costs.
The lesson isn't the specific numbers. It's that a thirty-percent margin is comfortable for a grocer and alarming for a software company. Judge your gross margin against your own sector, not the market average, and watch its direction over time — a margin trending down quarter over quarter is a louder signal than any benchmark.
A few practical rules of thumb:
- Compare to your own industry, using a source like the Vena / NYU Stern data above, not a generic target.
- Watch the trend. A stable or rising margin beats a high one that's slipping.
- Rebuild it when your costs change. Supplier price hikes and new fees quietly erode margin months before you feel it.
Gross margin vs. markup (the classic mix-up)
Markup and margin describe the same gap between price and cost, but against different bases. Margin is the gap over price; markup is the gap over cost.
Margin % = (Price − Cost) ÷ Price → ($40 − $16) ÷ $40 = 60%
Markup % = (Price − Cost) ÷ Cost → ($40 − $16) ÷ $16 = 150%
Same twenty-four-dollar gap, two very different-looking numbers. A one-hundred-fifty-percent markup is a sixty-percent margin. Suppliers and marketplaces usually quote markup; your income statement quotes margin. Confusing them is how sellers accidentally price below their true cost.
Gross margin vs. contribution margin vs. net margin
These three get used interchangeably and shouldn't be:
- Gross margin subtracts only COGS. It asks: is this product worth making?
- Contribution margin subtracts all variable costs — COGS plus shipping, fees, and fulfillment. It asks: is this product worth selling through this channel?
- Net margin subtracts everything, including fixed costs like rent and salaries. It asks: did the business make money?
For the print-on-demand store above, the same order is sixty percent gross, forty percent contribution, and — after fixed costs — often a single-digit net margin. Each layer answers a different question, and mixing them up is one of the fastest ways to misread your own numbers. The ecommerce metrics guide maps how all of these relate, alongside metrics like CPM that shape the ad costs sitting between gross and net.
The gross margin trap in ecommerce
A high gross margin can hide a business that loses money on every order. The forty-dollar sale looked great at sixty percent — until ten dollars of ad spend and eight dollars of fulfillment turned it into six dollars of contribution.
The danger is that gross margin is easy to see and the costs below it are scattered across Shopify, Meta, Google, and your payment processor. Most sellers know their gross margin and have no idea what an order actually nets after the ad that sold it. That blind spot is exactly where thin-margin stores bleed out.
This is the problem PodVector is built for. It connects Shopify, Meta Ads, Google Ads, Printify, and Printful, and stitches them into true per-order profit — so you see not just gross margin but what each order keeps after the specific ad, shipping, and fee that touched it. Victor, its AI operator, reads that live data, flags where margin is leaking, and can take Shopify-side actions with your approval. Victor reads your ad data to explain what's happening, but he does not touch your ad account — he proposes the move and leaves the platform to you.
FAQs
Is gross margin the same as gross profit?
No. Gross profit is a dollar amount — revenue minus COGS. Gross margin is that same figure expressed as a percentage of revenue. In the example above, twenty-four dollars is the gross profit and sixty percent is the gross margin. Use profit to size the pool of money; use margin to compare across products or against other companies.
What is a good gross margin for a small ecommerce store?
It depends on your model, but many product-based ecommerce brands aim for a gross margin high enough to absorb shipping, payment fees, and ad spend and still leave contribution margin behind. There's no single right number — compare against your own category using industry data like the Vena / NYU Stern figures, and make sure the margin survives once variable costs come off, not just on paper.
What's the difference between gross margin and net margin?
Gross margin subtracts only the direct cost of the product. Net margin subtracts everything — including shipping, marketing, rent, and salaries — to show what the business actually kept. Gross margin is always higher than net margin, and the gap between them is where all your operating and marketing costs live.
Can gross margin be too high?
Rarely in a bad way, but a very high gross margin can tempt you to ignore the costs below it. A product with eighty percent gross margin still loses money if it takes forty dollars of ad spend to sell a fifty-dollar item. Gross margin is a starting point, not a verdict — always trace the order down to contribution and net margin before calling it profitable.
How do I improve my gross margin?
You lift gross margin by raising price, lowering COGS, or shifting your mix toward higher-margin products. Renegotiating supplier costs, reducing waste, and cutting low-margin SKUs all help. The mechanics — and the traps — are covered in our guide on how to improve gross profit.