The formula to calculate the cost of goods sold is:
\[ \text{COGS} = \text{Beginning inventory} + \text{Purchases} - \text{Ending inventory} \]
The Cost of Goods Sold (COGS) represents the direct costs attributable to the production of the goods sold by a company. This includes the cost of the materials and labor directly used to create the product. It is an important metric as it is subtracted from the company's revenues to determine its gross profit.
Let's assume the following:
To calculate the cost of goods sold:
\[ \text{COGS} = 10,000 + 25,000 - 8,000 = 27,000 \]
Therefore, the cost of goods sold is $27,000.