Contribution Margin: Formula, How To Calculate, Example

Jul 20, 2026

Try it now, capture a real invoice

Your file is processed for the demo only and never stored.

Contribution margin is the money left from a sale after you subtract the variable costs of making that sale. It tells you how much each unit or dollar of revenue contributes toward covering fixed costs and, once those are covered, toward profit. The formula is simple: contribution margin equals sales revenue minus variable costs. You can express it in total dollars, per unit, or as a percentage of revenue called the contribution margin ratio.

Controllers and finance teams lean on contribution margin because it separates the costs that move with volume from the costs that do not. That split is what makes break-even math, pricing decisions, and product-mix analysis work. Below is the formula, a worked example, the ratio, and how contribution margin differs from gross margin.

Contribution margin formula

There are three related versions of the formula, and finance teams use all three depending on the question.

MetricFormulaWhat it answers
Total contribution marginTotal revenue minus total variable costsDollars available to cover fixed costs and profit
Contribution margin per unitPrice per unit minus variable cost per unitWhat each additional unit sold contributes
Contribution margin ratioContribution margin divided by revenueThe share of every sales dollar that contributes

Variable costs are the ones that rise and fall with output: direct materials, direct labor tied to production, sales commissions, shipping, payment processing fees, and per-unit packaging. Fixed costs, such as rent, salaried staff, insurance, and software, stay flat across a normal range of volume and are deliberately left out of the contribution margin calculation.

How to calculate contribution margin: a worked example

Say you sell a product for $50. The variable cost to make and deliver each one is $30: $18 in materials, $7 in direct labor, $3 in shipping, and $2 in payment fees. Your monthly fixed costs are $40,000.

  • Contribution margin per unit = $50 minus $30 = $20.
  • Contribution margin ratio = $20 divided by $50 = 40 percent.
  • If you sell 3,000 units, total contribution margin = 3,000 times $20 = $60,000.
  • Operating profit = $60,000 total contribution margin minus $40,000 fixed costs = $20,000.

The per-unit figure also gives you the break-even point directly: $40,000 in fixed costs divided by $20 per unit means you cover your fixed costs at 2,000 units. Everything above that sells at a $20 contribution to profit. For the full method, see our guide to break-even analysis.

What is contribution margin?

Contribution margin is revenue minus variable costs, showing how much of each sale is available to cover fixed costs and generate profit. It is not the same as profit, because fixed costs have not been subtracted yet. Think of it as the pool of money each sale contributes before the bills that do not change with volume are paid. Once total contribution margin exceeds total fixed costs, the business is profitable.

How do you calculate contribution margin?

Subtract variable costs from revenue. Per unit, take the selling price and subtract the variable cost of that unit. In total, take all sales revenue and subtract all variable costs for the period. To get the ratio, divide the contribution margin by revenue and express it as a percentage. Accuracy depends on classifying costs correctly, so the hardest part is deciding which costs truly vary with volume and which are fixed.

What is a good contribution margin?

A good contribution margin ratio depends heavily on the industry. Software and digital products often run 70 to 90 percent because variable costs per sale are tiny, while retail and manufacturing may sit at 20 to 40 percent because materials and labor eat most of the price. The useful test is not an absolute number but whether total contribution margin comfortably clears your fixed costs with room for profit and reinvestment. A rising ratio over time signals better pricing or cost control; a falling one is an early warning.

Contribution margin vs gross margin

These two get confused because both start with revenue, but they subtract different costs.

Contribution marginGross margin
SubtractsAll variable costsCost of goods sold
Includes fixed production costs?NoYes, if they sit in COGS
Includes variable selling costs?YesNo
Best forBreak-even, pricing, product mixReporting profitability of goods sold

Gross margin subtracts cost of goods sold, which can include fixed factory overhead, and it ignores variable costs outside of production such as sales commissions and shipping. Contribution margin subtracts every variable cost regardless of where it sits on the income statement and excludes all fixed costs. That is why contribution margin is a management tool for decisions, while gross margin is a reporting figure on the income statement.

Why contribution margin matters for decisions

Once you know the contribution margin of each product, you can rank your line by how much each one contributes per unit or per hour of a constrained resource, not by revenue. A high-revenue product with a thin margin can contribute less than a smaller one with a fat margin. The same logic drives pricing: a discount that looks small against the price can wipe out a large share of the contribution margin, so a 10 percent price cut on a 40 percent margin product removes a quarter of what that sale contributes.

It also sharpens spend decisions. Because variable costs feed directly into the margin, controlling them raises the contribution on every future unit. Tightening the cost of the materials you order on each purchase order, renegotiating shipping, or trimming payment fees all flow straight to the bottom of the margin. Reviewing supplier invoices for the true landed cost per unit is where many teams find the variable-cost creep that quietly erodes contribution.

Is contribution margin the same as profit?

No. Contribution margin is what remains after variable costs but before fixed costs, while profit is what remains after both. A product can have a healthy contribution margin and the business can still lose money if fixed costs are too high for the volume sold. Profit appears only once total contribution margin exceeds total fixed costs. That is the whole point of separating the two: contribution margin shows the earning power of each sale, and comparing it to fixed costs tells you whether the business as a whole makes money.

The bottom line

Contribution margin is one of the most useful numbers a finance team can track because it isolates the profit each sale generates before fixed costs. Calculate it per unit for pricing and break-even, as a ratio to compare products and periods, and in total to test whether volume covers your fixed base. Keep variable costs classified cleanly and watch the ratio trend, and contribution margin becomes an early read on both pricing health and cost discipline.

Stop keying invoices by hand

AutoPayables captures vendor, amounts and dates from any invoice with AI, routes approvals, and syncs to QuickBooks, Xero, NetSuite or Sage Intacct.

See the product

From the same family of tools