← All tools/Calculators/Business/COGS Calculator

COGS Calculator

Enter your opening stock, purchases, closing stock and sales to find the cost of the goods you sold, your gross profit and your gross margin.

₹
₹
₹
₹

Cost of goods sold

₹8,50,000

Gross profit ₹6,50,000 · margin 43.33%

Cost of goods sold ₹8,50,000Gross profit ₹6,50,000
Cost of goods sold₹8,50,000
Gross profit₹6,50,000
Gross margin43.33%

How it works

COGS = Opening inventory + Purchases − Closing inventory
Gross profit = Sales − COGS
Gross margin % = (Gross profit ÷ Sales) × 100

Opening inventory ₹2,00,000 + purchases ₹8,00,000 − closing inventory ₹1,50,000 = COGS ₹8,50,000. With sales of ₹15,00,000, gross profit is ₹15,00,000 − ₹8,50,000 = ₹6,50,000, a gross margin of 43.33%.

Frequently asked questions

What counts as purchases in the COGS formula?

Everything bought for resale or production during the period — raw materials, finished goods for resale and freight-in. Office supplies, rent and salaries are operating expenses, not purchases, so they stay out of COGS.

Why does closing inventory reduce COGS?

Stock still on the shelf at the end of the period has not been sold, so its cost has not been used up yet. Subtracting it leaves only the cost of the goods that actually left the business.

What is a healthy gross margin?

It depends on the trade: grocers often run on 20–30%, while software and services can run above 70%. Compare your margin with similar businesses and watch the trend over time rather than chasing one number.

Is COGS the same as cost of sales?

Yes, the two terms mean the same thing in most accounts. Both cover the direct cost of the goods sold, before operating expenses such as rent, wages and marketing.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.