Cost of Goods Sold (COGS): Formula, Calculation Methods, and Complete Guide 2026
Quick Summary
- COGS = Opening Inventory + Purchases During the Period - Closing Inventory - the direct cost of producing or acquiring the goods a business sells.
- COGS includes direct materials, direct labour, and manufacturing overhead - it does not include marketing, admin, R&D, or distribution costs.
- There are multiple inventory cost assignment methods. For inventories that are ordinarily interchangeable, FIFO and Weighted Average are commonly used. For inventory items that are not ordinarily interchangeable, or goods or services produced and segregated for specific projects, specific identification is used. LIFO is prohibited under IFRS and is not permitted under Ind AS and AS 2.
- Gross Profit = Revenue - COGS; Gross Profit Margin % = (Gross Profit ÷ Revenue) × 100 - COGS directly determines this key metric.
- COGS differs by business type: manufacturers use a Cost of Goods Manufactured (COGM) schedule; retailers use the standard formula; service businesses track "Cost of Revenue."
Under the Indian Income Tax Act, Section 145 governs the method of accounting, while Section 145A specifically governs inventory valuation for tax computation. Inventory must be valued at the lower of actual cost or net realisable value in accordance with the notified ICDS. The method should be followed regularly year after year, and changes that materially affect taxable income may attract scrutiny.
Use Recent Stock Rates For Accurate Reports
What Is Cost of Goods Sold (COGS)?
Cost of Goods Sold (COGS) - also called Cost of Sales or Cost of Revenue - is the direct cost incurred by a business to produce or acquire the goods it sells during a specific accounting period. It is one of the most important figures on any income statement, sitting directly between revenue and gross profit.
COGS represents only the costs directly tied to producing goods sold - it excludes indirect costs like rent, admin salaries, marketing, or interest. This precision is what makes COGS such a powerful signal of production efficiency and pricing health.
COGS Formula
The standard COGS formula applies to both trading and retail businesses:
COGS = Opening Inventory + Purchases During the Period - Closing Inventory
| Variable | Meaning |
|---|---|
| Opening Inventory | Value of goods held at the start of the period |
| Purchases | Cost of additional inventory acquired during the period |
| Closing Inventory | Value of unsold goods remaining at the end of the period |
What Is Included in COGS - The Three Components
COGS is built from three categories of direct costs:
Component 1 - Direct Materials
Raw materials and components that physically become part of the finished product and can be traced directly to individual units.
Examples
- Steel used in manufacturing
- Fabric used in garment production
- Wood used in furniture making
- Packaging materials for products
- Electronic components for devices
- Chemical inputs for pharmaceutical products
Component 2 - Direct Labour
Wages, salaries, and benefits paid to workers who directly handle or produce the goods. Only labour that can be traced to specific production activities qualifies.
| Included (Direct Labour) | Excluded (Indirect Labour) |
|---|---|
| Assembly line workers | Factory supervisors |
| Machine operators | Quality control managers |
| Packaging staff | Maintenance staff |
| Sewing machine operators (garments) | HR and payroll staff |
Component 3 - Manufacturing Overhead
Indirect production costs that are necessary for manufacturing but cannot be traced to individual units. These are allocated to products using a predetermined overhead rate .
| Type | Examples |
|---|---|
| Variable overhead | Electricity powering machines, lubricants, production supplies |
| Fixed overhead | Factory rent, equipment depreciation, production insurance |
| Other manufacturing costs | Factory cleaning, quality testing equipment, production software |
What Is NOT Included in COGS
The following costs are explicitly excluded from COGS and are classified as operating expenses instead:
| Cost Type | Examples | Why Excluded |
|---|---|---|
| Selling expenses | Sales commissions, advertising, marketing campaigns | Not directly tied to producing goods |
| General & administrative | CEO salary, office rent, accounting fees, HR costs | Indirect business running costs |
| Research & Development | Product R&D, prototype development | Pre-production; no goods sold yet |
| Distribution costs | Outbound shipping to customers in many cases, delivery fleet | Post-production; occurs after goods are made |
| Interest expense | Loan interest, finance charges | Financing cost, not production cost |
| Income taxes | Corporate tax, advance tax | Levied on profit, not production |
Note on shipping: Inbound freight, meaning the cost of shipping raw materials or purchased goods to your factory or business location, is typically included in inventory cost. Outbound freight, meaning shipping finished goods to customers, is usually classified as a selling or distribution expense, though treatment can vary depending on the accounting framework and contractual arrangement. Consistency is key.
Where COGS Appears on the Income Statement
Understanding COGS requires knowing its precise position on the income statement :
Revenue (Net Sales) ₹10,00,000
Less: Cost of Goods Sold (COGS) (₹6,00,000)
-----------
Gross Profit ₹4,00,000
Less: Operating Expenses (₹2,50,000)
-----------
Operating Profit (EBIT) ₹1,50,000
Less: Interest Expense (₹20,000)
-----------
Profit Before Tax (PBT) ₹1,30,000
Less: Income Tax (₹39,000)
-----------
Net Profit (PAT) ₹91,000
COGS appears immediately below revenue - before operating expenses, interest, and taxes. It is the first and most direct deduction from revenue, making it the primary driver of gross profit.
How to Calculate COGS - Step-by-Step with Examples
Example 1 - Retail Business (Trading)
A clothing retailer reports for Q1 FY 2026-27:
| Item | Amount |
|---|---|
| Opening Inventory (1 April 2026) | ₹2,00,000 |
| Purchases during Q1 | ₹8,00,000 |
| Closing Inventory (30 June 2026) | ₹1,50,000 |
COGS = ₹2,00,000 + ₹8,00,000 - ₹1,50,000 = ₹8,50,000
Revenue for Q1: ₹12,00,000
Gross Profit = ₹12,00,000 - ₹8,50,000 = ₹3,50,000
Gross Profit Margin = ₹3,50,000 ÷ ₹12,00,000 × 100 = 29.17%
Example 2 - Manufacturing Business
A furniture manufacturer reports for FY 2026-27:
| Item | Amount |
|---|---|
| Opening Finished Goods Inventory | ₹3,00,000 |
| Cost of Goods Manufactured (COGM) | ₹15,00,000 |
| Closing Finished Goods Inventory | ₹2,50,000 |
COGS = ₹3,00,000 + ₹15,00,000 - ₹2,50,000 = ₹15,50,000
The Inventory Valuation Methods - With Worked Examples
When a business holds inventory purchased at different prices at different times, it must decide which cost to assign to goods sold. This is the inventory valuation method choice, and it directly determines the COGS figure.
Scenario for all examples:
A business buys and sells the same product over one month:
| Transaction | Date | Units | Unit Cost | Total Cost |
|---|---|---|---|---|
| Opening stock | 1 April | 100 units | ₹10 | ₹1,000 |
| Purchase | 10 April | 200 units | ₹12 | ₹2,400 |
| Purchase | 20 April | 150 units | ₹14 | ₹2,100 |
| Total available | 450 units | ₹5,500 | ||
| Units sold | 300 units | |||
| Closing stock | 150 units |
a. FIFO - First In, First Out
Assumption: The oldest first-purchased inventory is sold first.
COGS Calculation:
First 100 units from opening stock: 100 × ₹10 = ₹1,000
Next 200 units from April 10 purchase: 200 × ₹12 = ₹2,400
COGS = ₹1,000 + ₹2,400 = ₹3,400
Closing Inventory: 150 units from April 20 purchase: 150 × ₹14 = ₹2,100
Check: ₹3,400 + ₹2,100 = ₹5,500
b. LIFO - Last In, First Out
Assumption: The most recently purchased inventory is sold first.
COGS Calculation:
First 150 units from April 20 purchase: 150 × ₹14 = ₹2,100
Next 150 units from April 10 purchase: 150 × ₹12 = ₹1,800
COGS = ₹2,100 + ₹1,800 = ₹3,900
Closing Inventory: 100 units @ ₹10 + 50 units @ ₹12 = ₹1,000 + ₹600 = ₹1,600
Check: ₹3,900 + ₹1,600 = ₹5,500
LIFO is shown here for conceptual comparison only. It is prohibited under IFRS and is not permitted under Ind AS 2 or AS 2. Indian businesses should not use LIFO in financial reporting under these standards.
c. Weighted Average Method
Assumption: All available inventory is pooled and averaged - each unit carries the same cost.
Weighted Average Unit Cost = Total Cost Available ÷ Total Units Available
= ₹5,500 ÷ 450 units = ₹12.2222 per unit
COGS = 300 units × ₹12.2222 = ₹3,666.67
Rounded presentation: ₹3,667
Closing Inventory = 150 units × ₹12.2222 = ₹1,833.33
Rounded presentation: ₹1,833
Check: ₹3,666.67 + ₹1,833.33 = ₹5,500
d. Specific Identification Method
Assumption: The exact cost of specifically identifiable items is assigned to the exact items sold.
This method is used for inventory items that are not ordinarily interchangeable, or for goods or services produced and segregated for specific projects.
Examples:
- Luxury cars identified by chassis number
- Custom machinery
- Bespoke furniture
- Project-specific materials
e. Side-by-Side Comparison - Same Data, Different Results
| Method | COGS | Closing Inventory | Effect in Rising-Price Environment |
|---|---|---|---|
| FIFO | ₹3,400 | ₹2,100 | Lowest COGS -> Highest Gross Profit |
| LIFO (India: not permitted) | ₹3,900 | ₹1,600 | Highest COGS -> Lowest Gross Profit |
| Weighted Average | ₹3,667 | ₹1,833 | Middle ground -> smooths price fluctuations |
| Specific Identification | Depends on actual item sold | Depends on actual item remaining | Best for unique, non-interchangeable items |
With rising input prices, FIFO produces the lowest COGS and highest profit; LIFO would produce the highest COGS and lowest profit where it is permitted; Weighted Average falls in between. Specific identification depends on the actual items sold. This is why method selection has real tax and financial reporting consequences.
LIFO Banned Under IFRS, Ind AS, and AS 2
The Rule
LIFO is prohibited under:
- IFRS ( International Financial Reporting Standards ) - specifically IAS 2 Inventories
- Ind AS 2 Inventories - India's converged standard, adopted for companies following Indian Accounting Standards
- AS 2 Valuation of Inventories under the Indian GAAP framework
Who This Affects
| Category | Standard | LIFO Permitted? |
|---|---|---|
| Listed companies (India) | Ind AS | No |
| Large unlisted companies (Ind AS threshold) | Ind AS | No |
| SMEs / Companies under ICAI AS | AS 2 | No |
| US companies (US GAAP) | GAAP | Yes, though declining in use |
Periodic vs Perpetual Inventory Systems
The inventory system a business uses determines when and how COGS is calculated and recorded.
| Aspect | Periodic System | Perpetual System |
|---|---|---|
| COGS calculated | At end of period only (monthly, quarterly, annually) | After every single sale transaction |
| Inventory balance | Updated periodically via physical count | Updated in real-time after every movement |
| Best suited for | Small businesses, low transaction volume | Larger businesses, high transaction volume |
| Technology needed | Basic bookkeeping | Inventory management software / ERP |
| Accuracy | Lower (relies on physical count) | Higher (continuous tracking) |
| COGS formula | Opening Stock + Purchases - Closing Stock | Running total of cost per unit sold |
BUSY's financial accounting software supports perpetual inventory tracking with real-time COGS updates, reducing dependence on period-end physical counts.
Example - Perpetual System COGS Recording
Under a perpetual system using FIFO, every sale is immediately recorded:
Sale of 50 units on 15 April: Dr. COGS ₹500 (50 × ₹10); Cr. Inventory ₹500
Under the periodic system, this entry is made only at period-end after a physical stock count confirms closing inventory.
Many small businesses still use periodic stock determination, while businesses using accounting software or ERP systems often benefit from perpetual records for better real-time visibility.
COGS for Different Business Types
COGS is not calculated identically across all industries. The formula adapts based on the nature of the business.
a. Manufacturing Businesses - The COGM Schedule
Manufacturers do not simply purchase and resell goods - they transform raw materials into finished products. This introduces an intermediate calculation: Cost of Goods Manufactured (COGM).
COGM Formula:
COGM = Opening WIP + Direct Materials Used + Direct Labour + Manufacturing Overhead - Closing WIP
| Item | Amount |
|---|---|
| Opening Work-in-Progress (WIP) | ₹1,00,000 |
| Raw materials consumed | ₹8,00,000 |
| Direct labour | ₹3,00,000 |
| Manufacturing overhead | ₹2,00,000 |
| Less: Closing WIP | (₹80,000) |
| Cost of Goods Manufactured (COGM) | ₹13,20,000 |
Then COGS for a manufacturer:
COGS = Opening Finished Goods + COGM - Closing Finished Goods
= ₹2,00,000 + ₹13,20,000 - ₹1,50,000 = ₹13,70,000
b. Retail / Trading Businesses
Retailers buy finished goods and resell them. The standard formula applies directly - no production conversion involved.
COGS = Opening Stock + Purchases - Closing Stock
COGS for retailers primarily includes: purchase price of goods, inbound freight, import duties, and any costs to prepare goods for sale, such as labelling or packaging.
c. Service Businesses - Cost of Revenue
Pure service businesses (consultants, law firms, IT services) do not always hold inventory in the traditional sense - but they still incur direct costs of delivering services, often called "Cost of Revenue" or "Cost of Services".
| Service Type | Included in Cost of Revenue |
|---|---|
| IT services / software firm | Developer salaries, cloud hosting, software licences |
| Consulting firm | Consultant salaries, travel costs for client projects |
| Law firm | Attorney fees, paralegal time, court filing costs |
| Staffing agency | Subcontractor payments, placement costs |
| Catering business | Food ingredients, kitchen staff wages, equipment hire |
Not all service businesses report a "COGS" line - some may show only operating expenses. However, separating direct service delivery costs from overhead costs gives management clearer insight into service-level profitability.
Gross Profit and Gross Profit Margin - Formulas and Examples
COGS is the direct input to two of the most important financial metrics in business.
Gross Profit
| Item | Amount |
|---|---|
| Revenue | ₹20,00,000 |
| Less: COGS | (₹12,00,000) |
| Gross Profit | ₹8,00,000 |
Gross Profit Margin (%)
Gross Profit Margin = (Gross Profit ÷ Revenue) × 100
= (₹8,00,000 ÷ ₹20,00,000) × 100 = 40%
What this means: For every ₹100 of revenue, the business retains ₹40 after covering the direct cost of producing what it sold - before paying rent, salaries, taxes, or any other overhead.
How Inventory Method Affects Gross Profit Margin
Using the earlier example (300 units sold, rising prices):
| Method | COGS | Revenue (300 units × ₹20) | Gross Profit | Gross Margin % |
|---|---|---|---|---|
| FIFO | ₹3,400 | ₹6,000 | ₹2,600 | 43.3% |
| Weighted Average | ₹3,667 | ₹6,000 | ₹2,333 | 38.9% |
| LIFO (India: not permitted) | ₹3,900 | ₹6,000 | ₹2,100 | 35.0% |
The same business, same sales, same purchases, can report gross margins ranging from 35.0% to 43.3% purely based on the inventory method choice. This is why auditors and analysts scrutinise inventory method disclosures carefully.
COGS Margin - What Percentage Should It Be?
The COGS margin, also called COGS ratio or cost ratio , measures what proportion of revenue is consumed by COGS:
COGS Margin % = (COGS ÷ Revenue) × 100
Note: COGS Margin % + Gross Profit Margin % = 100%
Industry Average COGS Margins (Approximate)
| Industry | Typical COGS Margin | Typical Gross Margin |
|---|---|---|
| Grocery / FMCG retail | 70-80% | 20-30% |
| Manufacturing (heavy) | 60-75% | 25-40% |
| Pharmaceuticals | 25-40% | 60-75% |
| Software / SaaS | 10-30% | 70-90% |
| Apparel / Fashion | 40-55% | 45-60% |
| Food & Beverage | 55-70% | 30-45% |
| E-commerce | 60-75% | 25-40% |
| Automotive | 75-85% | 15-25% |
Compare your COGS margin against industry peers and your own historical trend. These ranges are broad directional benchmarks, not fixed rules. A rising COGS margin, and falling gross margin, over time can signal input cost inflation, inefficient purchasing, or production waste - each requiring different corrective action.
COGS vs Operating Expenses
| Aspect | COGS | Operating Expenses (OPEX) |
|---|---|---|
| Nature | Direct costs of producing/acquiring goods sold | Indirect costs of running the business |
| Position on P&L | Subtracted from Revenue -> yields Gross Profit | Subtracted from Gross Profit -> yields Operating Profit |
| Varies with? | Production / sales volume - rises when more is made/sold | Relatively fixed or semi-fixed (rent, admin salaries) |
| Examples | Raw materials, direct labour, factory overhead | Office rent, marketing, HR salaries, IT subscriptions |
| Controls | Production efficiency, supplier negotiation | Headcount management, overhead control |
Why the Distinction Matters
A business can have excellent gross margins (low COGS) but still make losses if operating expenses are too high. Conversely, a business with thin gross margins can still be profitable if overheads are lean. Separating COGS from OPEX reveals where the profitability problem, or opportunity, lies.
COGS vs Production Costs vs Cost of Sales
| Term | Scope | Key Difference |
|---|---|---|
| Production Costs | All costs of manufacturing goods - both sold and unsold | Broader than COGS; includes value of closing stock |
| COGS | Only the costs of goods actually sold in the period | Excludes cost of unsold inventory |
| Cost of Sales | Often used interchangeably with COGS | In some contexts, may include additional selling-related costs |
Example:
A manufacturer produces 1,000 units at ₹10 each = Production Costs: ₹10,000
800 units are sold; 200 remain in closing stock
COGS = 800 × ₹10 = ₹8,000
The remaining ₹2,000 stays on the balance sheet as inventory (current asset).
Are Salaries Included in COGS?
The answer depends on the role of the employee.
| Employee Type | Salary in COGS? | Examples |
|---|---|---|
| Direct production workers | Yes | Factory floor workers, assembly staff, machine operators |
| Production supervisors | Often through overhead allocation | Foremen, production line managers |
| Warehouse staff (inbound) | Often included if directly attributable | Staff receiving and storing raw materials |
| Office / admin staff | No - OPEX | HR, finance, legal, IT support |
| Sales team | No - OPEX | Sales executives, account managers |
| Marketing staff | No - OPEX | Marketing managers, social media team |
| R&D staff | Usually No - OPEX / separate R&D expense | Product developers, scientists |
How Inventory Levels Affect COGS
Since Closing Inventory is subtracted in the COGS formula, inventory levels have a direct and often counterintuitive impact:
| Closing Inventory Level | Effect on COGS | Effect on Gross Profit |
|---|---|---|
| Higher closing inventory | Lower COGS | Higher Gross Profit |
| Lower closing inventory | Higher COGS | Lower Gross Profit |
| Overvalued closing stock | COGS understated | Gross Profit overstated |
| Undervalued closing stock | COGS overstated | Gross Profit understated |
Audit risk: Deliberately inflating closing inventory to reduce COGS and boost reported profits is a common accounting manipulation. External auditors and tax assessors scrutinise stock valuations closely - especially at year-end.
COGS and Income Tax - Section 145, Section 145A, and ICDS II (India)
The choice of inventory valuation method is not just an accounting decision in India - it also has income-tax implications under the Income Tax Act, 1961 .
Section 145 - Method of Accounting
Under Section 145, a taxpayer must compute income under the relevant heads using either:
- Mercantile (accrual) basis, or
- Cash basis of accounting
This section governs the method of accounting regularly employed by the assessee, subject to notified standards.
Section 145A - Inventory Valuation
For inventory valuation specifically, Section 145A is the more relevant provision. It states that inventory shall be valued at the lower of actual cost or net realisable value computed in accordance with the Income Computation and Disclosure Standards (ICDS) notified under Section 145(2).
Section 145A also deals with the treatment of tax, duty, cess, or fee as specified in the law.
ICDS II - Valuation of Inventories
ICDS II provides the detailed tax computation rules for inventory valuation. It states that inventories shall be valued at cost or NRV, whichever is lower.
For cost assignment, ICDS II recognises:
- Specific Identification Method
- First-In, First-Out (FIFO) Method
- Weighted Average Cost Method
It also states that cost of inventory includes cost of purchase, cost of services, cost of conversion, and other costs incurred in bringing the inventories to their present location and condition. It excludes items such as abnormal waste, storage costs not necessary in the production process, administrative overheads that do not contribute to location and condition, and selling costs.
Practical Interpretation
For Indian income-tax purposes, the inventory valuation approach should be followed regularly. Any material change should be properly disclosed and consistently applied. A change that materially affects taxable income may attract scrutiny by the Assessing Officer.
It is more accurate to say this than to state that every change in inventory valuation method automatically requires prior tax authority approval.
AS 2 / Ind AS 2 - Inventory Valuation Standard
Indian accounting standards also require inventory to be valued at the lower of cost or net realisable value.
For inventories that are ordinarily interchangeable, accepted cost formulas are FIFO and Weighted Average.
For items that are not ordinarily interchangeable, or goods or services produced and segregated for specific projects, specific identification applies.
LIFO is not permitted.
Losing money on slow-moving items? Track every unit in BUSY!
Industry Average COGS Benchmarks
How to use benchmarks for your business:
- Calculate your COGS margin for the last 3 financial years
- Compare against the industry average for your sector
- If your COGS margin is significantly higher than peers, investigate supplier pricing, production waste, process inefficiency, or shrinkage
- If your COGS margin is lower than peers, you may have a genuine cost advantage - or you may be under-investing in quality or under-allocating certain costs
- Track the trend - a steadily rising COGS margin is a warning signal even if the absolute number seems acceptable
Strategies to Reduce COGS
| Strategy | How It Reduces COGS | Implementation |
|---|---|---|
| Negotiate better supplier pricing | Lower raw material costs | Volume commitments, long-term contracts, multiple supplier quotes |
| Bulk purchasing | Lower per-unit cost through economies of scale | Coordinate with cash flow management to avoid excess stock |
| Reduce material waste | Fewer inputs consumed per unit produced | Lean manufacturing, Six Sigma, waste tracking |
| Automate production processes | Lower direct labour cost per unit over time | Invest in machinery, robotics, or software for repetitive tasks |
| Optimise inventory management | Reduce obsolescence write-offs and carrying costs | Perpetual inventory system, ABC analysis, JIT purchasing |
| Source alternative suppliers | Access lower-cost or higher-quality inputs | Domestic sourcing, import substitution, supplier diversification |
| Improve production scheduling | Reduce overtime labour and idle time | ERP-based production planning |
| Energy efficiency | Lower manufacturing overhead | LED lighting, energy-efficient machinery, solar panels |
Limitations of COGS as a Metric
COGS is essential - but relying on it alone has important limitations every financial analyst and business owner should understand.
Limitation 1 - Inventory Method Dependency
As demonstrated in Section 7, the same business can report very different COGS figures based solely on the valuation method chosen. COGS comparisons across companies are only meaningful if they use comparable inventory methods.
Limitation 2 - Snapshot, Not Flow
COGS for a period depends on both the opening and closing inventory values. A one-time distortion in either, such as a year-end write-down or delayed stocktake, can significantly skew the figure without reflecting true operational performance.
Limitation 3 - No Quality Information
COGS tells you the cost of what was sold - it says nothing about the quality of those goods, customer returns, defect rates, or warranty costs, which may appear elsewhere in the financials.
Limitation 4 - Not Applicable to Pure Service Businesses in the Traditional Sense
For businesses that sell only services, traditional inventory-based COGS may not exist or may be replaced by "Cost of Revenue" - making cross-industry COGS comparisons less meaningful.
Limitation 5 - Timing Differences (Periodic System)
Under periodic inventory systems, COGS is only calculated at period-end. Intra-period management decisions - like mid-quarter pricing changes or production cost spikes - are not visible until after the fact.
Limitation 6 - Does Not Capture Overhead Allocation Accuracy
Manufacturing overhead is allocated using predetermined or systematic rates. If actual overhead differs significantly from the allocated rate, COGS may be misstated until year-end adjustments are made.
Explore All BUSY Calculators for Easy GST Compliance
Conclusion
Cost of Goods Sold is far more than an accounting entry - it is the single most direct measure of how efficiently a business produces or acquires what it sells. Every rupee of COGS is a rupee that never reaches gross profit , making its management one of the highest-leverage activities in any product-based business.
Track your COGS margin relative to industry benchmarks, analyse its trend over time, and use the reduction strategies in this guide to systematically lower input costs without compromising quality. A 5 percentage point reduction in COGS margin on ₹1 crore of revenue creates ₹5,00,000 of additional gross profit - before a single rupee of new revenue is earned.