The cost of goods sold (COGS) represents the direct costs involved in producing goods or providing services. It is calculated by adding the cost of raw materials, labor, and other direct production costs.