Contribution Margin Calculator Formula
Understand the math behind the contribution margin calculator. Each variable explained with a worked example.
Formulas Used
Contribution Margin Ratio
contribution_margin_pct = price > 0 ? ((price - variable_cost) / price) * 100 : 0Contribution Margin Per Unit
contribution_margin_unit = price - variable_costVariable Cost Ratio
variable_cost_ratio = price > 0 ? (variable_cost / price) * 100 : 0Variables
| Variable | Description | Default |
|---|---|---|
price | Selling Price Per Unit(USD) | 100 |
variable_cost | Variable Cost Per Unit(USD) | 40 |
How It Works
How to Calculate Contribution Margin
Formula
Contribution Margin Ratio = [(Price - Variable Cost) / Price] x 100 Contribution Margin Per Unit = Price - Variable Cost
Contribution margin tells you how much each unit sold contributes to covering fixed costs and generating profit. It is essential for break-even analysis and pricing decisions.
Worked Example
A product sells for $100 with a variable cost of $40 per unit.
- 01Contribution margin per unit = $100 - $40 = $60
- 02Contribution margin ratio = ($60 / $100) x 100 = 60%
- 03Variable cost ratio = ($40 / $100) x 100 = 40%
When to Use This Formula
- Deciding whether to accept a special order at a reduced price — if the price still exceeds variable costs, the order contributes positively to covering fixed costs and generating profit.
- Calculating the break-even point in units by dividing total fixed costs by the per-unit contribution margin, which tells you how many units you must sell to cover all costs.
- Comparing product lines to determine which ones contribute the most per unit or per dollar of revenue, so you can prioritize production and marketing resources.
- Performing cost-volume-profit (CVP) analysis to model how changes in sales volume, price, or variable costs affect operating profit.
- Evaluating whether to discontinue a product — even a product with a low margin should be kept if its contribution margin is positive and it helps absorb fixed costs that would remain regardless.
Common Mistakes to Avoid
- Including fixed costs in the variable cost figure — contribution margin only subtracts variable costs (materials, direct labor, commissions). Including rent or salaries in variable costs understates the true contribution margin.
- Confusing contribution margin with gross profit — gross profit subtracts cost of goods sold (which may include fixed manufacturing overhead), while contribution margin subtracts only variable costs regardless of category.
- Assuming contribution margin ratio is constant at all volumes — variable costs per unit can change at different production levels due to bulk discounts, overtime labor, or capacity constraints.
- Ignoring the contribution margin ratio when comparing products with different prices — a product with a $10 margin on a $20 price (50% ratio) is more efficient than one with a $15 margin on a $100 price (15% ratio) if capacity is the constraint.
Frequently Asked Questions
What is the difference between contribution margin and gross margin?
Contribution margin subtracts all variable costs (including variable selling and admin costs) from price. Gross margin subtracts only COGS. Contribution margin is more useful for break-even and pricing analysis.
How is contribution margin used in break-even analysis?
Break even units = Fixed Costs / Contribution Margin Per Unit. A higher contribution margin means fewer units are needed to break even.
Learn More
Guide
Break-Even Analysis Guide
Learn how to perform a break-even analysis for your business. Understand fixed costs, variable costs, contribution margin, and how to find the break-even point.
Ready to run the numbers?
Open Contribution Margin Calculator