Skip to main content

Contribution Margin Calculator

Calculate unit and total contribution margin, contribution margin ratio, operating profit, break-even units, and margin of safety from your price, variable cost, units sold, and fixed costs.

Input

Materials, packaging, shipping, commission — costs that scale with each unit sold.

Unlocks the units needed to hit this operating profit.

Output

Results
MetricValue
No data yet
Was this helpful?

Guides

How much does each unit you sell actually contribute toward covering fixed costs and turning a profit? Enter your price, variable cost, units sold, and fixed costs to get the full cost-volume-profit picture — contribution margin, operating profit, break-even, and margin of safety — in one pass.

How to use it

  1. Enter the selling price and variable cost per unit.
  2. Enter units sold (actual or projected) and total fixed costs for the period.
  3. Optionally enter a target profit to see how many units you'd need to sell to hit it.

The formulas

Unit Contribution Margin   = Selling Price − Variable Cost
Contribution Margin Ratio  = Unit Contribution Margin ÷ Selling Price × 100

Total Revenue              = Selling Price × Units Sold
Total Variable Cost        = Variable Cost × Units Sold
Total Contribution Margin  = Total Revenue − Total Variable Cost
Operating Profit           = Total Contribution Margin − Fixed Costs

Break-Even Units           = Fixed Costs ÷ Unit Contribution Margin
Break-Even Sales           = Break-Even Units × Selling Price

Margin of Safety (Units)   = Units Sold − Break-Even Units
Margin of Safety (%)       = Margin of Safety (Units) ÷ Units Sold × 100

Units for Target Profit    = (Fixed Costs + Target Profit) ÷ Unit Contribution Margin

What does contribution margin actually tell you?

It's the amount each unit sold leaves over after covering the costs that scale with volume (materials, packaging, commission) — that leftover is what pays down your fixed costs first, then becomes profit. A higher contribution margin ratio means more of every sales dollar is available to do that.

What is margin of safety for?

It's the cushion between what you're actually selling and the bare minimum you need to break even — expressed both in units and as a percentage of current sales. A thin or negative margin of safety means a small sales dip could push you into a loss; a wide one means you have room to absorb a downturn.

Need the bare break-even point without a units-sold figure on hand? Use the Break-Even Point Calculator instead — this tool builds on the same math but layers on actual volume, total profit, and margin of safety.

Privacy

All calculations run in your browser. Nothing you enter is sent to a server.

contribution margincontribution margin ratiobreak-even unitsmargin of safetyoperating profitunit economicscost volume profit

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/contribution-margin-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sellingPrice": "50",
    "variableCost": "30",
    "unitsSold": "1000",
    "fixedCosts": "12000",
    "targetProfit": ""
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `contribution-margin-calculator` tool (Contribution Margin Calculator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/contribution-margin-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="Contribution Margin Calculator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per callFrom 5 credits

Also available with

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.