It refers to the expense incurred by the company in order to obtain raw materials and producing finished goods that are sold to consumers. It includes labor, materials, overhead, and depreciation. Typically, it is calculated by deducting ending inventory from the sum of beginning inventory and cost of goods purchased.