Cost of Goods Sold (COGS): Calculation Methods, Formula, and How to Calculate with Example

Learn about the Cost of Goods Sold (COGS), its calculation, significance for financial health, and its role in pricing and tax planning.
Business Loan
4 min
March 4, 2026

If you operate a business, the cost of goods sold (COGS) is one of the most important financial indicators to monitor. It has a direct impact on your overall profitability, making it essential for every proprietor or manager to understand how COGS is calculated and how it influences business performance.

If you wish to gain a clearer understanding of the cost of goods sold and its effect on your enterprise, this guide explains what COGS comprises, how it is calculated, and how it can be applied to support more informed and effective business decisions.

 

What is the Cost of Goods Sold (COGS)?

Cost of Goods Sold (COGS) refers to the direct expenses involved in producing the goods or delivering the services a company sells. It reflects the cost required to bring an item to its saleable condition.

  • These direct costs typically include raw materials, direct labour, and production-related overheads such as utilities or equipment depreciation.
  • Indian accounting context: In India, COGS is calculated while preparing the Statement of Profit and Loss under the Companies Act, 2013, and is an essential component for tax reporting under the Income Tax Act, 1961. It is deducted from Revenue from Operations to determine Gross Profit.

Importance of Cost of Goods Sold (COGS)

Cost of goods sold (COGS) is a key figure in financial statements, as it is deducted from a company’s revenue to calculate its gross profit. Gross profit is an indicator of profitability that measures how efficiently a business utilises its labour and materials in the production process.

As COGS represents a direct cost of carrying on business, it is recorded as an expense in the income statement. An understanding of COGS enables analysts, investors and managers to assess a company’s overall profitability. If COGS rises, net income will generally decline. Although a higher COGS may reduce taxable income, it also results in lower profits available to shareholders. For this reason, businesses typically seek to manage and control their COGS effectively in order to maintain stronger net profit margins.

What does the Cost of Goods Sold (COGS) include?

Understanding which costs are included in COGS is essential for accurate calculation and for determining the true profitability of each product you sell. Typically, COGS comprises the following:

  • Raw materials and components: These are the physical materials used to create the product. For retailers, this includes wholesale goods purchased for resale. For manufacturers or food businesses, it covers ingredients, parts, or any items that become part of the finished product.
  • Direct labour costs: Direct labour refers to wages paid to employees who are directly involved in producing or preparing the product for sale. Examples include bakers, assembly-line staff, and production workers. It excludes general staff, administrative employees, or managers not directly involved in production.
  • Packaging costs: Any packaging required to make the product sale-ready—such as boxes, bottles, labels, bags, or safety seals—is included in COGS.
  • Freight and shipping for acquiring goods: Transportation costs for bringing materials or inventory to your business are included. For instance, delivery charges for raw materials from a supplier count towards COGS.
  • Direct factory or production costs: Expenses that directly support production, such as equipment used exclusively for making the product, production-related utilities, or small tools consumed during manufacturing, are included.

These costs are included because they represent the true expense of getting each product into a sellable condition. Indirect costs—such as rent, administrative salaries, marketing, or general utilities—are excluded from COGS, as they support the business as a whole rather than a specific product.


What are the exclusions from cost of goods sold (COGS)?

Certain expenses are not included in COGS. These generally fall under selling, general, and administrative expenses (SG&A), such as:

  • Distribution or delivery costs to customers
  • Office rent and utilities
  • Advertising and marketing expenses
  • Accounting and legal fees
  • Management and executive salaries

Additionally, non-operating costs—such as interest payments and capital expenditures—are excluded from COGS. The costs of any unsold inventory at the end of a period are also not included; instead, they are recorded as ending inventory on the balance sheet.



Different accounting methods for COGS

Since inventory costs fluctuate over time, different valuation methods are used to determine which cost is applied to the goods sold.

  • First-In, First-Out (FIFO): Assumes the earliest purchased inventory is sold first. In periods of rising prices, this usually leads to a lower COGS and higher reported profit. For example, a pharmaceutical distributor may use FIFO so that older batches of medicines are cleared before expiry.
  • Last-In, First-Out (LIFO): Assumes the most recently purchased inventory is sold first. This results in a higher COGS and lower profit when prices are increasing. However, LIFO is not permitted under Indian Accounting Standards (Ind AS) or IFRS.
  • Weighted Average Cost (WAC): Determines the average cost of all units available for sale during the period. This method helps smooth out price fluctuations. For instance, cement manufacturers dealing with uniform, high-volume materials commonly use the WAC approach.
  • Specific Identification: Assigns the actual cost of each item sold. This method is used for unique, high-value items. For example, a jeweller records the specific purchase cost of each diamond or gold ornament.

Formula of Cost of Goods Sold (COGS)

The formula for calculating COGS is straightforward and essential for financial analysis. Below is the step-by-step process:
 

  • Opening inventory: Determine the value of inventory at the beginning of the period
  • Add purchases: Include all purchases made during the period for production
  • Subtract closing inventory: Deduct the value of unsold inventory at the end of the period
  • COGS formula: Opening Inventory + Purchases - Closing Inventory

This formula provides a clear picture of the direct costs associated with production.
 

How to calculate the cost of goods sold (COGS)?

Accurate calculation of COGS is vital for financial management. Follow these steps to calculate COGS:
 

  • Determine opening inventory: Assess the value of inventory at the start of the period
  • Add direct costs: Include raw materials, labour, and overheads incurred during production
  • Account for purchases: Sum up all additional purchases made during the period
  • Calculate closing inventory: Value the remaining inventory at the end of the period
  • Apply COGS formula: Subtract the closing inventory from the total of opening inventory and purchases

Calculation with example

To understand COGS better, let us consider a practical example:

Scenario 1: Retail Business (Buying and Selling Goods)

ItemAmount (₹)
Opening Inventory (1st April)80,000
Purchases During the Year5,50,000
Closing Inventory (31st March)1,20,000
COGS80,000 + ₹5,50,000 - ₹1,20,000 = ₹5,10,000


Scenario 2: Manufacturing Business (Calculating Cost of Goods Manufactured - COGM)

In manufacturing, COGS calculation is slightly more complex as it first requires calculating the Cost of Goods Manufactured (COGM).

ItemAmount (₹)
Opening Work-in-Progress (WIP)1,00,000
Raw Material Used2,50,000
Direct Labour1,50,000
Manufacturing Overheads50,000
Total Manufacturing Cost4,50,000
Less: Closing WIP-50,000
COGM (Cost of goods completed)₹5,00,000
Opening Finished Goods Inventory1,50,000
Closing Finished Goods Inventory(1,00,000)
COGS5,00,000 + ₹1,50,000 - ₹1,00,000 = ₹5,50,000


Common mistakes in calculating COGS and how to avoid

Common MistakeImpactHow to Avoid
Misclassifying expensesAdding indirect costs such as rent, marketing, or administrative salaries into COGS, which artificially inflates expenses and reduces gross profit.Maintain separate accounts for Direct Costs (COGS) and Operating Expenses (OpEx). Check whether a cost is directly required to produce the product.
Ignoring or estimating inventoryIncorrect physical counts or failing to match opening and closing inventory leads to distorted COGS figures.Carry out regular physical inventory audits monthly or quarterly. Ensure the closing inventory of one period becomes the opening inventory of the next.
GST treatment errorsRecording the full GST paid on inputs instead of the net amount after claiming Input Tax Credit (ITC), leading to overstated costs.Always compute COGS using the purchase cost excluding eligible GST, after applying ITC.
Inconsistent valuation methodSwitching between FIFO, WAC, and other methods to influence profit levels results in non-compliance and unreliable reporting.Select a valuation method suitable for your business and apply it consistently across accounting periods.
Ignoring direct costsOverlooking essential direct expenses such as freight-in charges, import duties, or packaging affects true cost measurement.Record and track every expense required to bring inventory to your warehouse and into a saleable condition


Type of companies excluded from a COGS deduction

Certain businesses cannot claim a deduction for COGS due to the nature of their operations. These include:
 

  • Service-oriented businesses: Companies that provide services instead of physical products, such as consulting firms
  • Financial institutions: Banks and investment firms where direct production costs are not applicable
  • Non-profits: Organisations not engaged in profit-making activities
  • Educational institutions: Schools and universities where services are rendered rather than goods sold
  • Government agencies: Public sector organisations focused on governance and public welfare

What are the limitations of COGS?

While COGS is a vital metric, it has certain limitations, particularly for small Indian businesses:

  • Excludes indirect costs: COGS accounts only for direct production expenses and leaves out key overheads such as marketing, administrative salaries, rent, and head-office utilities, all of which influence overall profitability.
  • Prone to manipulation: Businesses may overstate or understate inventory levels to alter COGS and gross profit for tax or reporting advantages.
  • Complex inventory tracking: Accurate valuation requires detailed records, which can be difficult for MSMEs that rely on informal bookkeeping. Errors in inventory counts can lead to misleading COGS figures.
  • Method-based variations: The chosen inventory valuation method (FIFO, WAC) can materially impact the COGS value and the profit reported.

How COGS affects tax planning and financial reporting

COGS is more than a routine expense. It plays a central role in financial management:


  • Tax planning: A higher but correctly computed COGS reduces Gross Profit and therefore lowers taxable income. This is a legitimate tax-minimisation approach, provided all supporting costs are accurately recorded and verifiable under the Income Tax Act.
  • Financial reporting and compliance: Accurate presentation of COGS in the Profit and Loss Statement is mandatory under Indian Accounting Standards (Ind AS) and for Income Tax compliance. Errors or deliberate misstatements can trigger audits and attract penalties.
  • Lender confidence: Banks and financial institutions, including Bajaj Finance, closely examine Gross Margin (Gross Profit divided by Net Sales) to evaluate business health. A well-controlled COGS signals operational efficiency and strengthens the chances of obtaining finance, such as a business loan.

Differences between COGS, OpEx and Cost of Revenue

FeatureCost of Goods Sold (COGS)Operating Expenses (OpEx)Cost of Revenue (COR)
DefinitionRepresents the direct costs incurred to produce goods or deliver services sold by the business.Covers the indirect costs required to run and manage day-to-day business operations.Includes all costs directly linked to generating revenue and is broader in scope than COGS.
ScopeFocused on production and inventory-related expenditure.Relates to general business functions such as selling, administration, and support activities.Includes COGS along with other direct revenue-generating expenses such as distribution.
ExamplesRaw materials, direct labour, and utilities used in production.Office rent, marketing and administrative salaries, and professional fees.For service companies: direct employee costs, hosting expenses, and distribution-related costs.
Financial ImpactUsed to calculate Gross Profit.Used to determine Operating Profit (EBIT).Applied by both product and service businesses to arrive at gross margin.


Conclusion

Understanding the Cost of Goods Sold (COGS) is crucial for businesses aiming to improve their financial performance. COGS directly impacts revenue, income, and overall profitability. By accurately calculating COGS, businesses can make informed decisions about pricing, budgeting, and cost optimisation. Additionally, understanding the differences between COGS, operating expenses, and cost of revenue is vital for comprehensive financial analysis. For businesses seeking to manage their working capital effectively, considering options like a business loan through Bajaj Finance can provide valuable financial support.

Helpful resources and tips for business loan borrowers

Types of Business LoanBusiness Loan Interest RatesBusiness Loan Eligibility
Business Loan EMI CalculatorUnsecured Business LoanHow to Apply for Business Loan
Working Capital LoanMSME LoanMudra Loan
Machinery LoanPersonal Loan for Self EmployedCommercial Loan

Frequently asked questions

What is an example of the cost of goods sold?
An example of Cost of Goods Sold (COGS) could include the expenses incurred in producing a piece of furniture. These costs would involve purchasing raw materials like wood, nails, and varnish. Additionally, it would include wages paid to carpenters directly involved in manufacturing, as well as the costs for machinery usage and packaging. By summing up these direct production costs, businesses can calculate their COGS and use the figure to assess gross profit and make strategic pricing decisions.

What are COGS in P&L?
In the Profit and Loss (P&L) statement, Cost of Goods Sold (COGS) refers to the direct costs associated with producing goods or services. It is deducted from total revenue to calculate the gross profit, reflecting a business’s profitability. COGS includes raw materials, labour, and other production-related expenses. By accurately recording COGS in the P&L statement, businesses can evaluate their financial performance, optimise operations, and identify areas where cost reductions can improve overall profitability.

Can COGS be negative?
No, COGS cannot be negative. A negative COGS would imply that the costs incurred for producing or delivering goods are less than zero, which is not feasible. However, businesses might experience zero or low COGS in specific situations, such as when no goods are sold during the accounting period or when products are donated. Accurately calculating COGS ensures transparent financial reporting, enabling businesses to assess gross profit and adjust their cost structures accordingly.

What is the difference between the cost of sales and COGS?
The primary difference between Cost of Sales and Cost of Goods Sold (COGS) lies in their scope and application. Cost of Sales generally refers to all direct and indirect expenses incurred in selling a product or service, while COGS focuses solely on direct production costs. Cost of Sales includes additional expenses like distribution and marketing. Understanding this distinction allows businesses to better analyse their financial performance and develop targeted strategies for cost management and revenue generation.

Show More Show Less

Bajaj Finserv App for All Your Financial Needs and Goals

Trusted by 50 million+ customers in India, Bajaj Finserv App is a one-stop solution for all your financial needs and goals.

You can use the Bajaj Finserv App to:

Apply for loans online, such as Instant Personal Loan, Home Loan, Business Loan, Gold Loan, and more.

  • Explore and apply for co-branded credit cards online.
  • Invest in fixed deposits and mutual funds on the app.
  • Choose from multiple insurance for your health, motor and even pocket insurance, from various insurance providers.
  • Pay and manage your bills and recharges using the BBPS platform. Use Bajaj Pay and Bajaj Wallet for quick and simple money transfers and transactions.
  • Apply for Insta EMI Card and get a pre-approved limit on the app. Explore over 1 million products on the app that can be purchased from a partner store on Easy EMIs.
  • Shop from over 100+ brand partners that offer a diverse range of products and services.
  • Use specialised tools like EMI calculators, SIP Calculators
  • Check your credit score, download loan statements, and even get quick customer support—all on the app.
Download the Bajaj Finserv App today and experience the convenience of managing your finances on one app.

Do more with the Bajaj Finserv App!

UPI, Wallet, Loans, Investments, Cards, Shopping and more

Disclaimer

1. Bajaj Finance Limited (“BFL”) is a Non-Banking Finance Company (NBFC) and Prepaid Payment Instrument Issuer offering financial services viz., loans, deposits, Bajaj Pay Wallet, Bajaj Pay UPI, bill payments and third-party wealth management products. The details mentioned in the respective product/ service document shall prevail in case of any inconsistency with respect to the information referring to BFL products and services on this page.

2. All other information, such as, the images, facts, statistics etc. (“information”) that are in addition to the details mentioned in the BFL’s product/ service document and which are being displayed on this page only depicts the summary of the information sourced from the public domain. The said information is neither owned by BFL nor it is to the exclusive knowledge of BFL. There may be inadvertent inaccuracies or typographical errors or delays in updating the said information. Hence, users are advised to independently exercise diligence by verifying complete information, including by consulting experts, if any. Users shall be the sole owner of the decision taken, if any, about suitability of the same.
For customer support, call Personal Loan IVR: 7757 000 000