Explore free tools
HomeCalculatorsCost of goods sold calculator

Cost of goods sold calculator

COGS is the direct cost of the goods you sold in a period: what you started with, plus what you bought, minus what is left.

Your numbers

Value of stock at the start of the period.

Value of stock at the end of the period.

Cost of goods sold$11,600.00for the period
Beginning inventory
$12,000.00
Purchases
+$8,000.00
Freight-in and direct costs
+$600.00
Goods available for sale
$20,600.00
Ending inventory
−$9,000.00

How it is calculated

COGS = beginning inventory + purchases + direct costs − ending inventory

Assumptions

  • Inventory is valued the same way at the start and the end of the period.

Costs included

  • Inventory, purchases and direct costs you enter

Costs not included

  • Overhead
  • Advertising
  • Shipping to customers

Data and sources

This calculator uses only the numbers you enter. It applies no marketplace fee table, so there is no fee data to verify here. The formulas follow the published methodology.

How to improve the result

  • Value stock consistently from period to period, or COGS will swing for no real reason.
  • Include freight-in and duty: they are part of what the goods cost you.

Related tools