COGS Formula for DTC Brands: What Counts, Landed Cost and a Calculator

Last updated: November 2026

The COGS formula is beginning inventory + purchases - ending inventory, all at cost. What you get is the cost of the products that left your warehouse in the period, not what you paid suppliers that month. For a DTC brand the harder question is what goes into "cost" in the first place. The answer is the landed cost of each unit: the supplier price plus inbound freight, duties and customs, and the packaging that ships as part of the product. Shipping to customers, fulfillment, payment fees and ad spend sit below it.

Hypothetical example: a DTC brand starts the month with $60,000 of inventory at cost, receives a shipment that cost $30,400 landed and counts $52,400 of stock at month end. Its COGS for the month is $60,000 + $30,400 - $52,400 = $38,000. On $120,000 of net revenue, that leaves $82,000 of product profit, a 68.3% product margin.

From Nick: There was a Canadian apparel brand that was doing very well. They had launched an anxiety-reducing weighted hoodie, and they had a great product margin, and their gross margin was healthy too, until Donald Trump introduced his tariffs. They were sourcing their products from China, and all of a sudden their gross margin took a real hit once those tariffs were introduced. They had to look at moving their manufacturing to another country.

Put your own numbers in below. The first part works out landed cost per unit from a supplier shipment. The second gives you COGS, product profit and product margin for a month or any other period.

COGS and landed cost calculator
Prefilled with the hypothetical brand on this page. Nothing you type leaves your browser.

1. Landed cost per unit (one shipment)

2. COGS for the period (all inventory at cost)

ResultValue
Landed cost per unit
Added on top of the supplier price, per unit
Goods available for sale
Cost of goods sold (COGS)
COGS as a share of net revenue
Product profit (net revenue - COGS)
Product margin
Units that COGS covers at this landed cost

The COGS formula

COGS = beginning inventory + purchases - ending inventory

The first two terms together are your goods available for sale: everything you could have sold in the period. Whatever is still on the shelf at the end didn't sell, so it comes off. What's left is the cost of what did sell.

In the example, goods available for sale are $60,000 + $30,400 = $90,400. Take away the $52,400 still in stock and COGS is $38,000.

There's a second way to get to the same number when you know your units: COGS = units sold × landed cost per unit. If the brand sold 2,500 units that each cost $15.20 landed, that's $38,000 again. The inventory version is what your accountant uses at month end. The per-unit version is what you use to price a product, plan a promotion or check a single SKU.

The two only match when every unit carries the same cost. Once a new shipment lands at a different price, which units you count as sold first changes the answer. More on that in the valuation section below.

What goes into COGS for a DTC brand

COGS is the cost of getting a product ready to sell and into your stock. We use the same definition as our DTC finance glossary: the landed cost of the product.

CostIn COGS?Where it goes if not
Supplier or manufacturer price per unitYes
Inbound freight to your warehouseYes
Duties, tariffs, customs and broker feesYes
Packaging that's part of the product (the box or bottle it's sold in)Yes
Shipping to the customer, mailers and void fillNoCost of delivery
Pick, pack and 3PL feesNoCost of delivery
Payment processing feesNoCost of delivery
Ad spend, affiliates and influencer feesNoDirect marketing
Salaries, software, rent and agency retainersNoOperating expenses

That split follows the Four Margins: product margin after COGS, gross margin after cost of delivery, contribution margin after direct marketing and net profit margin after operating expenses. Our contribution margin guide walks through the layers below COGS.

Accounting P&Ls don't always draw the line in the same place. Some put outbound shipping or fulfillment inside cost of goods sold, others put inbound freight in operating costs. Those choices usually have accounting or tax reasons behind them, but they change the margin you see. If you compare your COGS with another brand's or with last year's, check where those lines sat first.

How to work out landed cost

Supplier quotes are per unit, but freight and duties usually arrive as one bill for the whole shipment. Spread those bills across the units in that shipment, then add the per-unit costs back on:

Landed cost per unit = supplier price + (freight + duties and fees) ÷ units + packaging per unit

For the example shipment of 2,000 units: $12.00 + ($3,000 + $2,400) ÷ 2,000 + $0.50 = $12.00 + $2.70 + $0.50 = $15.20. That's $3.20 a unit, or 26.7%, on top of the supplier price.

Leave that $3.20 out and the numbers built on COGS move with it. At $12.00 a unit the brand's 2,500 units sold would cost $30,000, and product margin would read 75.0% instead of 68.3%. Gross margin, contribution margin and markup and margin on each product all inherit the gap.

Two people can open the same P&L. One reads a 75% product margin off the supplier price. The other sees 68.3% from landed cost and already knows the real room there is for discounts and ad spend before the next order goes in.

How to calculate COGS step by step

  1. Count inventory at the start of the period, at cost. This is last period's ending inventory, so you only count once a month.
  2. Add purchases received in the period, at landed cost. Use stock that arrived, not purchase orders you paid. A deposit on a shipment still at sea isn't inventory yet.
  3. Count inventory at the end of the period, at cost. Use a stock count or your inventory system, valued the same way as the opening number.
  4. Subtract. Beginning inventory plus purchases minus ending inventory is COGS.
  5. Divide by net revenue. COGS as a share of net revenue, and product margin (1 minus that share), are what you track month to month.

Two things trip up the count. Stock that's damaged, lost or written off shrinks ending inventory, so it lands in COGS unless your accountant books it on its own line. Returned units that go back into sellable stock add to ending inventory. Pick one treatment for both and keep it the same every month, or the trend line stops meaning anything.

COGS is where the P&L and the balance sheet meet: stock sits on the balance sheet until it sells, then moves to the P&L. Our profit and loss statement template shows where it sits on a DTC P&L, and inventory turnover uses the same COGS figure to show how fast that stock turns into sales.

Reading COGS next to the balance sheet and cash flow is the core of our Three Financial Statements course. It walks a DTC brand through the P&L, balance sheet and cash flow statement together, so you can see where your product costs sit at every step and explain the next spend decision line by line.

FIFO, weighted average and LIFO

When every shipment costs the same, valuation doesn't matter. When freight rates, tariffs or supplier prices change between shipments, you need a rule for which cost leaves with each sale:

  • FIFO (first in, first out) assumes the oldest stock sells first. COGS reflects older costs, and ending inventory reflects the newest ones.
  • Weighted average blends every unit on hand into one average cost and updates it when a new shipment lands. Many inventory systems work this way.
  • LIFO (last in, first out) assumes the newest stock sells first. It's allowed under US GAAP but not under IFRS, and it's rare in small DTC brands.

When costs are rising, FIFO shows a lower COGS and a higher margin than restocking at today's cost would, and weighted average lands in between. The method is a choice for you and your accountant to make once and keep. For pricing and ad decisions, check margin against the landed cost of your next shipment, not only the cost already on the books.

COGS vs operating expenses

COGS moves with sales: sell more units and it goes up, sell none and it's zero. Operating expenses don't care how many units shipped this month. Salaries, software, rent and retainers get paid either way. A handy test is to ask: if sales stopped tomorrow, would this cost still come in? If yes, it's an operating expense.

That matters because a growing brand can watch COGS rise and feel fine, as long as product margin holds. A rising COGS share of revenue is the warning sign, not rising COGS dollars.

What is a good COGS percentage?

There's no universal good COGS percentage, and a single benchmark will mislead most brands. What a healthy number looks like depends on:

  • Category. Products with low manufacturing cost and high brand value carry a very different COGS share from heavy or commodity products.
  • What's in your COGS. A brand that puts fulfillment inside COGS will show a higher share than one that keeps it in cost of delivery.
  • Price and discounting. Heavy discounting lowers net revenue while COGS stays put, so the share climbs.
  • Channel mix. Wholesale prices are lower than your own store's, so a bigger wholesale share lifts COGS as a share of revenue.
  • Cost of delivery and marketing. A low COGS share can still leave little profit if shipping and ads take most of what's left.

The useful comparisons are your own: this month against last, each product against the others, and the margin at your next shipment's landed cost against the one on the books.

FAQ

How do I calculate the cost of goods sold?

Add beginning inventory and purchases for the period, then subtract ending inventory, all at cost. For example, $60,000 + $30,400 - $52,400 = $38,000 of COGS.

Is shipping included in COGS?

Inbound freight from your supplier is part of landed cost, so it goes in COGS. Shipping orders out to customers is a cost of delivery and sits below COGS in the DTC P&L structure we use.

Are ad costs part of COGS?

No. Ad spend, affiliate commissions and influencer fees are direct marketing. They come out after cost of delivery, which is what contribution margin measures.

What's the difference between COGS and operating expenses?

COGS rises and falls with units sold. Operating expenses such as salaries, software and rent stay roughly the same whether you sell a lot or a little.

What is sales minus cost of goods sold called?

Gross profit in most accounting, or product margin when you express it as a share of revenue in the Four Margins. Net revenue of $120,000 minus $38,000 of COGS is $82,000, a 68.3% product margin.

What is another name for cost of goods sold?

Cost of sales and cost of revenue are both common. Check what each one includes before comparing figures across companies.

Is COGS a debit or a credit?

COGS is an expense, so an increase is recorded as a debit, with the matching credit reducing inventory.

Is a higher COGS better?

Higher COGS dollars can simply mean you sold more. A higher COGS share of revenue means each sale keeps less product profit, which is worth looking into unless you chose it, for example by lowering prices to win volume.

Know what every unit costs before you sell it

Anyone can read a supplier quote. Knowing the landed cost of every unit, and where each cost below it sits, is what lets you set a price, plan a promotion or push spend and know what's left.

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.