FRIENDLY CALCULATOR · FREE ONLINE TOOL
Cost of Goods Sold (COGS) Calculator
Calculate cost of goods sold using opening inventory, net purchases and closing inventory. Enter your own values to see an estimate and review the calculation assumptions.
Enter your values
How to use this calculator
Enter the requested values and select Calculate. Results are computed in your browser from the values you provide. Check the assumptions and verify important financial decisions with the relevant official source or qualified professional.
Important: This tool provides an estimate for educational and planning purposes. It does not guarantee a lender's offer, tax treatment, market return or professional assessment.
Formula and methodology
The calculator displays the formula-based result using the inputs shown above. Values are rounded for display; intermediate calculations retain decimal precision where practical.
Worked example
Opening inventory ₹1,00,000 + net purchases ₹3,00,000 + inward freight ₹20,000 − closing inventory ₹80,000 = ₹3,40,000 COGS.
Frequently asked questions
What is included in net purchases?
Use purchases after purchase returns and discounts, measured consistently with your accounting policy. Do not subtract returns twice.
Should inward freight be included?
Freight and other directly attributable costs of bringing inventory to its present location and condition may be included under the applicable accounting framework.
Why is closing inventory subtracted?
Closing inventory represents goods not yet sold during the period, so its cost remains an asset rather than part of current-period COGS.
Is COGS the same as operating expenses?
No. COGS relates to inventory sold. Selling, administrative and many other overhead expenses are generally presented separately.