Blog / Bookkeeping and Inventory
Cost of Goods Sold and Inventory for Online Sellers
Updated 2026-11-11 · 7 min read
Need help with your online selling taxes?Key takeaways
- On accruals, taxable profit counts only stock that has been sold as a cost, not all stock you have bought during the year.
- On traditional (accruals) accounting, which a company always uses, cash reinvested into unsold inventory at year end leaves taxable profit above the cash in your bank. Sole traders are on the cash basis unless they choose otherwise; our cash vs accruals guide explains how that changes things.
- Closing stock must be valued at the lower of cost and net realisable value under accruals accounting.
- Landed cost (purchase price plus import duty plus inbound shipping) is the starting point for your cost figure.
- Buying more stock before your year end does not automatically reduce your tax bill under accruals.
Plenty of online sellers hit a confusing point each year: their accountant tells them they made a healthy profit, yet their bank account tells a different story. If you trade through a company, or you've chosen traditional (accruals) accounting, the usual explanation is stock. The cash you've spent on more stock is sitting in inventory, not in your current account, and on accruals it isn't a cost against your profit until that stock sells.
That gap isn't an accounting error. It's what a growing stock business looks like when it keeps putting its margin back into stock, and once you see how cost of goods sold and closing stock work, it stops being a mystery.
On accruals, only sold stock reduces your profit this year
Under accruals accounting, your taxable profit is your revenue minus the cost of goods you actually sold, not the cost of goods you bought. Stock you purchased but still hold at your year end is an asset, not an expense. If you reinvested every pound of margin back into new inventory, your taxable profit for the year can be many times higher than your bank balance. That's the mechanism. Buying more stock before your year end doesn't cut your tax bill; it just converts one asset (cash) into another (stock).
Whether this applies to you depends on which accounting basis you use. Cash basis is the standard way for sole traders and partnerships without corporate partners (limited companies and LLPs can't use it), and it treats stock purchases differently. Which basis suits a stock business is the question our cash vs accruals guide answers. Everything here assumes accruals, the basis a company is always on, unless it says otherwise.
What COGS means in seller terms
Cost of goods sold is the cost of the stock you sold during the year, calculated as:
COGS = Opening stock + Purchases during the year − Closing stock
Opening stock is the value of inventory you held at the start of the period. Purchases are everything you bought during the year. Closing stock is what you still hold unsold at the end. The difference is what you sold.
This formula is why closing stock matters so much. The higher your closing stock value, the lower your COGS, and the higher your gross profit. Get the closing stock number wrong and your entire profit figure is wrong.
Worked example: why buying more stock doesn't cut your tax bill on accruals
Take a seller with the following numbers for the year:
| Item | Amount |
|---|---|
| Revenue | £120,000 |
| Opening stock | £8,000 |
| Purchases during the year | £70,000 |
| Closing stock (unsold inventory at year end) | £28,000 |
| COGS (£8,000 + £70,000 − £28,000) | £50,000 |
| Gross profit (£120,000 − £50,000) | £70,000 |
The seller bought £70,000 of stock during the year. But because £28,000 of it is still on hand, only £50,000 flows through to COGS. The remaining £28,000 is an asset. Gross profit is £70,000, even though the bank balance is much lower after paying suppliers and operating costs.
Now compare what would have happened if the same seller had bought an extra £15,000 of stock in the last week of the year, rushing to cut their tax bill:
| Item | Without extra buy | With £15k extra buy |
|---|---|---|
| Purchases | £70,000 | £85,000 |
| Closing stock | £28,000 | £43,000 |
| COGS | £50,000 | £50,000 |
| Gross profit | £70,000 | £70,000 |
Gross profit is identical. Buying more stock that is still unsold at year end moves cash into a different asset; it does not create a deduction. On accruals, the only way buying stock reduces this year's profit is if you actually sell it before your year end.
Valuing closing stock: lower of cost and net realisable value
HMRC BIM33115 requires closing stock to be valued at the lower of cost and net realisable value (NRV) under accruals accounting.
Cost is what you paid to acquire the goods and get them to their current location and condition (see landed cost below).
Net realisable value is the expected selling price, less any further costs you still need to incur before or at the point of sale. For a standard FBA line, NRV is roughly your expected sale price less platform fees and any costs of getting the goods to the customer.
The lower-of-cost-and-NRV rule means:
- If stock is selling normally and NRV is above cost, you value it at cost.
- If stock is distressed, discontinued or marked down and NRV has fallen below cost, you must write it down to NRV. You cannot carry slow-moving stock at cost if you know you will sell it for less.
Writing stock down to NRV is not optional; overstating closing stock understates COGS and overstates profit, which HMRC treats as an error.
On the method used to determine which specific units make up closing stock (FIFO, weighted average, specific identification), no single method is mandated by UK tax law. Different cost-flow assumptions are permitted, but not last in, first out (LIFO), which HMRC doesn't accept for tax (BIM33125); the point is that whatever method you use must be consistent and must arrive at cost per unit accurately. If you are uncertain which approach suits your business, this is worth discussing with an adviser.
What counts in cost: the landed-cost principle
The cost you use for stock valuation should reflect what it actually cost to get the goods to their current location and condition ready for sale. For an ecommerce seller importing goods from overseas, this typically includes:
- The purchase price paid to your supplier
- Import duty paid at the UK border (goods in a consignment worth £135 or less are relieved from customs duty today, but that relief is due to go by October 2028 at the latest, announced and not yet law)
- Inbound freight and shipping costs to bring goods to your warehouse or prep centre
- Customs clearance and brokerage fees, where directly attributable to the goods
Outbound postage and fulfilment costs (sending goods to your customers) are selling expenses, not part of the inventory cost. They sit below gross profit, not inside COGS.
Keep records that let you reconstruct the landed cost per unit. If you import container loads with mixed SKUs, you will need an allocation method for shared freight and duty. The principle is consistent attribution, not precision to four decimal places. Price from the factory cost alone and every sale looks more profitable than it is: the undercosting trap that catches new Amazon sellers.
Calculator
Seller Take-Home Calculator
Money landing in your bank account is not your take-home. It arrives after the platform has already deducted referral and fulfilment fees, and before HMRC has taken income tax and Class 4 NIC. This calculator works through all four stages: gross sales, minus marketplace fees, minus cost of goods and other costs, then minus tax on the profit that remains. Enter your own fee figures from your platform statement, not a schedule we maintain.
What buyers paid in total, before platform fees come off. Use the gross selling price, not your net payout. If you're VAT registered, enter it with the VAT you charged included.
Enter the percentage from your own platform settlement statement, referral and fulfilment fees together. The tool doesn't hardcode live fee schedules, because they change.
On the cash basis, the default for sole traders, enter what you paid for stock in the year, sold or not. On traditional accounting, enter the landed cost of the goods you sold (not stock still on hand), so heavy restocking leaves your taxable profit above your bank balance.
Advertising, software, shipping, storage and other deductible costs not included above.
Your result
Your answer's ready. Press below to see it.
The cash-versus-profit gap: what to do about it
On accruals, if your business is growing and you're reinvesting margin back into stock, a persistent gap between taxable profit and bank balance is normal. The gap is not a problem in itself; it is evidence that your business is funding its own growth. The practical issue is managing the cash outflow when your tax bill arrives.
Three habits help:
- Set aside tax as you go. Once you have a rough sense of your gross margin, allocate a percentage of each month's revenue to a tax reserve. This prevents the year-end bill from arriving as a surprise against a depleted bank balance.
- Track closing stock quarterly, not just annually. Running a quarterly stock count lets you project your tax position before year end, so you can plan cashflow rather than react to it.
- Time stock buys around your actual sales cycle, not around your tax year end. On accruals, buying stock in December because your year end is December achieves nothing for tax if it stays unsold; it just brings the cash outflow forward. On the cash basis it does move the deduction into this year, but only out of next year, when the goods sell with no cost against them. Plan stock buys to match demand.
If your settlement payouts from Amazon, Shopify or eBay do not reconcile neatly to the revenue and COGS figures your accounts show, that is a bookkeeping problem first and a tax risk second. Our settlement payout reconciliation service works through the platform-level data to get the numbers right before they reach your accounts.
Want this checked against your specific situation?
Leave your details and a one-line summary. We'll come back to you, with no obligation.
Where your accounting basis comes in
Everything above assumes accruals accounting, which matches costs to the period in which you sold the goods. Under the cash basis, where a sole trader starts unless they opt out, stock is deducted when you pay for it and there's no closing-stock figure (BIM72005). Trade through a company and there's no choice to make: you're on accruals.
Whether accruals is worth choosing as a sole trader, and how switching works either way (including the relief for last year's closing stock under BIM72065), is in our cash vs accruals for stock businesses guide. Don't decide on the basis of one article; the interaction with your year-end stock value can be significant either way.
Where stock accounts go wrong at tax time
Expensing all stock when purchased
Some sellers record every supplier invoice as an immediate cost. This works under cash basis but is incorrect under accruals. Under accruals, the purchase goes into inventory first; only the sold portion becomes COGS at the period end. Expensing all purchases immediately understates closing stock and artificially reduces profit in the short term, creating a distorted picture that catches up painfully.
Ignoring closing stock entirely
On accruals, not counting closing stock at all means your COGS figure is just "purchases," with no adjustment for what you still hold. For a growing seller with significant inventory, this can understate profit dramatically in one year and then overstate it the next as stock is sold. HMRC can challenge accounts where closing stock is absent or implausibly low.
Confusing cash out with a tax deduction
On accruals, writing a cheque to a supplier isn't the same as claiming a tax deduction. The deduction happens when you sell the goods. Sellers who believe they "already paid tax" on stock they bought, or that paying suppliers reduces their tax bill in real time, are operating on a cash-basis mental model inside an accruals system. The two must match.
For a seller moving from spreadsheets to proper bookkeeping, or from cash basis to accruals, the Amazon sellers and Shopify sellers sections cover the setup considerations specific to each platform. You can also model your true take-home margin after COGS, fees and tax using our seller take-home calculator.
Frequently asked questions
Why is my taxable profit higher than my bank balance?
What is cost of goods sold for an online seller?
Does buying stock reduce my tax bill?
How do I value my closing stock?
What is net realisable value?
Do import duty and shipping count in my stock cost?
How do I calculate COGS?
Need help with your online selling taxes?
Tell us about your store or marketplace accounts and we will come back within 24 hours.
Related reading
Need help with your online selling taxes?
Tell us about your store or marketplace accounts and we will come back within 24 hours.