Skip to content
Advertisement
Hosinger Special Offer

Cost of Goods Sold Calculator

Cost of Goods Sold Calculator from Gizcalc helps you estimate results quickly within the Business & Accounting category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
Cost of Goods Sold —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

COGS = Opening inventory + Purchases + Direct costs − Closing inventory

  • Direct costs = freight-in, customs duty, direct labour and factory expenses
  • Purchases = excluding input GST that you can claim as credit

About the Cost of Goods Sold Calculator

What is the Cost of Goods Sold Calculator?

Cost of goods sold (COGS) is what the goods you actually sold cost you. It is worked out from inventory: what you had at the start, plus what you bought and spent to make or bring in goods, minus what is left at the end.

Enter the figures for the period, and add revenue to see gross profit, gross margin and inventory turnover.

How to use the Cost of Goods Sold Calculator

  1. Opening Inventory (₹) (sample: 8,00,000)
  2. Purchases During the Period (₹) (sample: 35,00,000)
  3. Direct Costs – freight-in, direct labour, factory expenses (₹) (sample: 4,00,000)
  4. Closing Inventory (₹) (sample: 9,00,000)
  5. Revenue for the Period (₹, optional) (sample: 55,00,000)
  6. Press Calculate COGS (results also refresh as you type). The result card shows the Cost of Goods Sold, along with Goods available for sale, Gross profit, Gross margin and Inventory turnover.

Formula used

COGS = Opening inventory + Purchases + Direct costs − Closing inventory

  • Direct costs = freight-in, customs duty, direct labour and factory expenses
  • Purchases = excluding input GST that you can claim as credit

Value inventory consistently (FIFO or weighted average) – the Income Tax Act follows AS-2 / ICDS II.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
Opening Inventory (₹)8,00,000
Purchases During the Period (₹)35,00,000
Direct Costs – freight-in, direct labour, factory expenses (₹)4,00,000
Closing Inventory (₹)9,00,000
Revenue for the Period (₹, optional)55,00,000
ResultValue
Cost of Goods Sold₹38,00,000
Goods available for sale₹47,00,000
Gross profit₹17,00,000
Gross margin30.91%
Inventory turnover4.47×

Tips for using the Cost of Goods Sold Calculator

  • Physical stock counts at year end prevent COGS errors from shrinkage or damaged goods.
  • Do not include selling, marketing or office expenses in COGS.

Frequently asked questions

Opening stock ₹8 lakh + purchases ₹35 lakh + direct costs ₹4 lakh − closing stock ₹9 lakh = ₹38 lakh COGS.

Not if you claim input tax credit. If credit is not available, the GST paid becomes part of the cost.

They have a "cost of revenue" – direct salaries, subcontractors and hosting – used the same way to find gross margin.