← Back to blog

Contribution Margin Analysis: Formulas, Examples, Uses

November 11, 2026
Contribution Margin Analysis: Formulas, Examples, Uses

Contribution margin analysis shows how much of each sales dollar is left after variable costs, so you can see what is available to pay fixed costs and then become profit. You calculate it by subtracting variable costs from revenue, as a total, per unit, or as a percentage of sales. You then use the result to price, set break-even targets, and decide which products or services deserve your limited time and capacity.

This guide covers the formulas, two worked examples with real arithmetic, the difference between contribution margin and gross margin, and the mistakes that most often distort the numbers.

Amcfo
amcfo.com
Turn Margin Insights Into Decisions
AmCFO provides financial analysis, accurate reporting, and strategic guidance to help businesses understand profitability and make confident decisions.
Visit

TL;DR

  • Contribution margin = revenue minus variable costs. Divide by revenue to get the contribution margin ratio.
  • Fixed costs stay out of the formula. The margin is what is left to cover them and then produce profit.
  • Gross margin subtracts cost of goods sold. Contribution margin subtracts variable costs, including some that sit outside COGS.
  • A "good" ratio depends on your industry and your fixed cost load, so compare against your own break-even point first.
  • The analysis is only as good as your cost classification: sort every expense as fixed or variable before you trust the output.

Table of Contents

What contribution margin analysis tells you

Contribution margin is sales revenue minus variable costs. OpenStax's managerial accounting text describes it as the amount remaining to cover fixed costs and, once those are covered, to contribute to profit. Managers can look at it per unit, as a ratio, or in total across products, goods, or services.

That framing is what makes it useful. A normal income statement lumps costs by function. Contribution margin regroups them by behavior: what rises and falls with sales, and what you pay regardless. Once you see costs that way, several questions get easier:

  • How many sales do we need to break even?
  • Can we afford a discount, and how much extra volume would it need to pay for itself?
  • Which product or service line carries the business, and which one only looks busy?
  • How should we structure sales commissions?

Harvard Business Review lists these same uses: evaluating whether to add or drop a product line, pricing a product or service, and structuring commissions. Investopedia adds that you can run the calculation at several levels: the whole company, a division, a facility, a channel, a product line, or a single product.

The contribution margin formulas

There are three versions, and they all come from the same idea.

MeasureFormulaWhat it answers
Total contribution marginTotal revenue − total variable costsHow much did the business have for fixed costs and profit?
Contribution margin per unitSelling price per unit − variable cost per unitWhat does one more sale add?
Contribution margin ratioContribution margin ÷ revenueWhat share of each sales dollar is left after variable costs?

These definitions follow OpenStax, which also notes the ratio can be computed on a unit basis: unit contribution margin divided by selling price per unit.

Here is how to read the ratio. In OpenStax's explanation, an 80% ratio means $0.80 of every sales dollar is available for fixed costs and profit. The other $0.20 is consumed by variable costs.

Which costs count as variable

Variable costs move with activity. Typical ones are raw materials, packaging, shipping, payment processing fees, sales commissions, and hourly production labor. Fixed costs do not move with volume in the short run: rent, salaried staff, insurance, software subscriptions, and equipment you already own.

Investopedia's example makes the line clear. A $10,000 manufacturing machine is a fixed cost, so it stays out of the contribution margin calculation, while materials, electricity, and production labor are variable and go in.

Some costs are mixed. A utility bill with a base charge plus usage, or a salesperson paid a salary plus commission, has both parts. Split them: the base part is fixed, the usage-based part is variable.

Examples grouped by variable fixed and mixed costs

Worked example 1: one product, simple numbers

The textbook cases show the mechanics. OpenStax's shirt example uses a $15 selling price and $10 variable cost, which gives a $5 unit contribution margin. Investopedia's pen example has a $2.00 price and $0.60 variable cost per pen, leaving $1.40 per unit. And in Investopedia's widget example, $10,000 of revenue less $6,000 of variable costs produces a 40% ratio.

For a feel of how this plays out in a small business, take a made-up print shop that sells custom posters.

  • Selling price: $40
  • Variable cost per poster (paper, ink, packaging, shipping, card fees): $22
  • Contribution margin per unit: $40 − $22 = $18
  • Contribution margin ratio: $18 ÷ $40 = 45%

Suppose fixed costs are $15,000 a month (rent, salaries, software, insurance). Break-even in units is fixed costs divided by unit contribution margin: $15,000 ÷ $18 = 833.3, so the shop needs 834 posters a month before it earns a dollar of profit. Every poster after that adds $18.

The same shop can solve in dollars: $15,000 ÷ 0.45 = about $33,333 of monthly sales to break even. For a fuller walkthrough with accounting data, see our guide to break-even analysis using QuickBooks data.

Worked example 2: a product mix with a constraint

Most businesses sell more than one thing, and this is where contribution margin analysis earns its keep. Add a second product to the print shop: a large-format banner.

PosterBanner
Price$40$120
Variable cost$22$84
Unit contribution margin$18$36
Contribution margin ratio45%30%
Units sold per month300150
Revenue$12,000$18,000
Total contribution margin$5,400$5,400

Combined revenue is $30,000 and variable costs are $19,200 ($6,600 plus $12,600), so total contribution margin is $10,800. The blended ratio is $10,800 ÷ $30,000 = 36%. With $15,000 in fixed costs, the shop loses $4,200 that month.

The blended ratio also gives the break-even revenue for this mix: $15,000 ÷ 0.36 = about $41,667 in monthly sales, assuming the 60/40 revenue split stays the same. If the mix shifts toward banners, the blended ratio falls and break-even moves up. If it shifts toward posters, it moves down. That is the sales mix effect, and a profit and loss statement alone will not show it.

Worked example 2: a product mix with a constraint

Rank by the scarce resource, not by margin alone

The banner earns $36 a unit against $18 for the poster, so it looks like the winner. But if the wide-format printer is the bottleneck, the question changes. Say a poster uses one printer hour and a banner uses three:

  • Poster: $18 ÷ 1 hour = $18 per printer hour
  • Banner: $36 ÷ 3 hours = $12 per printer hour

When capacity is the limit, the poster is the better use of each hour. OpenStax's guidance on constrained resources says to rank products by contribution margin per unit of the scarce resource, such as machine hours, rather than by unit margin. The same text notes that this figure helps estimate what it would be worth to relax the bottleneck, for example by adding a shift or a second machine.

The same logic applies when the scarce resource is people. In a services or software business, the question becomes how many productive hours or how many ramped salespeople you have, which is the thinking behind sales capacity planning around timing rather than raw headcount.

Contribution margin vs. gross margin

The two are often confused because both subtract costs from revenue and both can be shown as a percentage. The difference is which costs they subtract.

  • Gross margin is revenue minus cost of goods sold (COGS).
  • Contribution margin is revenue minus variable costs.

Investopedia's comparison shows gross margin with $2 million of revenue and $1.5 million of COGS: a $500,000 gross margin, or 25%.

Because COGS is an accounting category and variable cost is a behavioral one, the two lists do not match exactly. COGS can include fixed production overhead such as factory rent, which contribution margin leaves out. Contribution margin includes variable costs that sit below the COGS line, such as sales commissions, shipping to customers, and card processing fees, which gross margin ignores.

Gross marginContribution margin
SubtractsCOGSVariable costs
Organized byFunction (production vs. other)Behavior (varies with volume or not)
Best forExternal reporting, comparing to peersPricing, break-even, product mix, internal decisions
Treats fixed production overheadIncluded in COGSExcluded

Use gross margin to see how efficiently you produce what you sell. Use contribution margin to decide what to sell, at what price, and how much you must sell. Our gross margin vs. net margin guide covers the other end of the income statement, and business profitability analysis shows how the margins fit together.

Is a 30% contribution margin good?

It depends on what your fixed costs are and what is normal in your industry. A 30% ratio leaves 30 cents of each sales dollar for fixed costs and profit. For a business with light fixed costs, such as a reseller or a small contractor, that can be plenty. For a business with heavy fixed costs, such as a software company with a large engineering team, it would usually be too thin, since those businesses typically operate with much higher ratios because each extra sale costs little to deliver.

A more reliable test than any universal benchmark:

  1. Divide your fixed costs by your contribution margin ratio to get break-even revenue.
  2. Compare that to your current and realistic revenue.
  3. Track the ratio over time and by product line. A ratio that is slipping, even from a high level, signals rising material costs, discounting, or a shifting mix.

The poster and banner example shows why. A 30% banner is not bad on its face, but at 30% it needs a lot more revenue to cover the same fixed costs than a 45% poster does.

How to run a contribution margin analysis, step by step

  1. Pull a clean income statement. Use a period with complete, reconciled books. Errors in categorization show up directly in your ratio.
  2. Sort every expense as fixed, variable, or mixed. Harvard Business Review points out that this means recategorizing income statement costs, which can be hard when cost behavior is unclear. Split mixed costs into their fixed and variable parts.
  3. Calculate by product, service, or channel. Assign variable costs to the line that causes them. Do not spread them evenly.
  4. Compute unit margin, ratio, and total. Keep all three. The ratio compares lines, the unit figure supports pricing, and the total shows who pays the bills.
  5. Compare to fixed costs. AccountingTools frames the analysis as comparing the margin left after variable expenses with fixed costs, to judge whether pricing and cost structure can produce a profit. Its Iverson Drum Company example has $1,000,000 in sales and $400,000 in variable costs, a 60% margin, yet $660,000 of fixed costs still produce a $60,000 loss. A healthy ratio does not guarantee profit.
  6. Test scenarios. Change price, volume, or mix, and see how break-even moves.
  7. Repeat monthly. Costs and mix drift, so the analysis is a habit more than a one-off report.

Common mistakes that skew the numbers

  • Treating all payroll as fixed. Hourly production or fulfillment labor and commissions behave like variable costs. Salaried managers do not.
  • Leaving out variable selling costs. Shipping, merchant fees, and marketplace commissions can take a bigger bite than materials.
  • Using stale costs. Supplier price changes can erode a ratio within a quarter.
  • Allocating fixed costs to products. That belongs in a full-cost view. Contribution margin is useful precisely because it leaves allocations out.
  • Ignoring capacity. The highest-ratio product is not always the most profitable use of limited hours, as the printer example shows.
  • Dropping a line because its gross margin looks weak. If it still has a positive contribution margin, removing it can leave the same fixed costs spread over less income. Check what the line contributes before cutting it.

When the same method is applied across channels or segments, the findings feed into broader portfolio choices, a theme explored in cross-channel growth strategies. For deeper margin work, our profit analysis methods article goes further, and budget variance analysis helps you check actuals against plan.

Our perspective

In our work with business owners, the most common obstacle to contribution margin analysis is not the formula. It is the books underneath it. If expenses are miscategorized, payroll is lumped together, or months are not reconciled, the ratio looks precise and misleads.

We start with the foundation: clean, consistent bookkeeping and a chart of accounts that separates costs the way they behave. Once that is in place, contribution margin by product, service line, or customer type becomes a monthly report instead of a special project.

That is also where fractional CFO oversight pays off. The number is only the first step. Someone has to ask what it means for pricing, hiring, and which work to grow. Our modular approach lets you bring in that guidance without the cost of a full-time executive, and we serve both for-profit and non-profit organizations.

If you have never split your costs into fixed and variable, do not wait for a perfect model. Start with your top three products or services, and refine as the data improves.

Angelica

Put the analysis to work with AMCFO

If your books are not yet clean enough to trust a margin report, our team handles QuickBooks setup and cleanup, ongoing bookkeeping, and payroll support. Our fractional CFO services cover budgeting, forecasting, financial analysis, and efficiency and cost analysis, so the numbers turn into decisions. See our fractional CFO services or our accounting and bookkeeping services.

Amcfo

Want to see how the pieces fit together? Our guide to management accounts and financial modeling shows what a regular reporting rhythm looks like.

FAQ

What is the formula for contribution margin ratio?

Contribution margin ratio equals contribution margin divided by revenue, or (revenue − variable costs) ÷ revenue. On a per-unit basis, divide unit contribution margin by selling price. Multiply by 100 to express it as a percentage.

What is the formula for contribution per unit?

Subtract the variable cost per unit from the selling price per unit. If a product sells for $40 and costs $22 in variable costs, each unit contributes $18 toward fixed costs and profit.

Can contribution margin be negative?

Yes. If variable costs exceed revenue, each sale loses money before fixed costs are even considered. That usually points to underpricing, rising input costs, or heavy discounting, and it is a signal to reprice or rethink the product.

Is contribution margin the same as profit?

No. Contribution margin is before fixed costs. Profit is what remains after fixed costs are also subtracted. A business can have a strong contribution margin and still lose money if its fixed costs are higher than the total contribution.

Sources