Kades AccountingRatios, depreciation, break-even and bookkeeping maths

All guides

Cost of Goods Sold: The Line That Decides Gross Profit

The formula and its logic

Cost of goods sold is not simply what was bought during the year. It is opening stock, plus purchases, minus closing stock: the cost of what actually left the shelves. Buy heavily in December for January sales and purchases spike, but cost of sales does not, because the closing stock figure hands the unsold goods back. This is the matching principle at work, costs following the sales they generated. It also means the entire gross profit figure stands on the stock count: miscount the closing stock and profit moves by the same amount, in the same direction.

What belongs inside it

Cost of goods sold carries the direct costs of the goods: purchase price, delivery inwards, import duties, and for a manufacturer, direct labour and the production overheads absorbed into stock. It excludes selling, distribution and administration costs, which sit below gross profit. The boundary matters because gross margin comparisons assume a consistent definition; moving a cost from overheads into cost of sales lowers gross margin without changing net profit by a penny. Analysts reading two companies check the notes for what each includes before comparing their margins. Manufacturers build the figure in stages worth knowing: direct materials consumed, plus direct labour, plus production overheads absorbed, gives the cost of goods manufactured, which then passes through finished goods stock to become cost of sales. Each stage has its own stock figure and its own count. Service businesses have the simpler cousin, cost of sales as the direct cost of the hours and bought in work delivered, but the matching logic is identical: only what the period's revenue consumed belongs in the period's cost line.

Shrinkage, waste and honesty

The formula quietly absorbs everything that went missing: theft, damage, spoilage and counting error all inflate cost of sales, because stock that is not there at the count is assumed sold. A deteriorating gross margin with stable prices is often shrinkage announcing itself. Businesses that count stock carefully and often, and investigate the difference between book stock and physical stock, protect both their profit figure and their goods. The humble stock count is, in the end, an audit of reality against the records, and the records do not always win. Because closing stock is the hinge, its valuation rules matter as much as the count: cost or net realisable value, whichever is lower, with damaged and obsolete lines written down without sentimentality. A closing stock figure carried at full cost for goods that will sell at half price borrows profit from the future and repays it with interest. Auditors circle stock for exactly this reason, and so should anyone reading a gross margin that looks too good for its trade.

Work it out yourself

The free calculator that goes with this guide:

Work out a gross margin