Guide

Cost of goods sold for online sellers

What counts as cost of goods sold for an online seller (product cost, inbound freight, duties, packaging), why it is an expense only when the goods sell, how it shows on the income statement and on Schedule C Part III, and how beginning and ending inventory drive it.

Last updated

Cost of goods sold is what the stock you sold cost you to buy and get ready to sell. It is an expense, but only when the goods sell: until then the money you paid a supplier sits on your balance sheet as inventory. For an online seller that difference is why a business can be profitable on paper and short of cash, and why buying a lot of stock in December does not lower that year's profit. This guide explains what to include, where it shows up, and how beginning and ending inventory decide the number.

This guide explains how the numbers fit together. It is not tax advice: check with your accountant, especially on inventory methods for small businesses and how to treat marketplace fees.

Is cost of goods sold an expense?

Yes. Cost of goods sold is an expense on the income statement, matched to the sales it produced. Buying inventory is not an expense when you pay for it; the stock is an asset until it sells, and only the cost of the units that sold moves into cost of goods sold.

Suppose you pay a supplier $25,000 in March and sell stock that cost $10,000 by the end of the month. March shows $10,000 of cost of goods sold. The other $15,000 stays on the balance sheet as inventory and becomes cost of goods sold in the months it sells.

What counts as cost of goods sold for an online seller

Cost of goods sold covers the cost of getting each unit ready to sell where you will sell it. Everything after that is a cost of selling or running the business.

Usually cost of goods soldUsually an operating expense instead
The supplier's price for the productMarketplace referral and selling fees
Inbound freight from the supplier (shipping-in), including to a marketplace's fulfillment centerPayment processing fees
Customs duties and tariffsAdvertising and promotions
Customs brokerage and inbound insuranceOutbound shipping to customers
The product's own packaging, such as its retail boxStorage after the stock is ready to sell
For a maker: materials, production labor and factory overheadSoftware, office costs and your own pay

Two lines need a decision rather than a rule:

  • Per-unit fulfillment fees. Many sellers count a marketplace's fulfillment fee in contribution margin, next to cost of goods sold, because it scales with every unit. It is a cost of selling the item, not part of what the inventory cost, so it stays out of inventory value and out of Schedule C Part III; on your own P&L, some sellers show it in cost of sales and others as a selling expense.
  • Outbound shipping. Most small sellers record it as a selling or fulfillment expense; some businesses include it in cost of sales. Either is defensible. Pick one and use it every period.

Duties deserve a fresh look. Since the US suspended the $800 de minimis exemption for imports from every country in August 2025, duty applies to small parcels that used to clear without it, so a landed cost per unit set before then is probably too low. The landed cost calculator spreads freight, duty and fees across the units of one shipment.

How cost of goods sold shows on the income statement

Cost of goods sold sits directly under revenue. The line between them is gross profit:

Income statement lineAmount
Net sales$500,000
Cost of goods sold$250,000
Gross profit (50% gross margin)$250,000
Marketplace fees$75,000
Advertising$60,000
Outbound shipping$30,000
Software and other operating expenses$35,000
Operating profit$50,000

Moving a cost between cost of goods sold and operating expenses changes gross margin but not operating profit, which is why comparing your gross margin with another seller's only works when you both put the same costs above the line.

Beginning and ending inventory

For a period, cost of goods sold comes from three numbers at cost:

Cost of goods sold = beginning inventory + purchases − ending inventory

Amount
Inventory at the start of the year$40,000
Purchases in the year, including freight-in and duty$260,000
Cost of goods available for sale$300,000
Inventory at the end of the year$50,000
Cost of goods sold$250,000

Ending inventory is the number that most often goes wrong, and an error in it lands one for one in cost of goods sold and profit. If the year-end count misses $5,000 of stock, cost of goods sold comes out $5,000 too high and profit $5,000 too low; next year reverses it, because this year's ending is next year's beginning. A $20,000 order paid in December and still on hand at the year-end count sits in ending inventory, so it does not reduce that year's cost of goods sold. The cost of goods sold formula calculator runs the same arithmetic for any period.

Cost of goods sold on Schedule C

A US sole proprietor or single-member LLC that files Schedule C (Form 1040) reports the same calculation in Part III, Cost of Goods Sold:

Schedule C lineWhat goes there
Line 33The method used to value closing inventory: cost, lower of cost or market, or other
Line 35Inventory at the beginning of the year (last year's line 41)
Line 36Purchases, less the cost of items withdrawn for personal use
Line 37Cost of labor (not what you paid yourself)
Line 38Materials and supplies
Line 39Other costs
Line 40Lines 35 through 39 added together
Line 41Inventory at the end of the year
Line 42Cost of goods sold: line 40 minus line 41, carried to line 4 in Part I

Marketplace fees, advertising and outbound shipping are reported in Part II with your other expenses, not in Part III. If line 35 does not match last year's closing inventory, the IRS instructions ask for an explanation. Small businesses have some choice in how they account for inventory, which is a question for your accountant.

Keep the numbers from drifting

  • Count stock, or reconcile your inventory system to a count, at least at year end, valued at cost.
  • Keep a landed cost per unit for each SKU that includes freight-in and duty, and update it when freight or tariff rates move.
  • Look at cost of goods sold per SKU and per channel, not only the total. Finance → Margin by SKU shows what each item earned after cost, fees and ad spend (Profit by SKU explains it), and the product plans each item's stock from the same costs.
Was this guide helpful?

Try the plan on your own stock.

Start a trial with your own sales and stock, or look around the live demo first.