Sellevate

Profit & margins

Gross profit margin explained

Gross profit margin is the percentage of revenue left after subtracting the cost of the goods you sold. It shows how much each dollar of sales has left to cover marketing, overheads and profit. The formula is (revenue − COGS) ÷ revenue × 100.

The gross profit margin formula

Formula

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

Revenue
sales for the period, after discounts and returns
COGS
cost of goods sold: what you paid for the products you sold in the period

You can work it out for a single product, using price and unit cost, or for the whole store over a month or year.

What counts as COGS for a Shopify store

For most online stores, COGS is the landed cost of the products you sold:

Usually in COGSUsually not in COGS
Supplier price per unitAd spend and marketing
Inbound freight to your warehousePayment processing fees
Import duties and customs feesShopify plan and app subscriptions
Packaging that ships with the productStaff, rent and software
Manufacturing or assembly costsOutbound shipping (varies by store)

Shopify can show gross profit in its reports when you enter a cost per item on each product. If costs are missing or out of date, the reported margin will be too high.

Worked example

Worked example: one month for a Shopify storeExample numbers

InputValue
Revenue (after discounts and returns)$50,000
COGS (landed cost of products sold)$21,000
  1. Gross profit = $50,000 − $21,000 = $29,000
  2. Gross margin = $29,000 ÷ $50,000 × 100 = 58%

So 58 cents of every sales dollar is left to pay for everything else: ads, shipping, fees, apps, staff and profit.

Shopify Profit Margin CalculatorYour real net margin after COGS, shipping, fees, and ad spend.

Gross margin vs net margin

Gross margin stops after product costs. Net margin keeps going until every cost is paid.

Gross marginNet margin
SubtractsCOGS onlyCOGS, operating expenses, interest and taxes
ShowsHow profitable your products areHow profitable the whole business is
TypicallyMuch higherMuch lower

A store can have a healthy gross margin and still lose money if ad spend, shipping and overheads eat the rest. The guide to gross profit vs net profit walks through the full waterfall from revenue to net profit.

Finding gross margin in Shopify

Shopify's profit reports include a Gross profit by product report. It shows net sales, cost, gross profit and gross margin for each product over the date range you choose, with gross margin calculated as (net sales − cost) ÷ net sales × 100.

Two things to know before relying on it:

For an accurate figure, enter landed cost as the cost per item and update it when a new batch costs more or less.

Why gross margin matters for online stores

Want this tracked automatically, every day?See which Google Ads campaigns actually make money, measured on real profit (POAS), not just revenue.Try Selvra OS

Common gross margin mistakes

How to improve gross margin

For what's typical in different categories, see what a good profit margin is for an online store.

FAQ

What's the difference between gross profit and gross margin?

Gross profit is a dollar amount: revenue minus COGS. Gross margin is the same thing as a percentage of revenue. A store with $50,000 revenue and $21,000 COGS has $29,000 gross profit and a 58% gross margin.

Is shipping part of COGS?

Inbound shipping, the cost of getting stock to you, is part of landed cost and belongs in COGS. Outbound shipping to customers is treated differently by different stores; many keep it as a separate fulfillment cost. Pick one approach and use it consistently.

Are payment processing fees part of COGS?

Usually not. Payment fees are normally treated as an operating or selling expense, alongside ad spend and apps, rather than a cost of the goods themselves.

Can gross margin be negative?

Yes, if products cost more than you sell them for, for example after deep discounts or when landed costs rise faster than prices. A negative gross margin means every sale loses money before any other cost is counted.