---
title: "Contribution margin calculator"
description: "Contribution margin is a profitability metric, calculated as (Revenue − Variable costs) ÷ Revenue. Strictly the ratio form — the amount is Revenue − Variable costs. Variable-cost classification is a judgment; state it."
canonical: "https://lopifi.com/calculators/contribution-margin"
---

# Contribution margin calculator

> Contribution margin is a profitability metric, calculated as (Revenue − Variable costs) ÷ Revenue. Strictly the ratio form — the amount is Revenue − Variable costs. Variable-cost classification is a judgment; state it.

Source: https://lopifi.com/calculators/contribution-margin
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Formula:** `(Revenue − Variable costs) ÷ Revenue`

*[Interactive contribution margin calculator]* Runs in your browser; nothing you type is sent anywhere. Amounts in US dollars.

## Worked on a real month of books

Northwind Traders, Inc., September 2026 (accrual basis, USD), the month the free course is taught on. Variable costs are cost of revenue and the credit-loss estimate; every other expense is treated as fixed for the month. Every figure is read off the course's posted ledger, not typed.

|  | Step | Working | Value |
| --- | --- | --- | ---: |
| 1 | Cost of revenue | Goods sold, at cost | $17,000 |
| 2 | Bad debt expense | 2% of what customers owe | $160 |
| 3 | Contribution | $31,500 − $17,160 | $14,340 |
| 4 | Contribution margin | $14,340 ÷ $31,500 | 45.5% |

See the statements these come from in [the course](https://lopifi.com/md/learn).

## How to read it

Use it for pricing and break-even. One more sale doesn't change fixed costs, so this is the margin that sale adds.

A positive contribution margin alongside a net loss means volume can close the gap. A negative one means each sale makes the loss bigger.

## Common mistakes

- Treating fixed salaries as variable costs.
- Leaving out payment processing and commissions, which do scale with each sale.

## Questions

### How is contribution margin different from gross margin?

Gross margin deducts cost of revenue as the income statement defines it. Contribution margin deducts every cost that varies with volume, which can include sales commissions and payment fees that sit in operating expenses.

### How is it used for break-even?

Fixed costs ÷ contribution margin ratio gives the revenue needed to break even.

## Read it with

- [Operating margin calculator](https://lopifi.com/md/calculators/operating-margin): Operating margin is a profitability metric, calculated as Operating income ÷ Revenue.
- [Net margin calculator](https://lopifi.com/md/calculators/net-margin): Net margin is a profitability metric, calculated as Net income ÷ Revenue.
- [Customer lifetime value calculator](https://lopifi.com/md/calculators/ltv): LTV is a unit-economics metric, calculated as (ARPA × Gross margin) ÷ Revenue churn rate, both in the same period unit.
- [Contribution margin](https://lopifi.com/md/glossary/contribution-margin): Contribution margin is a profitability metric, calculated as (Revenue − Variable costs) ÷ Revenue.

*The formula is the one the [glossary](https://lopifi.com/md/glossary/contribution-margin) states, and the arithmetic is unit-tested. A ratio with nothing to divide by shows a dash — undefined is not zero. General information, not tax, legal or accounting advice. Check with a CPA before you act on it.*
