Skip to main content
Business Finance

Contribution Margin: Formula, Ratio and Per-Unit Examples

Contribution margin explained: per-unit and total formulas, the contribution margin ratio, and worked examples for product mix, discounts and special orders.

By Invoice Creator Editorial Team 11 min read

Quick answer: Contribution margin is sales minus variable costs: the amount each sale contributes toward fixed costs and then profit. Per unit, contribution margin = price - variable cost per unit. The contribution margin ratio is that figure divided by price. A $32 product with $12.80 of variable costs has a $19.20 contribution margin and a 60% ratio.

Contribution margin is one of the most practical numbers a small business can know, because it answers everyday questions: which product should I push, can I afford this discount, and is that wholesale order worth taking? This guide covers the per-unit, total and ratio formulas, a full worked example with three products, and how to use the figures for real decisions. If you sell from invoices, the free invoice generator keeps each sale itemised, which makes the calculation much easier.

Contribution margin formulas

MeasureFormulaUse it for
Contribution margin per unitSelling price - variable cost per unitPricing one product or job
Total contribution marginTotal sales - total variable costsMonthly reporting and profit planning
Contribution margin ratioContribution margin / sales × 100Comparing products at different prices; break-even in dollars
Contribution per constrained hourContribution per unit / hours per unitChoosing what to make when time or machine capacity is limited

Everything depends on separating variable costs from fixed costs correctly. Variable costs move with each sale: materials, packaging, shipping supplies, card and platform fees, sales commissions and piece-rate labour. Fixed costs stay the same within a normal range of activity: rent, salaries, insurance and software. Our guide to fixed vs variable costs covers the grey areas such as mixed and step costs.

Contribution margin vs gross margin and markup

These terms get mixed up constantly, and the differences matter.

  • Gross margin subtracts cost of goods sold, which may include fixed production costs and usually excludes selling costs like card fees. It appears on the standard profit and loss statement. See how to calculate profit margin.
  • Contribution margin subtracts only variable costs, from anywhere in the business. It is a management figure for decisions, not a reporting requirement.
  • Markup is profit as a percentage of cost rather than price. Our markup vs margin guide has a conversion chart.

How to calculate contribution margin step by step

  1. List every product or service you sell, with its current selling price.
  2. List the variable costs per unit: materials, packaging, per-order shipping supplies, payment processing (as a percentage of price), commissions and any per-unit labour.
  3. Subtract variable costs from price to get contribution margin per unit.
  4. Divide by price to get the contribution margin ratio.
  5. Multiply per-unit contribution by units sold to get each product's total contribution.
  6. Add the totals and subtract fixed costs to get operating profit for the period.
  7. Rank products by contribution per unit, by ratio and, if time is your constraint, by contribution per hour.

Worked example: a candle maker with three products

Wick and Ember sells candles online. Card and platform fees are 3% of the selling price. Here are the per-unit figures:

Per unitLarge candleSmall candleGift set
Selling price$32.00$14.00$58.00
Wax, jar, wick, fragrance$9.50$4.20$26.10
Packaging$1.40$0.90$2.60
Payment fee (3%)$0.96$0.42$1.74
Shipping supplies$0.94$0.48$1.56
Total variable cost$12.80$6.00$32.00
Contribution margin per unit$19.20$8.00$26.00
Contribution margin ratio60.0%57.1%44.8%

The gift set has the biggest contribution per unit ($26.00) but the lowest ratio (44.8%). The large candle keeps 60 cents of every sales dollar. Which is "best" depends on the question, as the rest of the example shows.

The monthly contribution margin statement

Last month Wick and Ember sold 400 large candles, 900 small candles and 150 gift sets. Fixed costs (workshop rent, website, insurance, the owner's salary) were $12,500.

MonthlyLargeSmallGift setTotal
Sales$12,800$12,600$8,700$34,100
Variable costs$5,120$5,400$4,800$15,320
Contribution margin$7,680$7,200$3,900$18,780
Fixed costs$12,500
Operating profit$6,280

Check: 400 × $32 = $12,800 and 400 × $12.80 = $5,120; 900 × $14 = $12,600 and 900 × $6 = $5,400; 150 × $58 = $8,700 and 150 × $32 = $4,800. Total contribution is $34,100 - $15,320 = $18,780, and after $12,500 of fixed costs, operating profit is $6,280. The blended contribution margin ratio is $18,780 / $34,100 = 55.1%.

Break-even from the ratio

Break-even sales = fixed costs / contribution margin ratio = $12,500 / 0.5507 = about $22,698 a month. Sales last month were $34,100, so the margin of safety is roughly $11,400, or 33% of sales. The SBA's guide to startup costs uses the same approach: fixed costs divided by the contribution margin. Our break-even point guide covers unit-based and multi-product versions.

Contribution format vs traditional income statement

The same month can be presented two ways. A traditional statement groups costs by function: production costs in cost of goods sold, selling and admin costs below. A contribution format statement groups costs by behaviour: variable first, fixed second. Here is Wick and Ember's month both ways. Of the $12,500 fixed costs, $3,000 is workshop rent, which a traditional statement treats as a production cost.

Traditional formatAmountContribution formatAmount
Sales$34,100Sales$34,100
COGS: materials $11,495 + packaging $1,760 + workshop rent $3,000-$16,255Variable costs: materials, packaging, fees, shipping supplies-$15,320
Gross profit$17,845Contribution margin$18,780
Payment fees $1,023 + shipping supplies $1,042 + other fixed costs $9,500-$11,565Fixed costs-$12,500
Operating profit$6,280Operating profit$6,280

The bottom line is identical, but the middle lines tell different stories. Gross margin is $17,845 / $34,100 = 52.3%, while the contribution margin ratio is 55.1%. The gross margin mixes a fixed cost (rent) into cost of goods sold and leaves variable selling costs (fees, shipping supplies) out of it. For "what if" questions about volume, price and discounts, the contribution format is the one to use. For tax returns and external reporting, the traditional format is what lenders and accountants expect. Our guide to gross profit vs net profit covers the traditional layout.

Using contribution margin to make decisions

The real value of contribution margin is in decisions made before the month is over: whether to discount, whether to accept an unusual order, what to make first and whether to keep a product. Each of the four decisions below uses the Wick and Ember figures above, and each ignores fixed costs for one reason: they do not change with the decision.

Decision 1: what happens if you discount?

Discounts come straight out of contribution margin, so they hurt more than the headline percentage suggests. Suppose Wick and Ember runs 15% off large candles:

  • New price: $32.00 × 0.85 = $27.20
  • Payment fee falls to 3% of $27.20 = $0.82
  • Variable cost: $9.50 + $1.40 + $0.82 + $0.94 = $12.66
  • New contribution per unit: $27.20 - $12.66 = $14.54, down from $19.20

To earn the same $7,680 contribution from large candles, the shop must sell $7,680 / $14.54 = 528.2, so 529 units instead of 400. A 15% discount needs about 32% more volume just to stand still. If you do offer discounts on invoices, our guide to showing a discount on an invoice explains how to present them clearly.

Decision 2: should you accept a wholesale order?

A gift shop offers to buy 300 small candles at $9.00 each, a 36% discount on retail. It will pay by bank transfer and collect the stock, so there are no card fees or shipping supplies. Variable cost per candle is $4.20 + $0.90 = $5.10, so contribution is $9.00 - $5.10 = $3.90 per candle, or $1,170 for the order.

If the workshop has spare capacity and fixed costs will not change, that $1,170 is extra profit. Fixed costs are already covered by retail sales, so they should not be allocated to this order for the decision. The invoice would show 300 × $9.00 = $2,700. You can create it in the invoice generator with a single line item and, if the buyer pays a deposit, record it in the amount-paid field to show the balance due.

The caution: if the order uses capacity you would otherwise fill with full-price sales, or if retail customers find out and expect the same price, the true cost is higher.

Decision 3: which product to make when time runs short

Before the holidays, pouring time is the bottleneck: 150 hours available. A large candle takes 0.10 hours, a small one 0.05 hours and a gift set 0.25 hours.

ProductContribution per unitHours per unitContribution per hour
Large candle$19.200.10$192
Small candle$8.000.05$160
Gift set$26.000.25$104

The gift set has the highest contribution per unit but the lowest per hour. When time is the limit, prioritise large candles, then small ones, and make gift sets only for confirmed demand. This is the same logic a freelancer uses when comparing projects by contribution per hour rather than by fee alone.

Decision 4: should you drop a product?

The gift set has the weakest ratio and uses the most time per unit, so the owner wonders whether to drop it. Contribution margin gives a quick answer. Gift sets contributed $3,900 last month. If they are dropped and fixed costs do not change, operating profit falls from $6,280 to $6,280 - $3,900 = $2,380.

Dropping a product with a positive contribution margin only makes sense if one of these is true:

  • The time or space it frees up will be filled with products that contribute more. In busy months, 150 gift sets use 37.5 hours of pouring time. Those hours could make 375 large candles, contributing 375 × $19.20 = $7,200, if there is demand for them.
  • Dropping it removes some fixed costs, such as a dedicated packaging supplier minimum or storage space.
  • It causes hidden costs that are not in the variable cost figure, such as higher return rates or customer service time.

If none of those applies, the product is helping to pay the rent. A better move might be a modest price rise: at $62 instead of $58, the gift set's payment fee rises to $1.86 and variable cost to $32.12, so contribution per unit becomes $29.88, an extra $3.88 per set, or $582 a month at 150 sets.

Contribution margin for service businesses

A web developer charging $4,000 for a site might pay $1,200 to a subcontractor, $150 for a theme and plugins and $120 in card fees. Contribution is $4,000 - $1,470 = $2,530, a 63.3% ratio. A $3,000 maintenance package with no subcontracting and $90 of fees contributes $2,910, a 97% ratio. Both cover overhead, but very differently.

Time changes the picture again. If the website takes 25 hours of the developer's own time, it contributes $2,530 / 25 = $101.20 per hour. If the maintenance package takes 20 hours over its term, it contributes $2,910 / 20 = $145.50 per hour. For a solo business where hours are the limit, the maintenance work is the better use of time, even though the website brings in more revenue per sale. Tracking this for a few months often changes which services a freelancer chooses to promote.

When projects include materials or subcontracted work, list them as separate lines on the invoice so the client sees what they pay for and you can track variable costs. Our guides on reimbursable expenses and labor and materials invoices show how.

Common contribution margin mistakes

  • Leaving out percentage fees. Card, marketplace and platform fees are variable costs and grow with price.
  • Treating fixed costs as variable. Dividing rent by units sold and calling it a variable cost makes every extra sale look less profitable than it is.
  • Ignoring free shipping. If you pay postage, it is a variable cost per order.
  • Using contribution for long-term pricing. Prices must cover fixed costs too. Contribution margin tells you the floor for a one-off decision, not a sustainable list price. For that, see how to price a product or cost plus pricing.
  • Not updating costs. Recalculate when supplier prices change.

Put contribution margin to work

Calculate contribution margin per unit and ratio for each product or service, review the totals monthly, and use them before every discount, wholesale deal or busy-season decision. It pairs naturally with unit economics and with tracking your operating income. When it is time to bill, create itemised invoices with the free invoice generator so every sale's price, discount and quantity is recorded accurately. It is free, needs no account, and exports a print-ready PDF invoice.

Frequently asked questions

What is contribution margin in simple terms?

Contribution margin is the money left from a sale after you pay the costs that rise and fall with that sale, such as materials, packaging and card fees. That leftover amount contributes to covering fixed costs like rent and salaries, and once fixed costs are covered, it becomes profit. If a product sells for $32 and its variable costs are $12.80, each sale contributes $19.20 toward fixed costs and profit.

What is the contribution margin formula?

Per unit, contribution margin = selling price per unit - variable cost per unit. In total, contribution margin = total sales - total variable costs. The contribution margin ratio = contribution margin / sales, shown as a percentage. All three describe the same idea at different levels. Per-unit figures help with pricing a single item, totals help with monthly reporting, and the ratio helps compare products with different prices.

What is the difference between contribution margin and gross margin?

Gross margin subtracts cost of goods sold, which can include some fixed production costs such as factory rent or salaried production staff. Contribution margin subtracts only variable costs, wherever they appear, including variable selling costs like card processing fees and sales commissions. So the two numbers can differ quite a bit. Contribution margin is better for short-term decisions; gross margin is what appears on a standard profit and loss statement.

What is a good contribution margin ratio?

Higher is better, but what counts as good depends on your fixed costs and sales volume. A business with heavy fixed costs needs a high ratio, or very high volume, to break even. A business with low fixed costs can survive on a thinner ratio. The practical test is whether your total contribution margin comfortably exceeds your fixed costs each month, with enough left over for profit and reserves.

Can contribution margin be negative?

Yes. A negative contribution margin means each sale costs more in variable costs than it brings in, so every extra unit sold makes the business lose more money. This often happens after heavy discounting, free shipping that costs more than expected, or rising material prices that were never passed on. Unless the product is a deliberate loss leader that reliably drives other profitable sales, it should be repriced or dropped.

How is contribution margin used in break-even analysis?

Break-even in units is fixed costs divided by contribution margin per unit. Break-even in sales dollars is fixed costs divided by the contribution margin ratio. For example, with $12,500 of monthly fixed costs and a 55% ratio, you need roughly $22,700 of sales to break even. Every dollar of sales above that point adds about 55 cents of profit until fixed costs change.

Does contribution margin apply to service businesses?

Yes. For a service business, variable costs might include subcontractor fees, materials for a job, travel, payment processing fees and commissions. Contribution margin per job or per hour shows which services cover overhead best. Many service owners also calculate contribution per billable hour, because time is usually the limiting resource. Two services with the same price can have very different contributions once subcontracting or travel costs are included.

Should I include my own labour as a variable cost?

Only if it actually varies with sales. If you pay yourself a fixed salary or draw, treat it as a fixed cost. If you pay hourly staff only when there is work, or pay piece rates, that labour is variable. For a solo freelancer, it is often more useful to calculate contribution per hour of your time, since your hours are the scarce resource and the real limit on how much you can earn.

IC

Invoice Creator Editorial Team

Guides on invoicing, cash flow and small-business finance from Invoice Creator, operated by Next Software Development Company. Content is reviewed for accuracy against the fields our own invoice generator produces.

Try the invoice generator

Related reading