
FREE CONTRIBUTION MARGIN CALCULATOR
This contribution margin calculator shows how much revenue remains after variable costs are subtracted from sales.
What is contribution margin?
Contribution margin (CM) is the portion of sales revenue that remains after subtracting all variable costs. It represents the money available to cover fixed expenses and generate profit. Contribution margin is a cornerstone of cost-volume-profit (CVP) analysis and is used daily by business owners, accountants, and financial analysts to evaluate pricing, product mix, and profitability.
The formulas are:
Contribution Margin = (Selling Price × Units) − (Variable Cost × Units)
Contribution Margin Ratio = Contribution Margin ÷ Total Revenue × 100%
Profit = Contribution Margin − Fixed Costs
For example, if you sell 10 units at $100 each with a variable cost of $10 per unit and $10 in fixed costs: the contribution margin is ($100 × 10) − ($10 × 10) = $900, the contribution margin ratio is $900 ÷ $1,000 = 90%, and the profit generated is $900 − $10 = $890.
How to use this contribution margin calculator
This calculator computes three key metrics in real time:
- Enter selling price per unit — the price you charge per unit sold (e.g., $100).
- Enter variable cost per unit — the cost that changes with each unit: raw materials, direct labor, commissions, shipping (e.g., $10).
- Enter number of units — how many units you sold or plan to sell (e.g., 10).
- Enter fixed costs — total fixed expenses for the period: rent, insurance, salaries, depreciation (e.g., $10).
- Read the results — the summary bar instantly shows Contribution Margin, Contribution Margin Ratio, and Profit Generated.
- Compare scenarios — change any input to model price increases, cost reductions, or volume changes. Use the reset button to start fresh.
Key features
- Three results at once
- See contribution margin (dollars), contribution margin ratio (percentage), and profit generated — all computed instantly.
- Real-time updates
- Results recalculate as you type — no "calculate" button needed.
- Edge-case handling
- When revenue is zero, the ratio displays 0% instead of an error. Negative margins are displayed accurately to flag unprofitable products.
- Input validation
- All currency fields accept values up to $999,999,999. Number of units accepts whole numbers only. Invalid characters are blocked at the keyboard level.
- Local storage persistence
- Your inputs are saved automatically in the browser so you can close the tab and return later.
- No sign-up required
- 100% free, runs entirely in your browser, and never asks for an email address or credit card.
Worked examples
The table below shows how contribution margin, ratio, and profit change across different business scenarios:
| Scenario | Price | VC/unit | Units | Fixed | CM | Ratio | Profit |
|---|---|---|---|---|---|---|---|
| SaaS product | $50 | $5 | 1,000 | $20,000 | $45,000 | 90% | $25,000 |
| Default example | $100 | $10 | 10 | $10 | $900 | 90% | $890 |
| Retail store | $25 | $15 | 500 | $3,000 | $5,000 | 40% | $2,000 |
| Restaurant meal | $18 | $6 | 3,000 | $25,000 | $36,000 | 66.67% | $11,000 |
| Unprofitable product | $10 | $12 | 100 | $500 | −$200 | −20% | −$700 |
Variable costs vs. fixed costs
Understanding the difference is essential for accurate contribution margin analysis:
| Variable costs | Fixed costs |
|---|---|
| Change with production volume | Stay constant regardless of output |
| Raw materials, hourly wages, shipping | Rent, insurance, salaried wages |
| Zero when production is zero | Incurred even at zero production |
| Per-unit cost stays roughly constant | Per-unit cost decreases with volume |
Why contribution margin matters
- Pricing decisions — know exactly how much each sale contributes toward covering fixed costs and generating profit.
- Break-even analysis — calculate how many units you need to sell before fixed costs are fully covered: Break-Even Units = Fixed Costs ÷ CM per Unit.
- Product mix optimization — compare contribution margins across products to prioritize those with the highest margins.
- Cost control — identify products where variable costs are eating into revenue and find opportunities to negotiate better supplier pricing.
- Scalability assessment — a high contribution margin ratio means the business scales well because each additional unit sold adds significant profit.
- Make-or-buy decisions — compare the contribution margin of in-house production against outsourcing to choose the more profitable option.
Contribution margin ratio benchmarks by industry
Typical contribution margin ratios vary significantly by industry due to different cost structures:
| Industry | Typical CM ratio |
|---|---|
| Software / SaaS | 70%–90% |
| Consulting / Professional services | 50%–80% |
| Restaurants | 55%–70% |
| Manufacturing | 25%–45% |
| Retail | 20%–50% |
| Grocery | 20%–30% |
If your contribution margin ratio is below the industry benchmark, look for opportunities to increase selling price, reduce variable costs, or shift your product mix toward higher-margin offerings.
How to improve contribution margin
- Raise prices — even a small price increase can significantly improve margin if demand is inelastic.
- Negotiate supplier costs — reduce raw material and component costs through volume discounts or alternative suppliers.
- Reduce waste — lean manufacturing and process improvements lower variable cost per unit.
- Optimize labor — use scheduling tools to minimize overtime and improve productivity per hour.
- Drop low-margin products — focus resources on products with the highest contribution margin per unit.
- Upsell and bundle — increase average selling price by offering premium versions or complementary products.
Who benefits from calculating contribution margin?
- Small business owners — understand which products are profitable and how many units need to be sold to cover overhead.
- Financial analysts — perform CVP analysis, build financial models, and evaluate investment decisions.
- Product managers — prioritize product development and marketing spend toward high-margin offerings.
- Sales teams — focus selling effort on products that contribute the most to the bottom line.
- Accountants — prepare contribution margin income statements for management reporting.
- Students and educators — learn and teach fundamental managerial accounting and microeconomics concepts.
Helpful resources
- Investopedia — Contribution Margin — Comprehensive guide to contribution margin with formulas, examples, and real-world applications.
- Khan Academy — Contribution Margin and Break-Even Point — Free video lesson on how contribution margin drives break-even analysis.
- SBA — Manage Your Finances — U.S. Small Business Administration guidance on understanding costs and pricing.
Other free tools you might find useful
Calculate fixed cost per unit with the Average Fixed Cost Calculator, estimate true employee costs with the Labor Cost Calculator, or convert salary to an hourly rate with the Salary to Hourly Calculator.
Track costs with ShiftFlow
ShiftFlow helps you track hours, manage schedules, and understand your true labor costs. Accurate time tracking and automatic pay calculations give you the data you need to improve margins and make smarter business decisions—start a free trial today.
Contribution margin calculator FAQ
What is contribution margin?
Contribution margin is the revenue remaining after subtracting variable costs from sales. It represents the amount available to cover fixed costs and generate profit. The formula is: CM = (Selling Price × Units) − (Variable Cost × Units).
Is this calculator free?
Yes. This calculator is 100% free, requires no sign-up, and runs entirely in your browser. Your inputs are saved to local storage so you can return later.
How do I calculate contribution margin ratio?
Contribution Margin Ratio = Contribution Margin ÷ Total Revenue × 100%. For example, $900 margin on $1,000 revenue gives a 90% ratio. A higher ratio means more revenue covers fixed costs and profit.
What is the difference between contribution margin and profit?
Contribution margin is revenue minus variable costs only. Profit subtracts fixed costs as well: Profit = CM − Fixed Costs. A positive CM does not guarantee profit if fixed costs exceed it.
Can contribution margin be negative?
Yes. When variable cost per unit exceeds the selling price, the contribution margin is negative. This means the business loses money on every unit sold and cannot cover any fixed costs.
What is a good contribution margin ratio?
It depends on the industry. SaaS businesses often see 70–90%, restaurants 55–70%, manufacturing 25–45%, and retail 20–50%. Compare your ratio against industry benchmarks to evaluate performance.
How does contribution margin help with pricing?
It shows how much each unit contributes toward covering fixed costs and generating profit. If the margin is too low, you can raise prices, cut variable costs, or discontinue unprofitable products.
What are examples of variable costs?
Common variable costs include raw materials, direct labor (hourly wages), sales commissions, shipping, packaging, credit card processing fees, and production supplies. They are zero when no units are produced.
What are examples of fixed costs?
Common fixed costs include rent, insurance, salaried wages, depreciation, loan payments, software subscriptions, and property taxes. They are incurred regardless of production volume.
How do I calculate the break-even point?
Break-Even Units = Total Fixed Costs ÷ Contribution Margin per Unit. For example, with $10,000 in fixed costs and a $90 CM per unit, you need to sell at least 112 units to break even.

By calculating contribution margin and contribution
margin ratio, businesses can better evaluate
pricing strategies and profitability.
With Shiftflow, contribution margin data fits into broader financial analysis, helping teams assess
performance and plan for sustainable growth.
SIGN UP NOW
WE CAN HELP YOU SAVE
47% less
time spent on administrative tasks
12% saved
on total payroll budget
5+ hours
reclaimed by managers weekly