Cost of sales, also called cost of goods sold (COGS), is the direct cost of producing or buying what your business sells. For an online seller that resells stock, the cost of sales formula is opening stock plus purchases minus closing stock. It sits just below revenue on your income statement and, subtracted from revenue, gives your gross profit.
If you've ever looked at your accounts and wondered why your profit isn't what you expected, your cost of sales is usually the first place to look. It's the figure that sits between your revenue and your gross profit, and it decides how much of every sale you actually keep.
This guide explains what cost of sales (also called cost of goods sold, or COGS) means in UK accounting, how to calculate it for different business types, what to include and what to leave out, and how it shapes your gross profit margin. It's written for small business owners, ecommerce sellers and contractors who want a clear, practical answer without the jargon.
Every worked example below is an illustration, not a real client, so you can map the calculations onto your own numbers.
Cost of sales measures the cost of what you sell
In accounting, cost of sales is the direct cost your business incurs to produce or buy in the goods and services it sells. It's the money you spend specifically to generate a sale, rather than the general cost of keeping the business running.
A simple test helps. If you didn't make a particular sale, would you still have spent that money? If the answer is no, it may be a direct selling cost, but classification also depends on what the cost buys and your accounting policy.
Cost of sales has a few defining features:
- Direct link to revenue. The cost is tied to producing or acquiring what you sell.
- Variable. It usually rises and falls with your sales volume.
- Production focused. It relates to making, buying in or delivering your core offering.
For a bakery, cost of sales includes flour, sugar, eggs and the bakers' time on the production line. For a clothing retailer, it's the wholesale cost of the garments they resell. For a consultancy, it might be the subcontractor fees for delivering a specific client project.
Get this figure right and you can see how much profit your core activity really makes, before overheads ever come into it. If you'd rather hand the whole picture to someone else, our bookkeeping services keep your cost of sales accurate month to month.
The cost of sales formula depends on the business

The principle is the same for everyone, but the exact formula depends on whether you sell stock, make products or deliver services.
The formula for retailers and resellers
The classic version, used by anyone who buys stock to resell, is:
Cost of sales = Opening stock + Purchases − Closing stock
It captures the stock you started with, the stock you bought during the period, and the stock still sitting on the shelf at the end.
The formula for manufacturers
Manufacturers add their production costs into the mix:
Cost of sales = Opening stock + Direct materials + Direct labour + Manufacturing overheads − Closing stock
That brings in raw materials, the wages of production staff, and the factory overheads directly tied to making the goods.
Illustrative example: a clothing shop
A clothing shop starts January with £10,000 of stock. During the month it buys £25,000 of new inventory. At the end of January, £8,000 of stock remains.
- Opening stock: £10,000
- Add purchases: £25,000
- Less closing stock: £8,000
- Cost of sales = £27,000
So the shop spent £27,000 to support its January sales. If it took £50,000 in sales that month, its gross profit is £23,000 (£50,000 − £27,000).
Cost of sales and cost of goods sold
Talk to a bookkeeping specialist →
In practice, cost of sales and cost of goods sold (COGS) mean the same thing, and accountants use the terms interchangeably.
There's a soft convention about which one people reach for:
- Cost of goods sold (COGS) tends to come up in retail and manufacturing, where the emphasis is on physical goods.
- Cost of sales is the broader term, common in UK accounts and with service businesses, because it covers both goods and services.
Both appear in exactly the same place on the income statement and do the same job: showing the direct cost of generating revenue so you can work out gross profit. Don't get hung up on the label. Most accounting software accepts either.
Costs to include in cost of sales
Cost of sales includes the costs attributable to the goods or services sold, including relevant production overheads. What counts depends on your business model.
For product-based businesses
- Finished goods bought in for resale
- Raw materials for manufacturing
- Work in progress
- Packaging that forms part of the product
- Direct labour (production staff)
- Inbound freight to get stock to you
- Import duties on goods you bring in
For service businesses
- Subcontractors delivering the core service
- Freelancers hired for a specific client project
- Materials consumed while delivering the work
- Travel directly billed to or required for a client job
For construction and trades
- Building materials
- Plant or equipment hire for a specific job
- Subcontractor labour
- Site-specific supplies
A useful timing rule: match a cost to the related sale, not simply to the payment date. Under the accruals basis, unsold stock remains an asset until sold or written down, rather than becoming cost of sales immediately on purchase.
What the accounting standards say about valuing stock
Your closing stock figure feeds straight into your cost of sales, so how you value it matters. UK businesses generally follow Financial Reporting Standard (FRS) 102 or FRS 105, which require stock to be measured at the lower of cost and estimated selling price less costs to complete and sell (often still called net realisable value).
HM Revenue and Customs (HMRC) accepts this approach for tax where the accounting treatment is correct and reflects the facts. Its guidance confirms that valuing trading stock at the lower of cost and net realisable value is an acceptable basis, with the modern wording set out under FRS 102 and FRS 105 (see HMRC BIM33115).
General running costs sit below gross profit
Knowing what to leave out is just as important. These are general running costs, so they sit below gross profit as operating expenses, not in cost of sales:
- Office rent and utilities, excluding production overheads included in stock costs
- Marketing and advertising
- Office and admin salaries
- Professional fees (accountants, solicitors)
- Insurance premiums for general business overheads rather than stock or service delivery
- Software subscriptions for administration rather than direct service delivery
- Depreciation on office equipment
- Bank charges and interest
- General office repairs and maintenance
Why does it matter? Mixing operating costs into cost of sales distorts your gross profit margin and hides how your core activity is really performing.
The quick test again: "Would I still have this cost if I made zero sales in a month?" If yes, investigate further: fixed production overheads can still form part of cost of sales.
Cost of sales examples by industry
The principle is the same, but the line items differ. The figures below are illustrative examples to show the shape of each calculation, not real businesses.
Illustrative example: an Amazon clothing retailer
In this illustration, all the garments bought in the period are sold, with no opening or closing stock. Product packaging and inbound shipping form part of stock cost. The seller presents order fulfilment fees within cost of sales, consistently with its accounting policy; they are not included in unsold inventory.
| Item | Amount |
|---|---|
| Wholesale cost of garments sold | £15,000 |
| Product packaging | £500 |
| Inbound delivery to warehouse | £300 |
| Stock cost released on sale | £15,800 |
| Fulfilment by Amazon (FBA) order fulfilment fees | £2,000 |
| Total cost of sales under this presentation | £17,800 |
The calculation is £15,000 plus £500 plus £300 plus £2,000, giving £17,800. With illustrative sales of £30,000, gross profit is £12,200. If fulfilment fees are shown below gross profit instead, gross profit is £14,200 and the £2,000 fee remains an expense; operating profit is unchanged.
Excludes: website hosting, marketing, warehouse rent, office salaries.
If you sell online, our ecommerce accounting page covers how platform fees and stock costs fit together. Check landed cost before comparing product margins, so inbound freight and product packaging are counted consistently.
Illustrative example: furniture manufacturer
| Item | Amount |
|---|---|
| Wood and materials | £8,000 |
| Factory worker wages | £5,000 |
| Varnish and finishes | £1,200 |
| Factory equipment maintenance | £800 |
| Total cost of sales | £15,000 |
Excludes: showroom costs, sales team salaries, design office expenses.
Illustrative example: marketing agency
| Item | Amount |
|---|---|
| Freelance designer for client projects | £3,000 |
| Stock photography | £200 |
| Subcontracted video production | £2,500 |
| Total cost of sales | £5,700 |
Excludes: office rent, administrative staff salaries, administrative software subscriptions and business development. Staff and software used directly to deliver client work can be cost of sales; this illustration assumes no other delivery costs.
Illustrative example: building contractor
| Item | Amount |
|---|---|
| Bricks, cement, timber | £12,000 |
| Plumbing subcontractor | £4,000 |
| Electrical subcontractor | £3,500 |
| Specialist equipment hire | £1,500 |
| Total cost of sales | £21,000 |
Excludes: general overhead insurance, office admin, quotation time and tool purchases. Insurance directly attributable to the work needs its own classification.
Illustrative example: importer bringing stock into the UK
| Item | Amount |
|---|---|
| Opening stock | £10,000 |
| Purchases from overseas suppliers | £20,000 |
| Import duties and customs charges | £2,000 |
| Delivery to UK warehouse | £500 |
| Less: closing stock | (£5,000) |
| Total cost of sales | £27,500 |
Import duties belong in cost of sales because they're part of bringing stock to a saleable condition. Exclude recoverable value added tax (VAT) from stock cost; VAT registration alone does not establish that every import VAT amount can be reclaimed.
Inventory valuation affects cost of sales
The method you use to value stock changes your closing stock figure, which in turn changes your cost of sales. UK businesses commonly use one of these:
- FIFO (first in, first out). Assumes the oldest stock sells first. When prices are rising, FIFO gives a lower cost of sales and a higher reported profit, because older, cheaper stock is matched against current sales.
- Weighted average cost. Averages the cost per unit across all stock. It smooths out price swings and suits retailers with large volumes of similar items.
Illustrative example: how the method changes the answer
A retailer buys 100 units at £10 each in March, then 100 units at £12 each in April. In May it sells 100 units for £20 each (£2,000 of revenue).
FIFO
- Cost of sales = 100 × £10 = £1,000
- Gross profit = £2,000 − £1,000 = £1,000
Weighted average cost
- Average cost = (£1,000 + £1,200) ÷ 200 = £11 per unit
- Cost of sales = 100 × £11 = £1,100
- Gross profit = £2,000 − £1,100 = £900
That £100 difference flows straight into your gross profit and your taxable profit. It's worth being consistent year to year, and worth a quick chat with your accountant before you switch methods.
Cost of sales on the income statement
Cost of sales sits near the top of your income statement (also called the profit and loss account), just below revenue. That position shows the direct link between sales and the costs needed to make them.
| Line | Amount |
|---|---|
| Revenue | £100,000 |
| Less: cost of sales | (£60,000) |
| Gross profit | £40,000 |
| Less: operating expenses | (£25,000) |
| Operating profit | £15,000 |
| Less: interest and tax | (£4,000) |
| Net profit | £11,000 |
This structure gives you three useful profit levels:
- Gross profit: revenue minus cost of sales, showing core performance.
- Operating profit: gross profit minus operating expenses, showing day-to-day efficiency.
- Net profit: what's left after interest and tax.
Cost of sales is normally a debit
Cost of sales is an expense, and in double-entry bookkeeping expenses are debits. So cost of sales is recorded as a debit.
A periodic stock system updates stock and cost of sales at period end. Purchases can initially be recorded in the purchases or cost of sales account, with a closing stock adjustment at period end. A perpetual system updates stock and cost of sales as stock moves: stock is recorded as an asset first and released to cost of sales when sold. An illustrative purchase entry under the periodic approach looks like this:
| Account | Debit | Credit |
|---|---|---|
| Cost of sales | £1,000 | |
| Bank / creditors | £1,000 |
As a quick refresher: assets and expenses increase with debits, while liabilities, equity and income increase with credits. Because cost of sales is an expense, its debit balance reduces your profit, which is exactly what you'd expect an expense to do.
Cost of sales helps explain trading performance
Getting cost of sales right is fundamental to running a profitable business. Here's what it gives you.
It reveals your gross profit margin
Your gross profit margin is the share of revenue left after direct costs. It tells you whether your pricing is sustainable.
Gross profit margin = (Gross profit ÷ Revenue) × 100
A business with £100,000 of revenue and £60,000 of cost of sales has £40,000 of gross profit, a 40 per cent margin. Our guide to profit margins explains how to compare that figure across products and channels.
It shows whether you're getting more or less efficient
Tracking cost of sales as a percentage of sales over time tells you if production is getting leaner or slipping. A rising percentage can signal supplier price rises you haven't passed on, more waste, or prices set too low.
It guides pricing
Once you know your cost of sales, you can set a price that covers direct costs plus a margin for overheads and profit, rather than guessing.
It supports planning and tax accuracy
If you know roughly what each sale costs to fulfil, you can forecast costs at different revenue levels. Accurate stock valuation also keeps your taxable profit right, which matters because HMRC expects trading stock to be valued correctly when you work out your profits (see HMRC BIM33115).
Calculating the cost of sales percentage
The cost of sales percentage shows how much of your revenue goes on direct costs. It's the mirror image of your gross profit margin.
Cost of sales percentage = (Cost of sales ÷ Revenue) × 100
Illustrative example: a restaurant
- Monthly revenue: £50,000
- Cost of sales (food and drink): £18,000
(£18,000 ÷ £50,000) × 100 = 36 per cent
So 36p of every £1 of revenue goes on direct costs, leaving 64p for wages, overheads and profit.
A lower percentage isn't automatically better. It depends entirely on your business model. A high-volume, low-margin retailer can be very profitable with a high cost of sales percentage, while a low-volume luxury seller might run a much lower one. The useful comparison is against your own past figures and what you know about your own sector, not a generic benchmark.
Calculating gross profit from cost of sales
Gross profit is one of the most important numbers in your accounts, and cost of sales is the input you need to find it.
Gross profit = Sales revenue − Cost of sales
The steps:
- Work out your total sales revenue for the period.
- Work out your cost of sales using the right formula for your business.
- Subtract cost of sales from revenue.
Illustrative example: an independent bookshop in March
- Sales revenue: £28,000
- Opening stock: £12,000
- Book purchases in March: £15,000
- Closing stock: £10,000
Cost of sales: £12,000 + £15,000 − £10,000 = £17,000
Gross profit: £28,000 − £17,000 = £11,000
Gross profit margin: (£11,000 ÷ £28,000) × 100 = 39.3 per cent
So the bookshop keeps just over 39p of every £1 of sales to cover rent, staff, utilities and profit.
Ways to reduce cost of sales
Bringing your cost of sales down without hurting quality can lift your profit noticeably. A few practical levers:
Negotiate better supplier terms
- Get competitive quotes on materials
- Build relationships that earn volume discounts
- Ask for extended payment terms to ease cash flow
- Buy in bulk where it makes sense for fast-moving items
Improve operational efficiency
- Cut waste in production or service delivery
- Streamline processes so they use less labour time
- Train staff to lift productivity
- Tighten quality control to reduce rework
Manage inventory better
- Order closer to need to reduce storage costs
- Improve stock control to avoid obsolescence
- Focus on the products with the best margins
- Drop slow movers that tie up cash
Price strategically
Raising prices isn't a cost cut, but it does the same job for your margin and is often easier than squeezing suppliers. Plenty of businesses underprice.
One word of caution: don't chase savings at the expense of quality or service. Unhappy customers cost more than the savings you'll make.
Get a clear view of your numbers
If your cost of sales and gross margin never quite add up, that's usually a bookkeeping problem worth fixing early. Zmartly's UK accountants keep your stock, purchases and margins accurate so you always know what each sale really earns. Book a free 30-minute call with a Zmartly accountant and we'll talk it through.
Frequently asked questions
What is cost of sales in simple terms?
Cost of sales, also called cost of goods sold (COGS), is the direct cost of what your business sells. For an online retailer, it includes the cost of stock sold and relevant costs of getting that stock ready for sale. General office costs and marketing normally sit below gross profit.
How do you calculate cost of sales?
For retailers, the cost of sales formula is opening stock plus purchases minus closing stock. Include relevant acquisition costs consistently in stock values. For manufacturers, the calculation also brings in production costs; service businesses identify costs attributable to delivering their work. Use the same period for each figure.
What's the difference between cost of sales and expenses?
Cost of sales is the direct cost of producing what you sell, such as stock, materials and production labour. Operating expenses are the indirect costs of running the business, such as office rent, marketing and admin salaries. Both reduce profit, but they're shown separately on the income statement so you can see gross profit before overheads.
Is cost of sales the same as cost of goods sold?
Yes. Cost of sales and cost of goods sold (COGS) mean the same thing and are used interchangeably. COGS is more common in retail and manufacturing, while cost of sales is the broader term that also suits service businesses. Both appear identically on the income statement.
Does cost of sales include VAT?
Cost of sales excludes VAT that the business can recover and includes VAT that forms an irrecoverable part of its costs. Being VAT registered does not automatically make every purchase recoverable. Check the treatment of the underlying expense and use a consistent basis for purchases, stock values and comparisons.
Can cost of sales be zero?
Yes. Some businesses have little or no separately reported cost of sales, depending on their activities and accounting presentation. However, salaried staff can still be a direct service delivery cost. A zero figure does not mean sales cost nothing to deliver, so check where the relevant expenses have been recorded.
Does cost of sales include shipping?
It depends. Inbound freight, the cost of getting stock or materials to you, forms part of stock cost and reaches cost of sales as the goods are sold. Outbound freight may be presented within cost of sales or separately as a distribution expense. Be consistent when comparing periods and products.
Where does cost of sales appear on financial statements?
Cost of sales appears on the income statement, also called the profit and loss account, below revenue and before gross profit. Unsold stock appears separately as an asset on the balance sheet. The stock figure therefore affects the cost of sales calculation without itself being an expense for goods already sold.








