COGS (Cost Of Goods Sold) is the cost of producing the products you sell. COGS includes the cost of the materials and labor expenses to produce the product. It excludes logistic costs and marketing expenses. The formula for COGS is (Beginning inventory + purchases - ending inventory)