Contribution margin calculator

Free · No signup · Guide approved 18 November 2026 by Nirav Italiya, founder · How we check guides

How do I calculate contribution margin?

Contribution margin per unit = selling price − variable cost per unit. Contribution margin ratio = that margin ÷ price. Enter price, variable cost, units sold and fixed costs to see the margin per unit and ratio, total contribution, operating profit and the break-even point in units and sales.

Contribution margin per unit

Covers variable costs

$18

45.0% of the price goes towards fixed costs and profit

Total contribution
$27,000
Operating profit
$12,000
Break-even units
834
Break-even sales
$33,360

Each sale, split

  • Variable cost $22
  • Contribution $18

Fewer returns, better margin

Show buyers the real fit and colour

Returns and RTO eat profit. On-model photos that match what buyers receive help them choose right the first time.

  • First 2K photo free, no card
  • Ready in about 3 minutes
  • Full commercial rights
Flat-lay photo of a sareeThe same saree on an AI model, made with DrapifyApp

How to use it

  1. Enter the selling price and variable cost per unit.
  2. Enter units sold and fixed costs for the period.
  3. Read contribution margin, profit and break-even.

Who this is for

This calculator is for sellers who want to know what each sale really leaves to pay the fixed bills, such as rent, salaries, software and photography, and how many sales a month it takes to cover them. It suits online stores, marketplace sellers and makers, in any currency.

It is most useful when you set a price, when a marketplace changes its fees, and when you decide whether to run ads, because ad cost per order is just another variable cost that comes out of contribution.

Building the variable cost per unit

The calculator takes one variable cost per unit, so add up everything that comes with each order first. Percentage fees must be turned into an amount at your selling price. Here is a hypothetical product selling at 25; replace every figure with your own from your invoices, rate card and seller panel.

Hypothetical variable costs at a 25 selling price
CostHow it is worked outPer unit
ProductSupplier invoice9.00
PackagingMailer, tape, tag0.80
Marketplace commission15% × 25 (example rate)3.75
ShippingAverage per order3.20
AdsAd spend ÷ orders2.50
Total variable cost19.25

Worked example: margin, profit and break-even

At a price of 25 and a variable cost of 19.25, contribution is 5.75 per unit and the ratio is 23%. With 4,000 of fixed costs a month, break-even is 4,000 ÷ 5.75 = 695.65, rounded up to 696 units, or 696 × 25 = 17,400 of sales. Selling 900 units contributes 5,175 and leaves an operating profit of 1,175.

Because commission is a percentage, it rises with the price. With the other costs fixed at 15.50, variable cost is 15.50 + 0.15 × price, so a small price change moves break-even a lot.

Same fixed costs (4,000), price changed
PriceVariable costContribution per unitRatioBreak-even units
2318.954.0517.6%988
2519.255.7523.0%696
2719.557.4527.6%537

Using the result

  • If contribution per unit is negative, more sales make losses bigger. Fix price or variable cost before spending on growth.
  • Use contribution, not revenue, to judge discounts: in the example, a 10% price cut from 25 to 22.50 lowers contribution from 5.75 to 3.63 per unit (commission falls a little too) and raises break-even from 696 to 1,104 units.
  • Check that the units sold and fixed costs cover the same period, usually one month.
  • Break-even units are rounded up, because you cannot sell part of a unit.

Contribution margin, gross margin and markup side by side

The same product looks very healthy on markup and gross margin, but only 23% of each sale is left once fees, shipping and ads are paid. That 23% is what pays the fixed costs, which is why contribution is the figure to plan with.

Using the example product at 25 (variable cost 19.25, product cost 9.00)
MeasureFormulaResult
Markup on product cost(price − product cost) ÷ product cost177.8%
Gross margin(price − product cost) ÷ price64.0%
Contribution margin ratio(price − all variable costs) ÷ price23.0%

Reading the split bar

The bar under the results shows each sale divided into variable cost and contribution. In the example, 19.25 of every 25 goes on variable costs and 5.75 is left. A thin contribution slice means small changes in fees, shipping or ad costs can wipe out profit, so recheck the inputs whenever a rate card changes.

Working backwards to a price

You can use the calculator to find a minimum price. Suppose commission is 15% and the other variable costs total 15.50 per unit, and you want 6.00 of contribution per unit. The price must satisfy price × 0.85 − 15.50 = 6.00, so price = 21.50 ÷ 0.85 = 25.29, which you would round up to 25.30. At 25.30, the commission is 3.795, so contribution is 25.30 − 15.50 − 3.795 = 6.005.

To reach a target profit, add it to the fixed costs before dividing. With 4,000 of fixed costs, a 1,000 profit target and 5.75 of contribution, you need 5,000 ÷ 5.75 = 869.57, so 870 units a month.

Worked example

A product sells for 40 and costs 22 per unit in materials, fees and shipping, a contribution of 18 (45%). Selling 1,500 units contributes 27,000; after 15,000 of fixed costs, operating profit is 12,000. Break-even is 834 units.

Variable vs fixed costs

Variable costs rise with each sale: product cost, packaging, marketplace commission, payment fees, shipping. Fixed costs do not: rent, salaries, software. Ad spend is often treated as variable if it scales with orders.

Common mistakes

  • Counting ad spend as a fixed cost when it scales with orders, which makes every sale look more profitable.
  • Forgetting returns, RTO and payment fees in the variable cost.
  • Mixing a monthly fixed cost with yearly units sold.
  • Using the commission percentage at one price and then testing another price without recalculating it.
  • Treating contribution as profit; fixed costs still have to be paid from it.

What this tool can’t do

  • It handles one product, or one average product. For a mix of products with different margins, work out a weighted average contribution yourself.
  • Variable cost is assumed to stay the same per unit at any volume, which ignores bulk discounts and shipping tiers.
  • It does not know current marketplace fees, taxes or courier rates; every figure comes from what you enter.

How this guide was made: drafted with AI assistance from the tool’s own calculations and behaviour, then checked against our editorial policy and approved by the founder before publishing.

Questions

What is contribution margin?
What each sale leaves after variable costs, available to cover fixed costs and then profit.
What is a good contribution margin ratio?
It depends on fixed costs; online sellers often aim for 30–50% so ads and overheads are covered.
How is contribution margin different from gross margin?
Gross margin subtracts cost of goods sold; contribution margin subtracts all variable costs, including fees and shipping.
How do I calculate break-even from contribution margin?
Break-even units = fixed costs ÷ contribution margin per unit.
Does it work in my currency?
Yes.
What is the contribution margin ratio formula?
Contribution margin ratio = (price − variable cost) ÷ price × 100.
Can contribution margin be negative?
Yes, if variable costs exceed the price. Every sale then loses money before fixed costs.
Are marketplace fees variable costs?
Yes. Commissions, payment fees and shipping per order are variable.

Add this calculator to your website

Run a blog, seller community or agency site? Paste this code where you want the Contribution margin calculator to appear. It is free, has no ads, and works on WordPress, Shopify, Wix, Blogger and plain HTML.

Preview the embedAdd ?theme=dark to the address for a dark version.

Related free tools

More free tools: Price & profit

See all Price & profit tools