Opening & Closing Stock Explained: Codes 5200 & 5201
Total purchases in a period aren't the same as the true cost of what was actually sold — some of what was bought is still sitting on the shelf at year end, and some of what's sold came from stock bought in an earlier period. These two codes make that adjustment.
The codes, and what each one holds
Code 5200 — Opening Stock brings in the value of stock held at the start of the period, effectively adding it to the cost of sales calculation since it's available to be sold this period.
Code 5201 — Closing Stock removes the value of stock still held at the end of the period, since it hasn't been sold yet and shouldn't be counted as a cost this period. Both are Purchases & Direct Costs codes and normally carry a debit balance, though Closing Stock's entry is a credit that reduces the overall cost of sales figure.
A worked example
Say a business starts the year with £8,000 of stock, buys £40,000 of materials during the year, and ends the year with £6,000 of stock still unsold.
Opening Stock (code 5200): £8,000 debited, added into cost of sales.
Closing Stock (code 5201): £6,000 credited, deducted from cost of sales.
True cost of sales for the year: £8,000 + £40,000 − £6,000 = £42,000 — not the raw £40,000 purchases figure.
Why this matters day to day
Without this adjustment, a business that stockpiles materials late in the year would show an inflated cost of sales and understated profit, even though most of that stock hasn't actually been used yet. Getting the closing stock valuation right — and counting it accurately at year end — is one of the most commonly checked figures in any set of accounts, since it directly affects both the balance sheet and reported profit.