COGS (Cost of Goods Sold)
COGS is the direct cost of producing or purchasing the products sold in a period: materials, product purchase cost, inbound freight and unit packaging. It's computed as beginning inventory plus purchases minus ending inventory, and it's subtracted from revenue first in every margin calculation.
Formula
COGS = Beginning Inventory + Purchases − Ending Inventory