Marginal Cost Formula: How to Calculate It (With Examples)
Marginal cost is the change in total cost divided by the change in quantity. Formula, worked bakery and service examples, and how it drives pricing.

Marginal cost is the cost of producing one more unit: the change in total cost divided by the change in quantity, or
MC = ΔTC / ΔQ. Take the total cost at two output levels, subtract, and divide by the extra units. The answer is what each additional unit costs you to make.
That is the marginal cost formula, applied once. The rest of this guide is about the formula itself, the fixed-versus-variable trap, and how to use the number once you have it.
What the marginal cost formula measures
Marginal cost tracks how total cost moves when output moves. You need two data points: the total cost at the starting quantity and the total cost at the higher quantity. Subtract both, divide by the change in units, and you get the cost per extra unit in that range. This is the standard definition used in microeconomics and corporate finance, and the Corporate Finance Institute states it the same way: change in total production cost over change in quantity.
Work it in four steps. Find the total cost at the starting quantity, find it again at the higher quantity, subtract to get the change in total cost, then divide by the change in quantity. A coffee shop shows the moves cleanly: it pays a known variable cost to produce a batch of lattes and a higher cost to produce a slightly larger batch.
Each additional latte in that range costs the shop the highlighted amount to make.
Fixed costs do not belong in marginal cost
This is where most calculations go wrong. Marginal cost only measures costs that change with production. Fixed costs stay the same regardless of output, so they never enter the calculation.
Fixed (excluded) → rent, contract salaries, equipment leases, insurance Variable (included) → raw materials, packaging, per-unit labor, production utilities
If you compute marginal cost using total cost with fixed costs baked in, the answer is wrong for any decision about producing more. Rent does not rise because you bake one extra loaf. Only flour, yeast, and oven time do. The correct move is to compute marginal cost from the change in variable cost, not the change in total cost. The exception is when fixed costs are truly flat across the quantity range you are considering, in which case the change in total cost and the change in variable cost are equal and both approaches give the same answer.
Marginal cost for a service business
Services have a marginal cost too, built from your time and your tools rather than raw materials. A freelance designer charges by the logo and carries a fixed monthly cost for software and equipment. Each logo takes a set number of hours valued at an opportunity-cost rate, which sets the variable cost per logo.
The fixed cost drops out. Going from the current workload to one more logo adds only that logo's worth of time, so the marginal cost is the variable cost of a single logo. Compare it to the price the designer charges to see the contribution from each extra logo, which holds until their time runs out.
Marginal cost versus price: the profit decision
Marginal cost answers what one more unit costs you. Price answers what you get for selling one more. Put together, they tell you whether to produce more.
Price > MC → each extra unit adds profit, produce more Price = MC → the theoretical profit-maximising output Price < MC → each extra unit loses money, produce less
This is the core of microeconomic pricing theory. For the other half of the picture, the revenue side, see our guide to calculating marginal revenue. Pairing marginal cost with marginal revenue is how economists define the profit-maximising quantity.
Worked example: two production batches
Marginal cost rarely holds steady as volume grows. A T-shirt printer's variable cost climbs at three output levels, and the marginal cost between each pair of levels tells the real story.
Compute it for each step. Take the change in variable cost between adjacent levels and divide by the extra shirts.
The marginal cost rises across the two steps, likely because of overtime labor or premium-priced materials at higher volumes. That is classic increasing marginal cost, and it signals that scaling further carries a real price tag.
How marginal cost relates to other metrics
Marginal cost is one node in a small network of operating-economics metrics, and confusing it with its neighbours leads to bad pricing.
- Cost of goods sold (COGS) is the total variable and direct cost for units actually sold. COGS divided by units gives an average cost, which is different from marginal cost.
- Gross profit is revenue minus COGS. It uses price and average cost, not marginal cost.
- Opportunity cost is the value of what you give up by choosing one production path over another, often the missing piece when marginal cost looks low but the decision still is not worth it.
- Consumer surplus and marginal revenue close the loop on the demand side.
Average cost and marginal cost are not the same. A bakery carrying a fixed cost and a per-loaf variable cost has a much higher average cost than marginal cost at low volume, because the fixed cost spreads across every loaf in the average but never touches the next-loaf calculation.
Confusing the two leads to pricing that ignores the real incremental economics.
Common mistakes
A handful of errors account for most wrong marginal-cost numbers.
- Including fixed costs in the change in total cost. Rent does not scale with production.
- Using average cost as a stand-in for marginal cost. Different numbers, different uses.
- Assuming marginal cost is constant. It usually falls with early scale, then rises as you hit capacity limits.
- Ignoring step functions. If producing one more unit requires hiring a whole extra worker, the marginal cost of that unit is large, not small.
Quick reference
Marginal cost is built from variable costs alone, so ignore rent and salaries when the fixed costs are flat across your range. Compare the result to price to decide whether to produce more, and pair it with marginal revenue to find the profit-maximising quantity. For the revenue side of the same decision, see how to calculate marginal revenue. For how this ties to headline financials, read cost of goods sold and gross profit.
Common questions
Fixed costs stay flat regardless of output, such as rent, salaries, and insurance. Variable costs rise with production, such as materials, per-unit labor, and packaging. Only variable costs drive marginal cost.
If you sell a unit for less than its marginal cost, you lose money on that unit. Marginal cost is the floor below which selling more actively destroys profit.
Take the change in total cost, including materials, your time valued at an hourly rate, and software usage, and divide it by the change in the number of services delivered.
Yes. At small volumes, economies of scale can lower per-unit variable cost through bulk discounts and the learning curve. It typically rises again at high volumes as capacity limits bite.


