Inventory and COGS for e-commerce. Get your margin right.

If you expense inventory when you pay for it, your margin swings every month. And you never know what a product really earns.

November 17, 20266 min read

An opened black product box with its contents and a few coins laid out neatly beside it.

The short answer

For e-commerce, cost of goods sold should be booked when a product is sold, not when you pay the supplier. COGS includes the purchase price plus landed costs such as freight, duties and prep. Brands holding inventory usually need accrual-basis books to see a real margin, even if a simpler method is allowed for tax.

Reviewed by the Suits accounting teamUpdated

What belongs in COGS?

  • Purchase price of the goods.
  • Inbound freight and shipping to your warehouse or FBA.
  • Import duties, tariffs and customs fees.
  • Prep, labeling and packaging that is part of the product.

Outbound shipping to customers, platform fees and ads are usually selling costs, not COGS. Keep them separate. Then you see both gross margin and contribution margin.

Cash or accrual?

On a cash basis, a large purchase order makes one month look like a loss and the next like a record. On an accrual basis, the cost is matched to the sale. For inventory businesses, accrual is the only way to read your margin month by month. It is also what lenders and buyers expect.

What inventory method should I use?

MethodHow it worksFits
FIFOOldest units are sold firstMost e-commerce brands
Weighted averageAverage cost per unit, updated with each purchaseBrands with frequent purchases at changing prices
Specific identificationEach unit tracked individuallyHigh-value, unique items

Smaller businesses that meet the IRS gross receipts test (average gross receipts of $32 million or less for 2026) may use simplified inventory methods for tax. Your management books can still follow FIFO or average cost.

Most common mistakes

  1. Expensing inventory purchases directly.
  2. Leaving freight and duties out of product cost.
  3. No physical count or reconciliation with FBA and 3PL reports.
  4. Not booking samples, write-offs and lost units.

How do you calculate COGS for a year?

The formula is the one on Schedule C, Part III. Beginning inventory, plus purchases and other inventory costs, minus ending inventory. The result is your cost of goods sold.

That makes your ending inventory count decisive. Every dollar overstated in ending inventory understates COGS by a dollar, and raises taxable profit by the same amount.

How do you build a landed cost per unit?

Landed cost is everything you pay to get a product ready to sell, divided by units received. The IRS treats freight-in on merchandise bought for sale as part of cost of goods sold.

  • 5,000 units at $12.00: $60,000
  • Ocean freight and inland trucking: $4,000
  • Duties and tariffs: $3,000
  • Prep and labeling: $1,000
  • Total landed cost: $68,000, or $13.60 per unit

If you book only the $12.00 supplier price, every unit looks $1.60 more profitable than it is. At scale, that is the difference between a product you should reorder and one you should drop.

Example

Fictional brand Harbor Thread sells apparel on Shopify and Amazon. Its year looks like this:

LineAmount
Beginning inventory$40,000
Purchases$120,000
Freight-in$9,000
Duties$6,000
Goods available for sale$175,000
Ending inventory (counted)$55,000
Cost of goods sold$120,000

Net sales were $300,000. Gross profit is $180,000, a 60% gross margin. Had Harbor Thread expensed every payment as made, it would have shown $135,000 in product cost and a 55% margin. Same business, different story. Only the first one is right.

Which simplified tax methods can a small business use?

Under section 471(c), a small business taxpayer does not have to keep inventories for tax in the usual way. You qualify if your average annual gross receipts for the 3 prior tax years do not exceed the inflation-adjusted amount and you are not a tax shelter.

The section 448(c) amount is $31 million for tax years beginning in 2025 and $32 million for tax years beginning in 2026. The statute starts at $25 million and indexes it for inflation each year.

If you qualify, Publication 334 describes two options:

  • Non-incidental materials and supplies. You deduct the cost of items in the year you use or consume them, which is generally when you provide them to customers.
  • Your financial accounting treatment. You follow the method in your applicable financial statement or, if you have none, your books and records.

Neither option lets you deduct a full container of stock on the day you pay for it. Small business taxpayers can also use the cash method and are not required to capitalize certain extra costs under the uniform capitalization rules. Changing methods usually requires Form 3115. Decide this with your tax preparer.

How should you handle FBA and 3PL inventory?

Inventory at Amazon or a 3PL is still your inventory. It belongs on your balance sheet at cost. Each month, compare your system to the warehouse reports:

  • units received versus units invoiced by the supplier,
  • units sold versus units shipped,
  • lost and damaged units, and the reimbursements you received for them,
  • removals, disposals and customer returns that went back to stock.

Reimbursements for lost units are income or a cost recovery. Do not leave them in a suspense account.

What is the difference between gross margin and contribution margin?

Gross margin tells you what the product earns. Contribution margin tells you what the order earns after the cost of selling it. You need both.

Per orderAmount
Net sale price$40.00
Landed product cost (COGS)$13.60
Gross profit (66%)$26.40
Platform and payment fees$4.00
Outbound shipping and fulfillment$7.00
Ad spend per order$9.00
Contribution margin (16%)$6.40

Illustrative figures. A 66% gross margin looks healthy. A 16% contribution margin shows how little room you have for higher ad costs or a tariff increase. That is why fees, shipping and ads stay out of COGS: you want to see each layer.

Should your management books and tax books differ?

They can. Your management books should match costs to sales on an accrual basis, with full landed cost. That is what lenders, investors and buyers read. For tax, a small business taxpayer may choose a simplified method. The difference is handled when the return is prepared, from the same clean ledger. What you should never do is let the tax method dictate how you read your own margin.

Month-end inventory checklist

  • Receive every purchase order into inventory at landed cost.
  • Allocate freight and duty invoices to the right shipment.
  • Book COGS from units sold, by channel.
  • Reconcile units with FBA and 3PL reports.
  • Write off damaged, expired and lost stock.
  • Record samples and giveaways as marketing, at cost.
  • Review slow movers for possible write-downs.
  • Count physically at least once a year, at year-end.

More common mistakes

  1. Booking deposits to suppliers as COGS before goods arrive.
  2. Allocating freight evenly across SKUs of very different size and value.
  3. Mixing outbound shipping into COGS, so gross margin looks worse than it is.
  4. Assuming the small business exception means no inventory records at all.
  5. Changing tax methods without filing for the change.

How Suits Finance US helps

We run a monthly close with inventory at landed cost and COGS booked per unit sold, per channel. You see gross margin and contribution margin every month, not only in April. We reconcile FBA and 3PL reports and keep the support your tax preparer needs. Your federal and state returns are prepared and signed by our licensed partner CPA firm. See e-commerce bookkeeping and tax planning.

Questions? We'll answer them.

How often should I count inventory?

At least once a year, and reconcile to your inventory system and FBA or 3PL reports every month.

Are tariffs part of COGS?

Yes. Duties and tariffs paid to import goods are part of the cost of those goods.

Can I deduct inventory I bought but have not sold yet?

Generally not. Inventory becomes a deduction through COGS when it is sold, unless a simplified method for small businesses applies.

What is the gross receipts test amount for 2026?

$32 million in average annual gross receipts over the 3 prior tax years, for tax years beginning in 2026. For 2025 it was $31 million.

Does the small business inventory exception let me deduct stock when I pay for it?

Generally not. Under the materials and supplies option, you deduct items when you use or consume them, which is generally when you provide them to customers.

How do I calculate landed cost per unit?

Add the purchase price, inbound freight, duties and prep for a shipment, then divide by the units received.

One conversation. Clarity on your next step.

Talk your situation through with our CPA-backed team. Afterwards you know where you stand and what to fix first.

Cookie settings

Choose per type. Necessary cookies are always on. Cookie policy