Home › Cost of Goods Sold (COGS) Calculator

Cost of Goods Sold (COGS) Calculator

Free cost of goods sold calculator: beginning inventory plus purchases minus ending inventory.

How the cost of goods sold (cogs) calculator works

COGS is the cost of the stock you actually sold in the period.

Formulas

  • COGS = Beginning inventory + Purchases + Freight − Returns − Ending inventory

Worked example

Using the pre-filled values (Currency: USD; Beginning inventory: 1000; Purchases: 5000; Freight in: 100; Purchase returns and allowances: 50; Ending inventory: 1200) the calculator returns Goods available for sale: 6,050.00; Cost of goods sold: 4,850.00.

Accuracy and privacy

Calculations use exact decimal arithmetic rather than floating-point numbers, invalid input is reported instead of producing a misleading result, and nothing you type leaves your browser.

FAQ

Which inventory method should I use?

FIFO, LIFO (where allowed) or weighted average change the ending inventory figure. Use the method your accountant or tax authority requires.

Create an invoice free Open calculators

For information only – not financial, tax or legal advice. See our disclaimer.

Related tools

Need help?