The formula for calculating average cost is: Average Cost (AC) = Total Cost (TC) / Quantity of Output (Q) Where total cost is the sum of fixed costs (costs that do not change with the level of output) and variable costs (costs that vary directly with the level of production).