Background

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:

  1. Enter selling price per unit — the price you charge per unit sold (e.g., $100).
  2. Enter variable cost per unit — the cost that changes with each unit: raw materials, direct labor, commissions, shipping (e.g., $10).
  3. Enter number of units — how many units you sold or plan to sell (e.g., 10).
  4. Enter fixed costs — total fixed expenses for the period: rent, insurance, salaries, depreciation (e.g., $10).
  5. Read the results — the summary bar instantly shows Contribution Margin, Contribution Margin Ratio, and Profit Generated.
  6. 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:

ScenarioPriceVC/unitUnitsFixedCMRatioProfit
SaaS product$50$51,000$20,000$45,00090%$25,000
Default example$100$1010$10$90090%$890
Retail store$25$15500$3,000$5,00040%$2,000
Restaurant meal$18$63,000$25,000$36,00066.67%$11,000
Unprofitable product$10$12100$500−$200−20%−$700

Variable costs vs. fixed costs

Understanding the difference is essential for accurate contribution margin analysis:

Variable costsFixed costs
Change with production volumeStay constant regardless of output
Raw materials, hourly wages, shippingRent, insurance, salaried wages
Zero when production is zeroIncurred even at zero production
Per-unit cost stays roughly constantPer-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:

IndustryTypical CM ratio
Software / SaaS70%–90%
Consulting / Professional services50%–80%
Restaurants55%–70%
Manufacturing25%–45%
Retail20%–50%
Grocery20%–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

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.

START FREE TRIAL

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

4.8/5
— based on 10,000+ trusted reviews
START MY 14-DAY FREE TRIAL