Skip to content
Calculator Tools
Accounting Calculators

Cost of Goods Sold Calculator

COGS from beginning inventory, purchases and ending inventory — the periodic inventory method.

Enter values

Results update as you type.

Result

COGS

$127,000.00

Step-by-stepShow
  1. 45,000 + 120,000 − 38,000

About the Cost of Goods Sold Calculator

COGS from beginning inventory, purchases and ending inventory — the periodic inventory method.

Also known as: cogs formula, cost of sales, cost of goods sold.

How to use this calculator

  1. Enter beginning inventory, purchases, ending inventory.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Open “Step-by-step” to see how the answer was worked out.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

COGS = beginning inventory + purchases − ending inventory

Worked example

Using the values pre-filled in the calculator above:

  • Beginning inventory = 45,000
  • Purchases = 120,000
  • Ending inventory = 38,000

the calculator returns:

  • COGS: 127,000

Working

  1. 45,000 + 120,000 − 38,000