Handitab

COGS Calculator

Calculate cost of goods sold from beginning inventory, net purchases, and ending inventory, with gross profit when sales are entered.

About COGS Calculator

Cost of goods sold (COGS) is the direct cost of the inventory a business sold during a period. Under the periodic inventory method, COGS = beginning inventory + net purchases − ending inventory. Beginning inventory plus purchases is the cost of goods available for sale. If you enter sales, gross profit = sales − COGS and gross margin = gross profit ÷ sales × 100. The result depends on how your inventory is valued.

How to use COGS Calculator

  1. Fill in "Beginning inventory", "Net purchases", "Ending inventory" and "Sales".
  2. The result appears below and updates as you type.
  3. Copy the result with the copy button, or download it as a file where that is offered.

Questions about COGS Calculator

What counts as net purchases?

Purchases of goods for resale during the period, plus freight in, minus purchase returns, allowances, and discounts received. Operating expenses such as rent, marketing, and office salaries are not part of COGS.

Runs in your browser. Page last updated .

More finance and business calculators

All 25 finance and business calculators