Marginal cost is the extra cost of producing one more unit of a product. The formula is: Marginal Cost = Change in Total Cost ÷ Change in Quantity. For example, if producing 100 units costs $1,000 and 101 units cost $1,010, the marginal cost is $10. It differs from average cost, which is the total cost divided by total units produced.