Costs of Goods Sold. Definition | Calculation | Example

Updated June 30, 2026 by Sianna Shah
Accounting basics

Cost of goods sold (COGS)

Before a business can talk about profit, it has to account for what its products actually cost to make or buy. That's cost of goods sold — the direct cost of everything a company sold in a period. It sits at the very top of the income statement, drives gross profit, and shifts depending on how you value inventory. This guide covers the formula, a worked example, FIFO vs LIFO, and what belongs in COGS and what doesn't.

Quick answer

Cost of goods sold (COGS) — also called cost of sales — is the direct cost of producing or buying the goods a company sold during a period: materials, direct labour and manufacturing overhead. It excludes indirect costs like marketing and administration.

The formula is COGS = Opening inventory + Purchases − Closing inventory. Revenue minus COGS gives gross profit. The figure depends on the inventory costing method (FIFO, LIFO or weighted average) — and note that IFRS prohibits LIFO, while US GAAP still allows it.

What is cost of goods sold?

COGS is the direct cost of the goods or services a company sold in a period — its "direct hit" to the bottom line from making or acquiring what it sells. For a retailer, it's the cost of buying the merchandise it resells. For a manufacturer, it's the cost of raw materials, direct labour and factory overhead used to produce finished goods. Either way, only costs directly tied to the product count — indirect costs like advertising and admin are excluded.

What's included in COGS — and what isn't

Included in COGS Excluded from COGS
Direct materials / cost of merchandise Selling & marketing (advertising, commissions)
Direct labour Administrative / general overheads
Manufacturing (factory) overhead Research & development
Freight-in (inbound shipping) Distribution & outbound shipping (usually)
Direct supplies consumed in production Interest & financing costs

Cost of goods sold formula

COGS = Opening inventory + Purchases − Closing inventory

Opening inventory + Purchases Closing inventory = COGS

Worked example

A retailer starts the year with ₹10 lakh of stock, buys ₹15 lakh more during the year, and ends with ₹8 lakh of stock.

Line Amount
Opening inventory ₹10,00,000
+ Purchases ₹15,00,000
− Closing inventory (₹8,00,000)
= Cost of goods sold ₹17,00,000

If revenue that year was ₹30 lakh, gross profit is ₹30 lakh − ₹17 lakh = ₹13 lakh (a 43% gross margin).

How manufacturers build up COGS

A manufacturer has extra steps, because raw materials become work-in-progress and then finished goods before they're sold.

Stage Build-up
Total manufacturing cost Direct materials used + direct labour + manufacturing overhead
Cost of goods manufactured + Opening work-in-progress − closing work-in-progress
Cost of goods sold + Opening finished goods − closing finished goods

Inventory costing methods: FIFO, LIFO and weighted average

When purchase prices change during the year, the method you use to value inventory changes COGS — and therefore profit and tax. There are three main methods.

Method How it assigns cost COGS when prices rise IFRS US GAAP
FIFO (First In, First Out) Oldest costs charged to COGS first Lower (older, cheaper units) Allowed Allowed
Weighted average Average cost across all units Between FIFO and LIFO Allowed Allowed
LIFO (Last In, First Out) Newest costs charged to COGS first Higher (newer, dearer units) Not allowed Allowed
Why LIFO is banned under IFRS

When prices are rising, LIFO pushes the newest, most expensive costs into COGS — raising COGS, lowering profit, and cutting tax. That's why some US companies favour it. But it also leaves old, understated costs sitting in the balance-sheet inventory, which can badly misrepresent its value — so IAS 2 prohibits LIFO entirely. IFRS reporters use FIFO or weighted average.

COGS vs operating expenses

COGS is direct product cost; operating expenses are the indirect costs of running the business. They sit in different parts of the income statement.

Aspect COGS Operating expenses
What it is Direct cost of goods sold Indirect costs of running the business
Examples Materials, direct labour, factory overhead Rent, admin salaries, marketing, utilities
On the income statement Deducted first — gives gross profit Deducted next — gives operating profit
Behaviour Moves with sales/production volume Largely fixed period costs

This is also why selling and marketing costs — advertising, sales commissions, outbound shipping — stay out of COGS: they aren't part of producing or acquiring the inventory. They're netted against sales further down the statement.

COGS and gross profit

COGS is the bridge from revenue to gross profit, the first profitability line on the income statement.

Revenue COGS = Gross profit

Gross margin (gross profit ÷ revenue) shows how efficiently a company turns sales into profit before overheads. COGS also feeds higher-level measures — it's the starting point for EBITDA and, ultimately, net income, and it's a key line on an income-tax return.

How COGS is presented under IFRS and US GAAP

Interestingly, neither framework defines COGS or forces companies to show it as a separate line. What they do govern is the inventory cost that flows into it:

  • IFRS — IAS 2 Inventories sets how inventory is measured (lower of cost and net realisable value) and permits FIFO or weighted average, not LIFO.
  • US GAAP — ASC 330 Inventory and ASC 705 Cost of Sales and Services; FIFO, LIFO and weighted average are all allowed.

Because both frameworks allow choices — whether to fold in inbound freight, depreciation or handling — COGS can be built differently from one company to the next, which makes cross-company and cross-industry comparison harder. Always check the notes before comparing.

📦

Inventory and costing are core exam topics

COGS, IAS 2 and inventory valuation run through ACCA Financial Accounting and cost/management accounting. Build a solid base with BPP and Kaplan study materials or the ACCA Applied Knowledge online course — all through Eduyush.

Browse ACCA books Cost accounting course

Frequently asked questions

What is cost of goods sold in simple terms?
COGS is the direct cost of the goods a company sold during a period — the materials, direct labour and manufacturing overhead that went into them, or the cost of merchandise a retailer bought to resell. It excludes indirect costs like marketing and admin.
What is the cost of goods sold formula?
COGS = opening inventory + purchases − closing inventory. For manufacturers, purchases are replaced by the cost of goods manufactured (direct materials + direct labour + overhead, adjusted for work-in-progress).
Is cost of goods sold the same as gross profit?
No. COGS is the direct cost of the goods sold. Gross profit is revenue minus COGS — the profit left after direct production costs, before overheads.
Is cost of goods sold the same as cost of sales?
Yes — they're generally used interchangeably. Service and technology companies often use "cost of sales" or "cost of revenue" instead, but the idea is the same: the direct cost of what was sold.
Does COGS include FIFO or LIFO?
The costing method decides which costs go into COGS. FIFO charges the oldest costs first; LIFO charges the newest first; weighted average blends them. IFRS allows FIFO and weighted average but prohibits LIFO; US GAAP allows all three.
Why are selling expenses not included in COGS?
Selling expenses — advertising, commissions, outbound shipping — aren't part of producing or acquiring the inventory, so they aren't COGS. They're deducted further down the income statement to arrive at operating profit.
Is a higher or lower COGS better?
All else equal, a lower COGS means a higher gross profit and margin. But a rising COGS isn't automatically bad — it may simply reflect higher sales volume or input prices. Read it alongside revenue and gross margin trends.

Conclusion

Cost of goods sold is where profitability begins: it captures the direct cost of everything a business sold, converts revenue into gross profit, and reveals how well a company controls its production or purchasing. Get the formula right, know what belongs in it and what doesn't, and understand how FIFO, LIFO and weighted average shift the number — and you'll read any income statement, and any margin, with far more confidence.

🎓

From income-statement basics to a qualification

COGS and inventory sit inside the bigger world of financial and management accounting. Take it further with an ACCA qualification or the US CMA — both supported end-to-end by Eduyush, from materials to coaching.

ACCA online course Explore the CMA

 


Leave a comment

Please note, comments must be approved before they are published

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.


Popular posts

Ace Your Accounting Interview with these 20+ essential questions - Eduyush
Updated Mar 25, 2026 ·
Top 50 Accounting Interview Questions and Answers [2026 Guide]
Wondering how to prepare for your accounting interview? We've got you covered with expert tips & advice from our team at Eduyush. From questions to research, we'll help...
Read article →

Popular posts

Accrual Concept in Accounting: Definition & Examples
Updated Jun 30, 2026 ·
Accrual Concept in Accounting: Definition & Examples
Accounting basics Accrual concept The accrual concept is the backbone of modern financial reporting: it records revenue when it's earned and expenses when they're incurred — no matter...
Read article →

Popular posts

What is trial balance in accounting? Types | Differences - Eduyush
Updated May 01, 2026 ·
Trial Balance in Accounting: Definition, Types, Format & Examples
📋 Reviewed by Ritika Nath — Chartered Accountant | 12+ Years Teaching Accounting | Senior Faculty at Eduyush Last updated: May 2026. This guide covers the trial balance...
Read article →

Popular posts

Current Liabilities: Making Sense of the Money You Owe Now - Eduyush
Updated Feb 07, 2026 ·
Current Liabilities: Making Sense of the Money You Owe Now
Current Liabilities You're trying to understand current liabilities, but it isn't evident. Whenever you think you have it figured out, something new comes up. Ready to finally understand?...
Read article →

Popular posts

Conceptual Framework for financial reporting. Summary and video explanation - Eduyush
IFRS Updated Feb 07, 2026 ·
IFRS Conceptual Framework: Complete Guide for 2026
Master the IFRS Conceptual Framework with chapter-by-chapter breakdown, exam tips and practical insights from CA Vicky Sarin, IFRS trainer with 25+ years experience.
Read article →
PwC Interview Questions & Answers
Updated Jun 22, 2026 ·
PwC Interview Questions & Answers 2026: Audit, Tax & Consulting
Career Advice · Big 4 Careers · 2026 PwC Interview Questions & Answers (2026): Audit, Tax & Consulting The PwC interview process and commercial-awareness focus, role-specific questions with...
Read article →

Latest posts

KPMG Interview Questions & Answers
Updated Jun 22, 2026 ·
KPMG Interview Questions & Answers 2026: Audit, Tax & Advisory
Career Advice · Big 4 Careers · 2026 KPMG Interview Questions & Answers (2026): Audit, Tax & Advisory The KPMG interview process and Launch Pad, role-specific questions with...
Read article →
EY Interview Questions & Answers
Updated Jun 22, 2026 ·
EY Interview Questions & Answers 2026: Assurance, Tax & Consulting
Career Advice · Big 4 Careers · 2026 EY Interview Questions & Answers (2026): Assurance, Tax & Consulting EY's strengths-based process, role-specific questions with model answers for assurance,...
Read article →
Deloitte Interview Questions & Answers
Updated Jun 22, 2026 ·
Deloitte Interview Questions & Answers 2026: Audit, Tax & Consulting
Career Advice · Big 4 Careers · 2026 Deloitte Interview Questions & Answers (2026): Audit, Tax & Consulting The full interview process, role-specific questions with model answers for...
Read article →
Cloud Computing Interview Prep: Questions, Answers & Scenarios
cybersecurity Updated Apr 04, 2026 ·
Top Cybersecurity Analyst Interview Questions and Answers (2026 Guide)
Cloud Computing Interview Prep: Questions, Answers & Scenarios Cybersecurity analyst interview questions test your knowledge of threat detection, vulnerability assessment, network security, incident response, and compliance frameworks. Use...
Read article →