Total direct costs attributable to total sales made. COGS will include most, if not all, variable costs incorporating materials, labour, and direct production costs. Costs of materials are often calculated indirectly by subtracting closing stock from the addition of opening stock plus purchases.