Gross Margin Formula for DTC Brands, and Why It Isn't Contribution Margin

Last updated: November 2026

The standard gross margin formula is gross margin = (revenue - COGS) ÷ revenue, shown as a percentage. Revenue minus cost of goods sold (COGS) is gross profit in dollars, and dividing it by revenue tells you how many cents of every sales dollar are left once the product itself is paid for.

At Move the Needle we give that number its own name, product margin, and take gross margin one step further. Every DTC order also has to be paid for, packed, shipped and sometimes returned, and those costs come with each order just like the product does. So in the Four Margins from our book Beyond ROAS, gross margin is what's left after paying every cost to deliver the order to the customer:

Gross margin = (net revenue - (COGS + cost of delivery)) ÷ net revenue

Cost of delivery (COD) covers shipping and carrier fees, fulfillment center costs, packaging materials, returns processing and payment processing fees. Payment processing is also called cost of transaction (CoT). It can be broken out and tracked on its own, but it sits inside cost of delivery in the Four Margins, because delivery starts with the payment.

Hypothetical example: a DTC brand's average order brings in $80 of net revenue. The product costs $22 at landed cost, and cost of delivery (shipping, fulfillment, packaging, returns and payment processing) comes to $10.80. Product margin is ($80 - $22) ÷ $80 = 72.5%. Gross margin is ($80 - $22 - $10.80) ÷ $80 = $47.20 ÷ $80 = 59.0%.

From Nick: At the Move the Needle Academy, we define gross margin as what's left after shipping, fulfillment and payment fees, so a gross margin that only looks healthy until those costs show up isn't something I've come across. What I usually see is brands being too vague with their COGS, or counting everything as COGS, and then running their numbers without shipping costs and transaction fees. Or they start selling on TikTok Shop and don't account for how high its transaction fees are.

Run your own numbers below. Use the same basis for every field: one order, one product, or a whole month.

Gross margin calculator for DTC brands
Prefilled with the hypothetical order on this page. Nothing you type leaves your browser.

ResultValue
Product profit (revenue - COGS)
Product margin (the standard gross margin formula)
Markup on COGS
Gross profit (revenue - COGS - cost of delivery)
Gross margin (Four Margins)
Cost of delivery as a share of revenue
Break-even ROAS (1 ÷ gross margin)
Price that hits your target gross margin, with the same costs

The gross margin formula, step by step

  1. Start with net revenue. Take sales after discounts, refunds and returns, not the gross sales figure at the top of your store's report. A margin worked out on gross sales flatters every brand that discounts.
  2. Subtract COGS. That gives you product profit. Divide it by net revenue for product margin, which is the standard gross margin formula: $58 ÷ $80 = 72.5%.
  3. Subtract cost of delivery. That gives you gross profit in the Four Margins: $58 - $10.80 = $47.20.
  4. Divide by net revenue and multiply by 100. $47.20 ÷ $80 = 0.59, or 59.0%.

Some people call the result a gross margin ratio when they leave it as a decimal (0.59) instead of a percentage. It's the same number.

Why we put delivery and transaction costs in gross margin

Most accountants and most income statements put only COGS above the gross profit line. Shipping, fulfillment and payment fees land further down, often inside operating expenses. That's a valid way to keep books, and it's what the standard formula above measures. When we work with the books a brand already has, the gross profit line there usually matches what we call product profit.

We move delivery and transaction costs up into gross margin on purpose, for three reasons:

  • They come with every order. No order ships without a payment fee, a box and a label. Costs that rise and fall with each order belong with the other per-order costs, not with rent and salaries.
  • They can be as big as the product. On a small or heavy order, getting it to the customer can cost close to what the product cost to make and land.
  • Gross margin is the pool for marketing. What's left after product and delivery is what marketing and operations both draw from. The book's example: with a 55% gross margin, a business that needs 15% for operations and 10% for profit has 30% left for all marketing.

Gross profit vs gross margin

Gross profit is dollars, gross margin is a percentage. The example order leaves $47.20 of gross profit, a 59.0% gross margin.

Both matter, but they answer different questions. The percentage lets you compare months, products and price points on the same scale. The dollars are what pay for marketing, the team and the rent. Scale the example up to 2,400 orders in a month and it looks like this:

Line (hypothetical month, 2,400 orders)DollarsShare of net revenue
Net revenue$192,000100%
COGS$52,80027.5%
Product profit (product margin)$139,20072.5%
Cost of delivery$25,92013.5%
Gross profit (gross margin)$113,28059.0%

Our P&L template lays out the lines in the order a DTC brand reads them, and the three financial statements guide shows where gross profit sits next to the balance sheet and cash flow.

What goes into COGS, and what goes into cost of delivery

Gross margin is only as honest as the costs you put in. COGS is the landed cost of each unit sold:

  • Supplier sourcing and procurement costs
  • International freight to bring the goods in
  • Customs, duties and tariffs
  • Broker fees to clear the border
  • Product packaging, labels and materials that are part of each unit

Our COGS formula guide works through landed cost line by line. Don't confuse inbound freight with last-mile delivery to the customer. That second one is cost of delivery, along with:

  • Shipping and carrier fees
  • Fulfillment center costs (pick, pack and handling)
  • Packaging materials: shipping boxes, mailers, wrap
  • Payment processing fees (cost of transaction)
  • Returns processing

The DTC finance glossary has the exact definitions we use for both.

Where gross margin goes wrong

The mistakes we see are rarely about the formula. They're about what goes into it:

  • Vague COGS. A brand uses the supplier price and leaves out freight, duties or broker fees, so product margin and gross margin both read high.
  • Everything lumped into COGS. Shipping, fulfillment and fees all go into one cost line. The total may be right, but you can't tell whether the product or the delivery is the problem.
  • Shipping or transaction fees left out. The brand runs its numbers on revenue minus COGS, then plans ad spend as if the gap were all available for marketing.
  • New channel, old numbers. A brand starts selling on a marketplace such as TikTok Shop and keeps using the margin it knows from its own site, without adding the marketplace's fees.

Marketplace fees: a TikTok Shop example

On your own site, cost of transaction is mostly payment processing. Beyond ROAS puts it at a typical 2.9% + $0.30 per transaction; check your own processor's rate. On a marketplace, the platform's fee takes that place, and it's often higher.

TikTok Shop in the US charges a referral fee on each completed order. Its category table, updated October 8, 2026, lists 6% for most categories and 5% for five fine jewelry sub-categories and Pre-Owned. The fee is worked out on what the customer paid, including any shipping they paid, plus any discount TikTok funded, minus tax. TikTok's policy says the referral fee covers all TikTok Shop fees except shipping and tax, so there's no separate payment processing line. (Sources: TikTok Shop referral fees by category, TikTok Shop referral fee policy, read November 24, 2026. Fees change, so check your Seller Center.)

Take the same $80 order, sold both ways. Shipping, fulfillment, packaging and returns are held at $8.18 an order on both channels to keep the comparison clean (hypothetical; your real shipping costs on TikTok Shop may differ).

Per order (hypothetical)Own siteTikTok Shop
Net revenue$80.00$80.00
COGS$22.00$22.00
Shipping, fulfillment, packaging, returns$8.18$8.18
Transaction fee$2.62 (2.9% + $0.30)$4.80 (6% referral fee)
Cost of delivery$10.80$12.98
Gross profit$47.20$45.02
Gross margin59.0%56.3%

The fee alone takes 2.7 points of gross margin. Three more TikTok Shop costs are worth putting in the model before you launch:

  • Affiliate commissions. Creators who sell your product earn the commission you set, from 1% to 80% per TikTok's affiliate setup guide (updated November 10, 2026), and you still pay the referral fee on the same order. In the Four Margins, affiliate commissions are direct marketing, so they come out in contribution margin, not gross margin. At a 15% commission (example rate), the $80 order above would hand $12 to the creator.
  • Smart Promotion. An optional program that charges 3.5% of shop GMV outside campaigns and 1 to 2 points more during campaigns, and is required for major platform campaigns, per TikTok's Smart Promotion FAQ (updated September 24, 2026). Beyond ROAS doesn't cover it. Our opinion: it's a promotion cost, so it fits direct marketing, but count it somewhere.
  • Refunds. When an order is refunded, TikTok keeps a refund administration fee of 20% of the referral fee, capped at $5 per SKU, per the referral fee policy above.

Run your marketplace orders through the calculator above with the platform's fee in cost of delivery, and compare them with your own site before you set prices or creator commissions.

Where gross margin sits in the Four Margins

Each of the Four Margins shows what's left of a dollar of revenue after one more layer of cost:

MarginFormulaExample orderTactical Lever
Product margin(Revenue - COGS) ÷ Revenue72.5%COGS
Gross margin(Revenue - COGS - COD) ÷ Revenue59.0%Cost of delivery (COD)
Contribution margin(Revenue - COGS - COD - Direct marketing) ÷ Revenuedepends on ad spendMER
Net profit margin(Revenue - all of the above - OpEx) ÷ Revenuedepends on fixed costsOpEx

Reading the first two side by side is the useful part. High product margin with low gross margin points at delivery: shipping rates, packaging, fulfillment fees, return rates, or a channel with high fees. A low product margin points at the product: supplier price, freight, duties, or a price that's too low for what the product costs to land.

Seeing where the money from an order goes, layer by layer, is the base of our Unit Economics course ($0). It walks through what's left of an order once everyone's been paid.

Gross margin vs markup

Both start from a profit figure, but they divide by different numbers. Margin divides by the price. Markup divides by the cost. On the product layer of the example:

  • Product margin = product profit ÷ revenue = $58 ÷ $80 = 72.5%
  • Markup = product profit ÷ COGS = $58 ÷ $22 = 263.6%

Mix them up when pricing and the error goes one way: a 50% markup is only a 33.3% margin, so a brand that thinks it priced for a 50% margin has a lot less to spend than it planned. The markup vs margin guide has a conversion table and a pricing calculator.

Gross margin vs contribution margin

Gross margin stops before marketing. Contribution margin also takes out direct marketing: ad spend across all channels, affiliate commissions, and creator fees when the results can be measured directly. So it tells you whether the orders you buy pay their way. When we say contribution margin, we always mean the margin after marketing. The figure before marketing is gross margin.

The two are linked by one number: break-even ROAS = 1 ÷ gross margin. In the example that's 1 ÷ 59.0% = 1.69x, because each $80 order has $47.20 to spend on getting it before it loses money. Our contribution margin guide picks up from there, and the break-even point guide adds fixed costs to show how many orders the business has to sell each month.

Why gross margin alone can mislead a DTC brand

  • The same product margin can hide very different delivery costs. Two hypothetical brands can both have a 72.5% product margin. If one ships a light product for $10.80 an order and the other ships something heavy for $22, the second keeps a 45.0% gross margin, not 59.0%.
  • A higher percentage can mean fewer dollars. A hypothetical $120 bundle with $40 of COGS and $14 of delivery leaves $66, a 55.0% gross margin. The $80 single order leaves $47.20 at 59.0%. The bundle has the lower margin and the bigger gross profit per order, and dollars are what cover costs.
  • Averages hide the mix. One blended gross margin can sit on top of a few products that carry the business and a few that lose money on every order. Run it per product, per channel or per customer group, and the decisions on what to restock, cut or push get clearer.
  • Discounts come straight out of it. Take 20% off the example order and revenue drops to $64 while costs stay at $32.80. Gross margin falls from 59.0% to 48.8%. Our Black Friday strategy guide works through what that does to a sale.
  • It says nothing about acquisition. A strong gross margin with expensive orders can still lose money. That's the job of contribution margin.

Is there a good gross margin?

Beyond ROAS starts with two checks: is product margin above 60% (and if not, is that normal for the category?), and is gross margin above 50%, with delivery costs under control? Missing either one doesn't settle the question by itself. It tells you where to look next. What a workable gross margin looks like for you depends on:

  • Your category and product. What the product is made of, and how much of the price is the product itself, sets the starting point.
  • How COGS is built. Where you source, how you ship it in, and the duties and tariffs on it all move landed cost, sometimes quickly.
  • Your price point and order value. Delivery costs are fairly fixed per order, so they take a bigger share of a small order than a large one.
  • Shipping weight, size and returns. These decide how far gross margin sits below product margin.
  • Channel mix. Marketplace orders carry different fees than orders on your own site.
  • How much marketing it has to fund. A brand that wins most of its revenue from repeat customers can run on a different gross margin than one that buys most of its orders.

The comparison that tells you the most is with your own history. If gross margin is rising while order volume holds, each order is carrying more for marketing and growth.

Gross margin FAQ

How do you calculate gross profit margin?

The standard formula: subtract COGS from net revenue, divide by net revenue, and multiply by 100. With $80 of revenue and $22 of COGS: ($80 - $22) ÷ $80 × 100 = 72.5%. In the Four Margins we call that product margin, and gross margin also subtracts cost of delivery: ($80 - $22 - $10.80) ÷ $80 × 100 = 59.0%.

What is the formula for gross margin in Excel?

With revenue in B2, COGS in C2 and cost of delivery in D2, gross margin is =(B2-C2-D2)/B2, formatted as a percentage. For the standard version (product margin), use =(B2-C2)/B2.

Is a 20% margin the same as a 25% markup?

Yes. Sell something for $100 that costs $80 and the $20 of profit is 20% of the price (margin) and 25% of the cost (markup). To turn a margin into a markup, divide the margin by 1 minus the margin: 0.20 ÷ 0.80 = 25%.

Is a 20% gross profit margin good?

It depends on what the 20% has to pay for. If it's the standard version, delivery, marketing and every fixed cost still have to come out of those 20 cents per dollar. Work out your break-even ROAS (1 ÷ gross margin, with cost of delivery in) and compare it with what your ads return now. That tells you more than any benchmark.

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

Gross profit is the dollar amount left after COGS and cost of delivery. Gross margin is that amount as a percentage of revenue. $47.20 of gross profit on $80 of revenue is a 59.0% gross margin.

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

Gross margin takes out the cost of the product and the cost of delivering it. Net margin takes out everything: marketing, salaries, software, rent and other operating expenses. A brand can have a strong gross margin and a negative net margin.

Should shipping be in COGS or in gross margin?

Inbound freight, getting product to your warehouse, belongs in COGS. Outbound shipping to the customer is cost of delivery, which also comes out before gross margin in the Four Margins. Accounting treatment varies, so ask your accountant how your books handle it, and calculate both product margin and gross margin either way.

Are TikTok Shop fees part of gross margin?

The referral fee is charged on every completed order and replaces payment processing, so it goes in cost of delivery and comes out before gross margin. Affiliate commissions you pay creators are direct marketing, so they come out in contribution margin.

Know which gross margin you're looking at

Most income statements show one gross margin, and it stops at COGS. The operators who grow on their own profit read two: product margin, and the gross margin that's left once every order has been paid for, packed and delivered. When the question comes up of whether there's room to spend more on ads, they already know how much each order can carry, on every channel they sell through.

The Move the Needle Academy →

Want to start with the core numbers first? Get the Starter Toolkit →

Nick Miller

Nick Miller

Co-author of Beyond ROAS. Fractional Head of Growth, $200M+ in managed ad spend, and formerly led the paid media team at the Tier 11 agency. I help DTC brands grow on profit, not ROAS.