Cost of goods sold (COGS) is defined as the direct costs attributable to the production of the goods sold by a company.