To calculate the marginal cost, it is necessary to divide the change in the total cost by the change in the number of units. Besides, it can be important to calculate the average price per unit.