Cost of goods sold (COGS), referred to as cost of sales in UK statutory accounts, is the total direct cost incurred in producing or purchasing the goods that a business has sold during the accounting period. It appears on the income statement immediately below turnover , and the difference between the two gives the gross profit .

Under the Companies Act 2006 profit and loss account formats, cost of sales is a required line item when a company presents its accounts using the function of expense format (Format 1).

How to Calculate Cost of Goods Sold

The standard formula adjusts purchases for changes in stock levels:

COGS = Opening Stock + Purchases - Closing Stock

Worked Example

A retailer has the following figures for the year:

Item£
Opening stock (1 January)45,000
Purchases during the year230,000
Closing stock (31 December)38,000
Cost of goods sold237,000

If turnover for the year is £400,000, gross profit is £163,000.

What Is Included in COGS?

COGS captures the direct costs attributable to the goods or services sold:

IncludedNot Included
Purchase price of goods for resaleOffice rent and utilities
Raw materials and componentsMarketing and advertising
Direct production labourAdministrative salaries
Factory rent and utilitiesSelling and distribution costs
Depreciation of production equipmentDepreciation of office equipment
Packaging and labellingInterest payable
Freight inwards (carriage inwards)Research and development
Subcontractor costs for productionBad debts

The classification matters because costs included in COGS reduce gross profit , while overheads reduce operating profit. Misclassifying costs distorts both margins.

COGS for Different Business Types

Retailers and Wholesalers

For businesses that buy and resell goods without transformation, COGS is relatively straightforward:

COGS = Opening Stock + Net Purchases - Closing Stock

Net purchases means the invoice cost of goods, plus freight inwards, minus returns to suppliers and trade discounts received.

Manufacturers

For manufacturers, COGS includes the full production cost of finished goods:

Component£
Opening raw materials20,000
Purchases of raw materials150,000
Less: closing raw materials(18,000)
Raw materials consumed152,000
Direct labour80,000
Factory overheads45,000
Total production cost277,000
Opening finished goods30,000
Less: closing finished goods(35,000)
Cost of goods sold272,000

Service Businesses

Service businesses use cost of sales rather than COGS. This typically includes:

  • Direct staff costs (salaries of those delivering the service)
  • Direct materials used in service delivery
  • Subcontractor costs
  • Travel costs directly attributable to client engagements

Stock Valuation Methods

The method used to value stock directly affects COGS and therefore gross profit :

FIFO (First In, First Out)

Under FIFO, the oldest stock is assumed to be sold first. In periods of rising prices, FIFO produces lower COGS and higher gross profit because the cheaper, earlier purchases are matched against sales.

Weighted Average Cost

The average cost per unit is recalculated after each purchase. COGS reflects the blended average, producing results between FIFO and the prices of recent purchases.

Which Method to Use

FRS 102 (Section 13) permits FIFO and weighted average cost. It does not permit LIFO (Last In, First Out). The method chosen must be applied consistently. Changing the method is a change in accounting policy and requires retrospective restatement.

MethodEffect on COGS (Rising Prices)Effect on Gross Profit
FIFOLowerHigher
Weighted averageMiddleMiddle

COGS and the Balance Sheet

COGS is directly connected to stock on the balance sheet :

  • Closing stock appears as a current asset
  • Opening stock was last year’s closing stock
  • The movement between opening and closing stock adjusts purchases to arrive at COGS

Under FRS 102, stock must be valued at the lower of cost and estimated selling price less costs to complete and sell (net realisable value). Writing stock down to net realisable value increases COGS for the period.

Recording COGS: Journal Entries

Purchasing Goods

When goods are received from a supplier:

AccountDebit (£)Credit (£)
Purchases10,000
Accounts payable10,000

Year-End Stock Adjustment

At year end, the stock account is adjusted and the cost of sales is calculated. Using the periodic inventory system:

AccountDebit (£)Credit (£)
Cost of goods sold237,000
Opening stock45,000
Purchases230,000
Closing stock38,000

Stock Write-Down

If closing stock includes items where net realisable value is below cost:

AccountDebit (£)Credit (£)
Cost of goods sold (stock write-down)3,000
Stock3,000

COGS and Corporation Tax

For corporation tax, HMRC uses the accounting figure for cost of sales as the starting point. Specific tax points:

  • Stock valuation must follow acceptable accounting practice; HMRC will challenge valuations that appear artificially low
  • Work in progress must include an appropriate allocation of production overheads
  • Long-term contracts must use the percentage of completion method, recognising profit as work progresses
  • Obsolete stock provisions are allowable if based on a genuine assessment of net realisable value

COGS and Gross Profit Margin

The relationship between COGS and turnover determines the gross profit margin:

Gross Profit Margin = (Turnover - COGS) / Turnover x 100

YearTurnover (£)COGS (£)Gross Profit (£)Margin
Year 1400,000237,000163,00040.8%
Year 2450,000280,000170,00037.8%
Year 3500,000295,000205,00041.0%

A declining margin (Year 2) warrants investigation: are purchase prices rising, is the product mix shifting, or are there stock losses?

Reducing COGS

StrategyHow It Works
Supplier negotiationSecuring better prices through volume commitments or alternative sourcing
Waste reductionMinimising spoilage, defects, and scrap in production
Stock managementReducing carrying costs and obsolescence through just-in-time purchasing
Process improvementAutomating production steps to reduce direct labour costs
Quality controlPreventing defective goods from consuming materials and labour
Freight optimisationConsolidating deliveries and negotiating better shipping rates

Common Errors in COGS Calculation

ErrorImpact
Incorrect stock count (overstated closing stock)Understates COGS, overstates gross profit
Incorrect stock count (understated closing stock)Overstates COGS, understates gross profit
Including overhead expenses in COGSUnderstates gross profit, overstates gross margin analysis
Omitting freight inwardsUnderstates COGS
Not writing down slow-moving stockUnderstates COGS and overstates stock on the balance sheet
Inconsistent valuation method between periodsMakes year-on-year comparisons unreliable

Accurate stock-taking and consistent application of valuation policies are essential. Variances should be investigated as part of the trial balance review process.

COGS and Break-Even Analysis

COGS contains both fixed and variable elements. For break-even analysis, separating the two is essential:

  • Variable COGS (raw materials, piece-rate labour) changes with output
  • Fixed COGS (factory rent, salaried supervisors) stays constant within a production range

Only the variable portion contributes to the contribution margin used in break-even calculations.