Cost of Goods Sold Detail Calculator

Enter beginning inventory, line-item purchases, and ending inventory to compute total Cost of Goods Sold with a detailed breakdown.

Use the Cost of Goods Sold Detail Calculator

Purchases & Direct Costs
No items yet — click "Add Item" to begin.

Fill in the inputs and click Calculate COGS to see your results.

Summary

Cost of Goods Sold (COGS) is calculated as Beginning Inventory plus Purchases minus Ending Inventory. This calculator lets you add individual purchase line items — materials, freight, direct labor, and other costs — so you can see exactly how each input contributes after you click Calculate COGS.

How it works

  1. Enter your beginning inventory value for the period.
  2. Add each purchase or direct cost as a line item with a description and amount.
  3. Enter the ending inventory value counted at the close of the period.
  4. The calculator applies the formula: COGS = Beginning Inventory + Total Purchases − Ending Inventory.
  5. Review the itemized breakdown table and the final COGS total.
  6. Use the calculated values in your income statement or accounting worksheet.

Use cases

  • Prepare the COGS section of a monthly or annual income statement.
  • Break down manufacturing costs into materials, freight, and labor components.
  • Verify that your accounting software COGS figure matches a manual calculation.
  • Estimate gross profit margin by comparing COGS against revenue.
  • Teach students the COGS formula with a live, interactive example.
  • Track cost trends across periods by recalculating with updated inventory values.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu