Contribution margin is what each sale leaves over after paying the costs that come with that sale. Price minus variable costs. Whatever is left contributes to your fixed costs first, like rent, permits and insurance, and once those are covered, to profit. For a small seller deciding what to price, push or drop, it’s one of the most practical numbers there is.

This guide covers the contribution margin formula per unit and as a ratio, how to sort fixed from variable costs, how contribution margin connects to break-even, a worked example from a coffee cart, and how to use it to choose which products to push.

What contribution margin means

Every time you sell something, some costs go up with it. You use up the product, a cup, a bag, a label, and you pay a card processing fee. Those are variable costs. Other costs stay the same whether you sell ten items or a thousand: your commissary fee, your insurance, the loan on your trailer. Those are fixed costs.

Contribution margin looks only at the first group. It answers a simple question: when I make one more sale, how much does it actually add to the pot that pays my fixed costs?

The contribution margin formula

Per unit

Contribution margin per unit = price − variable cost per unit

If a latte sells for $5.50 and the variable costs that go with it add up to $1.55, each latte contributes $3.95.

Total

Total contribution margin = total sales − total variable costs

Or, product by product, contribution margin per unit times units sold, added up.

Contribution margin ratio

Contribution margin ratio = contribution margin ÷ price × 100

The latte’s ratio is $3.95 ÷ $5.50, about 71.8%. That means roughly 72 cents of every latte dollar is available for fixed costs and profit. The ratio is handy when you want to compare items with very different prices, or work in sales dollars rather than units.

Fixed vs variable costs for a small seller

Sorting your costs is the hardest part, and it doesn’t need to be perfect. A practical split:

Usually variableUsually fixed
Product cost or ingredientsRent, commissary or kitchen fees
Cups, lids, bags, boxes, labelsInsurance
Card processing feesPermits and licenses
Sales commissions or consignment splitsLoan or lease payments on equipment
Shipping on orders you mail outPhone, internet and software subscriptions
Marketplace fees charged per saleSalaried staff or set weekly wages

Some costs sit in between. A market booth fee is fixed for the day but only exists if you show up, so treat it as a fixed cost of that market. Hourly staff you schedule regardless of how busy it gets are effectively fixed for that shift. Pick a rule and apply it the same way each time.

Note that variable costs are a wider group than cost of goods sold. Card fees and per-sale marketplace fees aren’t part of COGS, but they do rise with each sale, so they belong in contribution margin.

A worked contribution margin example

A coffee cart sells three things. Here are its per-unit numbers:

ItemPriceVariable costsContribution marginCM ratio
Latte$5.50$1.55$3.9571.8%
Drip coffee$3.00$0.70$2.3076.7%
Pastry (bought from a bakery)$4.00$2.65$1.3533.8%

The latte’s $1.55 is espresso at $0.45, milk at $0.60, cup, lid and sleeve at $0.30 and a card fee of about $0.20. The drip coffee’s $0.70 is $0.25 of coffee, a $0.30 cup and lid and a $0.15 card fee. The pastry’s $2.65 is $2.40 paid to the bakery, a $0.10 bag and a $0.15 card fee.

In a month the cart sells 600 lattes, 400 drip coffees and 200 pastries:

ItemUnitsCM per unitTotal contribution
Latte600$3.95$2,370
Drip coffee400$2.30$920
Pastry200$1.35$270
Total contribution margin$3,560
Fixed costs for the month−$1,400
Profit before taxes$2,160

The $1,400 of fixed costs is a $600 commissary fee, $250 for permits and insurance, a $400 cart loan payment and $150 for phone and software.

Contribution margin and break-even

Break-even is the point where total contribution margin exactly covers fixed costs. Below it you lose money, above it every sale adds profit. The formula falls straight out of contribution margin:

Break-even units = fixed costs ÷ contribution margin per unit

If the cart sold only lattes, it would need $1,400 ÷ $3.95 = 354.4, so 355 lattes a month, to break even. In sales dollars:

Break-even sales = fixed costs ÷ contribution margin ratio

That’s $1,400 ÷ 0.718, about $1,950 of latte sales, which matches 355 lattes at $5.50 ($1,952.50). With a mix of products, use the ratio for your overall mix. The cart’s monthly sales above are $3,300 + $1,200 + $800 = $5,300, and $3,560 ÷ $5,300 gives a blended ratio of about 67.2%. Break-even sales for that mix are $1,400 ÷ 0.672, roughly $2,080.

To try your own numbers, use the break-even calculator.

Using contribution margin to decide which products to push

Contribution margin gives you two ways to rank products, and they don’t always agree.

  • Dollars per sale. The latte brings in $3.95 each, the most of the three. When a customer is undecided, suggesting a latte over a drip coffee adds $1.65 to the pot.
  • Ratio. Drip coffee has the best ratio at 76.7%. It’s fast to serve, so at a rush when the line is the bottleneck, dollars per minute may matter more than dollars per cup.

The pastry looks weak at $1.35 and 33.8%. That doesn’t automatically mean drop it. If it gets people to add an item to their coffee, it adds $1.35 they wouldn’t otherwise have spent. The questions to ask are whether it takes time or space away from better items, how much goes to waste unsold, and whether a small price increase or a cheaper supplier would fix it. Raising it to $4.50 would lift its contribution to about $1.85.

Some other practical uses:

  • Pricing a discount. A $1 off promotion on the latte cuts its contribution from $3.95 to $2.95, so you need about a third more lattes to earn the same. Check the math with the discount calculator before you announce it.
  • Deciding on a new market or event. If a Saturday market costs $120 in booth fees, divide it by your average contribution per sale to see how many sales you need just to cover the fee.
  • Judging an investment. A second grinder that lets you serve more lattes at rush hour pays for itself through extra contribution. The ROI calculator can help frame that.

Contribution margin vs gross margin

They look similar but subtract different things. Gross profit subtracts only the cost of goods sold. Contribution margin subtracts every cost that varies with sales, including card fees and per-sale commissions. Gross margin is what appears on a profit and loss statement. Contribution margin is a management tool for decisions about pricing, product mix and break-even. For most small product sellers the two are close, with contribution margin a few points lower.

Common mistakes

  • Forgetting card fees. A 3% fee on a $5.50 sale is small, but across a month it adds up and belongs in variable costs.
  • Spreading fixed costs into per-unit cost. Dividing rent by units sold and adding it to each item makes the cost change every time sales change. Keep fixed costs separate.
  • Using old cost prices. If milk or wholesale prices went up, so did your variable costs.
  • Ranking only by ratio. A high ratio on a cheap item can still bring in fewer dollars than a lower ratio on an expensive one.

Where SleepingFire fits

SleepingFire is point-of-sale and inventory software, not accounting software, so it doesn’t split your costs into fixed and variable or calculate contribution margin for you. It does give you the pieces. Each product stores a price and a cost, the profit margin report shows margin per product for any date range, and best sellers tell you how many units of each item you sold. Add your per-sale costs like card fees to the product cost and you have a contribution margin per item. See the sales reports.

Frequently asked questions

What is the contribution margin formula?

Contribution margin per unit is the selling price minus the variable costs per unit. A $5.50 latte with $1.55 of variable costs has a $3.95 contribution margin.

How do you calculate contribution margin ratio?

Divide contribution margin by price and multiply by 100. $3.95 ÷ $5.50 is about 71.8%.

What is the difference between contribution margin and gross margin?

Gross margin subtracts only cost of goods sold. Contribution margin subtracts every cost that rises with each sale, including card fees and per-sale commissions.

How does contribution margin relate to break-even?

Break-even units equal fixed costs divided by contribution margin per unit; break-even sales equal fixed costs divided by the contribution margin ratio.

Are card processing fees a variable cost?

Yes. They rise with every sale, so they belong in variable costs when you calculate contribution margin.