The cost of goods sold (COGS) is a critical financial metric that represents the direct costs attributable to the production of goods sold by a company, including raw materials and labor. It is essential for determining gross profit and is subtracted from revenues on the income statement to assess a company's profitability.