Finance tools
How to calculate marginal cost
Use this free marginal cost calculator with the standard marginal cost formula: MC = change in total cost ÷ change in quantity (ΔTC ÷ ΔQ). Pick Two levels, Direct Δ, or a Cost table for live results, a step-by-step breakdown, optional average metrics from fixed cost, and CSV or PDF export. Not the same as profit margin or markup. Illustrative planning math only—not financial or tax advice.
What is marginal cost?
Marginal cost is the additional cost of producing one more unit (or one more step of output). In plain English: if you make a little more, how much did total cost go up per extra unit?
It answers an incremental question at a specific production step—not “what did we spend in total?” (total cost) and not “what did we spend on average per unit?” (average cost).
Use the same cost definition at both production levels—full total cost (TC), not variable cost alone unless the problem defines TC that way. This calculator labels inputs as total cost at each quantity so ΔTC matches textbook and business problems.
In the short run, teams often compare marginal cost to price and to marginal revenue when deciding whether to expand output. Fixed costs may not change that incremental decision if they are already sunk for the “one more unit” choice.
Marginal cost formula
MC = ΔTC ÷ ΔQ
Marginal cost = (Change in total cost) ÷ (Change in quantity)Worked examples (try the matching presets in the calculator):
- Two output levels: TC $620 → $800, Q 40 → 50 → ΔTC = $180, ΔQ = 10 → MC = $18 per unit
- Direct change: ΔTC = $500, ΔQ = 2,000 → MC = $0.25 per unit
- Coffee shop step: TC $60,000 → $64,000, Q 20,000 → 21,000 cups → MC = $4 per cup
Each row is one production step—marginal cost per unit for that interval, not average cost over all output.
The marginal cost formula is the same in every mode; only the inputs change:
- Two levels — enter TC and Q at two output points (default for homework “40 to 50 units” problems)
- Direct Δ — enter ΔTC and ΔQ when the problem gives changes only
- Cost table — repeat the formula between each consecutive row with rising quantity
How to calculate marginal cost from two output levels
Find the change in total cost
Subtract earlier total cost from later total cost (ΔTC = TC₂ − TC₁). If you already have the change, use Direct Δ mode and enter ΔTC only.
Find the change in quantity
Subtract earlier output from later output (ΔQ = Q₂ − Q₁). For several quantity–total cost pairs, use Cost table mode with strictly increasing quantity.
Divide to get marginal cost
Apply the marginal cost formula: MC = ΔTC ÷ ΔQ. The result is marginal cost per unit—the extra cost for each additional unit over that step. Results update live; copy or export CSV/PDF if you need a record.
Already computed ΔTC and ΔQ? Switch to Direct Δ mode and enter the changes only — same formula, fewer fields.
Direct change mode (ΔTC and ΔQ only)
Use Direct Δ when a problem (or your spreadsheet) already gives change in total cost and change in quantity — for example ΔTC = $500 and ΔQ = 2,000 units → MC = $0.25 per unit.
- Choose Direct Δ when the prompt says “cost increased by $X when output rose by Y units”
- Choose Two levels when you have TC and Q at two output levels instead of the changes
- ΔQ cannot be zero — division by zero is undefined
Negative ΔTC with positive ΔQ is unusual; the calculator still computes MC and shows a short warning to recheck inputs.
How to calculate marginal cost from a table
When homework gives several quantity and total cost pairs, marginal cost between two rows is (TC₂ − TC₁) ÷ (Q₂ − Q₁) for each consecutive pair with strictly rising quantity. Sort rows by Q if the problem lists them out of order.
Example table:
- Q 10 / TC $400 → Q 20 / TC $650 → interval MC = ($650−$400)÷10 = $25
- Q 20 / TC $650 → Q 30 / TC $960 → interval MC = ($960−$650)÷10 = $31
Open Cost table mode, enter at least two non-empty rows in increasing order, and read MC for each interval in the breakdown. The headline result uses the latest interval (highest quantity row).
Marginal cost vs average cost vs total cost
Total cost (TC) is everything spent to produce all units at a given output level. Average cost (AC) = TC ÷ Q (cost per unit on average). Marginal cost (MC) = ΔTC ÷ ΔQ—the cost of the next increment only.
- Total cost — “How much did we spend in total at this output level?”
- Average cost — “What did each unit cost on average?” (TC ÷ Q—not MC)
- Marginal cost — “What did the last step of output cost per extra unit?”
- MC < AC — more output tends to pull average cost down
- MC > AC — more output tends to pull average cost up
- MC = AC — average cost is at a minimum in smooth U-shaped cost models
To add AC, AFC, and AVC from a fixed-cost input, use Optional fixed cost (AC, AFC, and AVC) below—those metrics support MC but do not replace it.
Optional fixed cost (AC, AFC, and AVC)
In Two levels or Cost table mode, open Average cost breakdown under Advanced and enter fixed cost (FC) if the problem separates fixed from variable spending.
At the later output level (Two levels) or last table row (Cost table), the calculator adds:
- AC = total cost ÷ quantity
- AFC = fixed cost ÷ quantity
- AVC = (total cost − fixed cost) ÷ quantity
Fixed cost must not exceed total cost at that row. These metrics complement MC; they do not replace ΔTC ÷ ΔQ.
Marginal cost and pricing
In the short run, producing another unit often makes sense when price (or marginal revenue) is above marginal cost—fixed costs may already be sunk for that incremental choice.
Rule of thumb: if P > MC, the next unit adds more revenue than variable cost on the margin. If P < MC, the next unit usually cuts profit unless you are pursuing capacity, market share, or other non-financial goals.
In many textbook models, profit-maximizing output is where MR = MC (subject to capacity, regulation, and market power). This page calculates MC only; marginal revenue is ΔTR ÷ ΔQ from your own revenue data.
For fixed vs variable framing and break-even units, use our break-even calculator. For how demand responds to price, see the price elasticity calculator.
When marginal cost rises
Marginal cost often falls at first when spreading fixed costs or learning effects, then rises when capacity is strained — overtime, congestion, scarce inputs, or diminishing returns (each extra unit requires disproportionately more variable input).
- Economies of scale — MC can fall over a range of output
- Capacity limits — MC often turns upward as output approaches plant limits
- Input prices — higher wage or material rates raise MC on the margin
- Congestion — bottlenecks can raise the cost of the next unit even if average cost still looks acceptable
Enter your own TC and Q points; the calculator reports MC for the interval you specify — it does not plot U-shaped cost curves.
Marginal cost in Excel and Google Sheets
Two production levels — put earlier quantity in A1, later quantity in A2, earlier total cost in B1, later total cost in B2:
=(B2-B1)/(A2-A1)
Table of rows — quantities in column A, total costs in column B; MC between row 2 and row 3:
=(B3-B2)/(A3-A2)
Fill down that pattern for each interval, or use Cost table mode here and export CSV/PDF. Google Sheets uses the same cell references and operators.
Marginal cost from a cost function (calculus)
In calculus-based courses, marginal cost from a total cost function TC(q) is the derivative MC(q) = dTC/dq — for example if TC(q) = 100 + 5q + 0.1q², then MC(q) = 5 + 0.2q.
At a specific step from q₁ to q₂, the discrete formula ΔTC ÷ ΔQ approximates average marginal cost over that interval — what this calculator computes for two levels, direct change, or table rows.
This tool does not accept polynomial cost functions or plot MC vs AC curves. Use your course materials for derivative practice; use this page for table and two-point homework.
More free tools
Discover more calculators for time tracking, payroll, and HR.
Frequently asked questions about this marginal cost calculator
What is the formula for calculating marginal cost?
The marginal cost formula is: change in total cost ÷ change in quantity (MC = ΔTC ÷ ΔQ). That gives marginal cost per unit for the production step you measure.
Enter two output levels, a quantity–total cost table, or the changes directly—this calculator applies the formula live with a step-by-step breakdown.
How do you calculate marginal cost?
Divide the change in total cost by the change in quantity. That ratio is marginal cost per unit over that step.
Find how much total cost rose when output rose, then divide: MC = ΔTC ÷ ΔQ. Two levels mode uses TC₁, TC₂, Q₁, and Q₂. Direct Δ mode uses the changes only. Cost table mode repeats the same division for each consecutive row pair.
How do you calculate marginal cost from a table?
For each consecutive pair of rows with rising quantity, use (TC₂ − TC₁) ÷ (Q₂ − Q₁). Example: quantity 10→20 and total cost $400→$650 gives MC = $25 per unit for that interval.
Use Cost table mode to enter pairs and see MC for every interval in the breakdown.
What is marginal cost in plain English?
Marginal cost is the extra cost to produce a little more output—usually in dollars (or your currency) per additional unit over one production step.
Example: if total cost rises by $180 when output increases from 40 to 50 units, marginal cost is $180 ÷ 10 = $18 per unit for that step.
Is marginal cost the same as average cost or total cost?
No. Total cost is all spending at an output level. Average cost = TC ÷ Q (cost per unit on average). Marginal cost = ΔTC ÷ ΔQ (cost of the next increment only).
You can have high total cost but low marginal cost on the next unit if the step is cheap — that is why pricing and production decisions often focus on MC, not AC alone.
Is marginal cost the same as marginal costing?
No. Marginal costing (marginal cost accounting) is a costing method that treats fixed costs differently for internal reports. Marginal cost here is the economics formula ΔTC ÷ ΔQ for an output step.
This calculator computes MC from your total cost and quantity inputs — not a full accounting allocation system.
How is marginal cost different from profit margin?
Profit margin is profit as a percentage of revenue (pricing and accounting). Marginal cost is the extra production cost per unit when output increases (ΔTC ÷ ΔQ).
Use margin tools for “how much we keep from sales”; use marginal cost when deciding whether one more unit is worth producing. See our profit margin calculator for margin %—not MC.
What is the difference between marginal cost and marginal revenue?
Marginal revenue (MR) is the change in total revenue from selling one more unit (ΔTR ÷ ΔQ). Marginal cost (MC) is the change in total cost from producing one more unit (ΔTC ÷ ΔQ).
In many models, profit-maximizing output is where MR = MC. This tool calculates MC only; compute MR separately from your revenue data.
Can you calculate marginal cost from total cost alone?
Not with one number. Total cost at a single output level tells you TC and average cost (TC ÷ Q), not marginal cost.
You need two points (or a table) so you can see how total cost changed when quantity changed: MC = ΔTC ÷ ΔQ. Use Two levels, Cost table, or Direct Δ mode here.
Can marginal cost be negative?
Rare in standard problems — it would mean total cost fell while quantity rose over the same step (for example a one-time rebate coded as lower TC).
If you see negative MC, recheck that both points use the same cost definition and that later quantity is truly higher.
Why does marginal cost eventually rise?
After an initial range where scale or learning can push MC down, diminishing returns and capacity limits often make each extra unit more expensive — overtime, congestion, or scarce inputs.
That is why MC curves are often drawn U-shaped in textbooks; this tool reports MC for the interval you enter rather than fitting a curve.
How do you calculate marginal cost in Excel?
Two production levels: put quantities in column A and total costs in column B, then =(B2-B1)/(A2-A1).
Table interval (rows 2 and 3): =(B3-B2)/(A3-A2). Fill down for each interval. The same formulas work in Google Sheets—or use Cost table mode here and export CSV/PDF.
Does this calculator use calculus or a cost function?
No. Courses that define TC(q) and use MC = dTC/dq need a derivative step. This tool uses the discrete formula ΔTC ÷ ΔQ for two levels, direct changes, or table rows — the usual method for business and introductory economics problems.
Is this marginal cost calculator free?
Yes. It is free to use with live calculation, example presets (Two levels, Direct Δ, Cost table), and optional CSV/PDF export. No account required.
Is this financial or tax advice?
No. Educational and planning math only. Consult qualified professionals for accounting, tax, or pricing decisions.