COGS: Meaning, Example and Why It Matters in Business Analysis

COGS, short for cost of goods sold, is the direct cost of making the products or services a company sells. It covers things like raw materials and the labour that goes straight into production, but not the wider costs of running the business.
COGS is the very first cost subtracted from a company's sales, so it sets the tone for everything below it on the profit statement. Once COGS meaning clicks, gross profit and margins stop feeling like jargon.
Here we will explain what COGS is, work through an example, show the formula, and compare it with the other costs a business carries.
Quick Meaning
COGS, or cost of goods sold, is the direct cost of producing the goods or services a company sells during a period.
It includes raw materials and direct production labour, and it is subtracted from revenue to give gross profit, making it one of the most important cost figures in any business.
Simple meaning: COGS is what it actually costs a company to make the things it sells.
Beginner takeaway: The lower the COGS for the same sales, the more gross profit the business keeps.
What does COGS mean?
Let us take the term apart.
Cost of goods sold means exactly what it says, the cost of the goods that were sold. The key word is "direct".
COGS captures only the costs tied directly to making the product. It leaves out the wider costs of running the business, like head office salaries or marketing.
Think of a bakery. The flour, sugar, and the baker's wages go into COGS, because they are needed to make the bread itself.
The rent on the shop, the advertising, and the accountant's fee do not. Those are running costs of the wider business, not the direct cost of baking.
Short answer: COGS is the direct cost of producing what a company sells, mainly materials and direct labour.
One detail matters here. COGS counts the cost of goods that were actually sold in the period, not everything the company made.
Unsold products stay as inventory, a current asset on the balance sheet, until they sell. Only when they sell does their cost move into COGS.
What is included in COGS?
It helps to see clearly what falls inside COGS and what stays outside. The line is always "direct versus indirect".
Included are raw materials and components, the physical inputs of the product. Direct labour, the wages of people who actually make the product, is included too.
Also included are direct production costs, like factory power and freight to bring materials in. For a retailer, COGS is mainly the cost of buying the inventory it resells.
Excluded are indirect costs, marketing, admin, distribution, and head office salaries. These are operating expenses, not COGS, and they appear lower down the profit statement.
Beginner takeaway: If a cost is needed to physically make or buy the product, it is COGS. If it supports the wider business, it is not.
COGS for services versus products
COGS is easiest to picture for a product business, but service companies have it too. There it is sometimes called cost of services or cost of revenue.
For a product company, COGS is materials and factory labour. For a software or consulting firm, it might be the salaries of the people delivering the service, and the hosting costs to run it.
The principle stays the same across both. COGS is the direct cost of delivering whatever the company sells.
Where will you see COGS?
Once you start reading company financials, COGS appears in a predictable spot.
The profit and loss statement, right below revenue. Revenue minus COGS gives gross profit, so COGS is almost always the first cost you meet.
Annual reports and investor updates, where management explains why COGS rose or fell. A jump in input costs shows up here first.
Stock screeners and broker notes, sometimes labelled "cost of revenue". Whether you invest directly in Indian stocks, or you are an NRI learning how to invest in India, COGS is where you begin to judge how profitably a company makes what it sells.
How COGS works
COGS is tied tightly to inventory, the stock of goods a company holds. The logic is simple once you see it.
A company starts the year with some stock already on hand. During the year it buys or makes more, adding to that stock.
By year end, some stock remains unsold. Whatever left the shelves and was sold to customers, that is what COGS measures.
So COGS is not simply everything the company spent on production. It is the cost of just the portion that was actually sold.
This is why cash tied up in unsold inventory affects a company's liquidity. Money spent making goods that have not sold yet is money the business cannot use elsewhere.
COGS formula
The standard way to calculate COGS uses inventory levels.
COGS = Opening Inventory + Purchases (and direct costs) − Closing Inventory
Opening inventory is the stock you began with. Purchases and direct costs are what you added during the year. Closing inventory is the stock left unsold at the end.
Simple way to read this formula: take what you started with, add what you brought in, then subtract what is still on the shelf. What is missing was sold, and its cost is your COGS.
We will check this with real numbers in the example next.
Simple example
Let us use Anaya Foods Ltd, the packaged snacks company from our other lessons, so the figures stay familiar. All numbers are in crore rupees.
Anaya begins the year with 8 crore of stock. During the year it spends 62 crore on ingredients, packaging, and factory labour.
At year end, 10 crore of stock remains unsold. Using the formula: 8 + 62 − 10 = 60 crore.
So Anaya's COGS for the year is 60 crore. This is the direct cost of the snacks it actually sold.
Now place it against sales. Anaya sold 100 crore of snacks, so revenue 100 minus COGS 60 leaves a gross profit of 40 crore.
That gross profit of 40 crore is what remains to cover everything else, running costs, interest, and tax. COGS alone decided how much was left at this very first step.
Gross margin
COGS leads directly to one of the most watched numbers in business, the gross margin. It shows what share of sales survives after direct costs.
Gross Margin = (Revenue − COGS) / Revenue x 100
For Anaya Foods: (100 − 60) / 100 x 100 = 40 percent.
Simple way to read this: for every 100 rupees of snacks sold, 40 rupees is left after the direct cost of making them. A higher gross margin means the company keeps more from each sale, before its other costs.
COGS vs operating expenses
The cleanest way to lock in COGS is to separate it from operating expenses, or opex. Both are costs, but they sit at different stages.
COGS is the direct cost of making the product, subtracted first to give gross profit. Operating expenses are the indirect running costs, subtracted next to give operating profit.
Common confusion: COGS is the cost of making what you sell. Operating expenses are the cost of running everything around that.
Why does COGS matter?
COGS matters because it is the first and often largest cost a company faces, so it heavily shapes profitability. A small change in COGS can move gross profit sharply.
When input costs rise, raw materials, wages, freight, COGS climbs and gross margin shrinks, unless the company can raise prices. This is why margin pressure so often traces back to COGS.
Watching COGS as a share of sales over time tells you whether a company is getting more or less efficient at making its product. A steadily rising COGS ratio is an early warning worth heeding.
Efficient control of COGS protects margins, cash, and a company's ability to build net worth from its own earnings. It is one of the truest tests of how well a business is actually run.
Investors valuing a company by projecting its future profits and converting them to today's worth with a discount rate lean heavily on gross margin trends. Rising COGS quietly lowers the future value they can reasonably expect.
Tip: Track COGS as a percentage of sales, not just the rupee figure. A creeping percentage often signals margin trouble before it hits the bottom line.
Common mistakes beginners make
Mistake 1: Mixing COGS with operating expenses
Beginners often bundle all costs together. But marketing and rent are operating expenses, not COGS, and confusing them distorts gross profit.
Keep the line clear, direct costs of making the product are COGS, everything else is not. Getting this wrong ruins any read of a company's margins.
Mistake 2: Judging COGS in rupees, not as a ratio
A rising COGS figure is not automatically bad. If sales grew even faster, the company may be more efficient than before.
Always look at COGS as a share of sales. The ratio, and its trend, tells the real story.
Mistake 3: Comparing COGS across different industries
A jeweller has very high COGS, because gold is expensive, while a software firm has very low COGS. Comparing them directly is meaningless.
Judge COGS and gross margin against companies in the same industry. Only then does the number carry a useful signal.
Mistake 4: Forgetting the inventory link
COGS depends on what was sold, not just what was spent. Ignoring the opening and closing inventory adjustment leads to a wrong figure.
Remember that unsold stock stays on the balance sheet, its cost has not entered COGS yet. That timing is easy to overlook.
For NRIs and global investors
COGS works exactly the same way whether the company is Indian, American, or based anywhere else. It is an accounting concept, not a tax or banking rule, so your residential status does not change what it means.
There is one reason it is especially useful for globally minded investors.
For NRIs: If you invest in Indian companies for dividends or growth, gross margin, which flows directly from COGS, is one of the clearest signs of a company's pricing power and efficiency. A business that keeps COGS low relative to sales tends to hold up better, which matters when comparing where your money grows best.
For resident Indians investing globally: The same logic applies as you diversify beyond India. Comparing the gross margins of global companies against Indian ones gives you a clean, currency-neutral read on which businesses make their products most profitably.
On the personal side, one note for NRIs. A company's COGS has nothing to do with your own tax, but the dividend and investment income you earn from Indian holdings generally appears in your Annual Information Statement, and your tax on it depends on your residential status.
If you are also planning money moves around a return to India, check current rules from official sources or a qualified advisor.
Mini checklist
Before you judge a company on its COGS, quickly check:
Is COGS as a share of sales (which sets the gross margin) rising or falling over time?
Is COGS growing slower or faster than the company's sales?
Are you separating COGS cleanly from operating expenses?
Have you accounted for the inventory adjustment, opening plus purchases minus closing?
How does the gross margin compare with others in the same industry, not across industries?
Practical takeaway
The simple way to remember COGS: it is what it actually costs a company to make the things it sells.
When you study a company, watch COGS as a share of sales, because that sets the gross margin, and follow the trend across years.
A business that keeps its direct costs in check while sales grow is protecting the very first, and most important, layer of its profit.
FAQs
What is COGS in simple words?
COGS, or cost of goods sold, is the direct cost of making the products or services a company sells. It mainly covers raw materials and the labour that goes straight into production.
What is included in COGS?
COGS includes raw materials, direct production labour, and direct costs like factory power and inbound freight. It excludes indirect costs such as marketing, admin, and distribution, which are operating expenses.
What is the difference between COGS and operating expenses?
COGS is the direct cost of making the product and is subtracted first to give gross profit. Operating expenses are the indirect costs of running the business and are subtracted afterwards to give operating profit.
How is COGS calculated?
The common formula is opening inventory plus purchases and direct costs, minus closing inventory. This captures the cost of only the goods that were actually sold during the period.
Why does COGS matter to investors?
COGS decides gross profit and gross margin, the first measure of profitability. Rising COGS squeezes margins unless the company can raise prices, so its trend signals pricing power and efficiency.
Where can I find a company's COGS?
Look in the profit and loss statement, right below revenue. It is sometimes labelled "cost of revenue", and many stock screeners show it directly.
Does COGS matter for NRIs analysing Indian stocks?
Yes. Gross margin, which comes straight from COGS, is a clear sign of a company's efficiency and pricing power. Your own tax on any dividends still depends on your residential status and current rules.
Final Summary
COGS is basically what it costs a company to make the things it sells, mainly materials and direct labour. It is the first cost subtracted from sales, so it sets the gross profit and the gross margin.
Calculate it with opening inventory plus purchases minus closing inventory, and read it as a share of sales over time.
Use COGS to judge how efficiently a company makes its product and whether its margins are holding up.
If you are studying a company, watch COGS relative to revenue across several years. A business that keeps its direct costs in check while growing sales is protecting the strongest, earliest layer of its profit.
Comments
Your comment has been submitted