The cost per unit formula involves the sum of fixed and variable costs, which is then divided by the total number of units manufactured during a period of time. Here is how to find the cost per unit: Cost per unit = (Total fixed costs + Total variable costs) / Total units produced.