The Cost of Goods Sold (COGS) measures the "direct cost" incurred in the production of any good.
Direct labor costs, material costs, and factory overheads are all directly proportional to revenue.
Calculating COGS involves finding the "true cost" of goods sold during a period. It does not reflect the cost of goods that are purchased in the period and not sold or just kept in inventory. Management and investors can use it to monitor the performance of the business.
To know the cost of goods sold, you need to know the cost of materials and outputs cost. The cost of material is calculated by noting the amount it takes to acquire materials used in product manufacture. And Cost output is the total cost of sold goods.
It means you'll remove the cost of outputs from the cost of materials. This helps to determine if the cost paid for production is commensurate with the selling amount.