The marginal cost of production measures the change in total cost of a good that arises from producing one additional unit of that good. The marginal cost is calculated by dividing the change in the total cost by the change in quantity. Using calculus, the marginal cost is calculated by taking the first derivative of the total cost function with respect to the quantity: MC = dTC/dQ.