Profit & Margin

Contribution Margin Calculator

Contribution margin per unit and as a ratio — what each sale contributes toward covering fixed costs and profit.

Inputs

$ Please enter a valid number.
COGS + shipping + payment fee + ad cost $ Please enter a valid number.
For total contribution Please enter a valid number.

Results

Contribution margin per unit
Contribution margin ratio
Total contribution (period)

All calculations run in your browser. Nothing is sent to a server. Last updated: 2026-07-19 · Formula verified against published sources (see below).

Formula
Contribution margin = Selling price − Variable cost per unit

What contribution margin means

Contribution margin is what each sale "contributes" toward covering fixed costs (Shopify plan, app subscriptions) and then toward profit. It's selling price minus all variable costs (COGS, shipping, payment fees, ad cost per unit). Once total contribution covers your fixed costs, every additional sale is pure profit.

The formula

Contribution margin per unit = selling price − variable cost per unit

Contribution margin ratio = contribution margin ÷ selling price

Total contribution = contribution margin per unit × units sold

When to use this

Use contribution margin when calculating break-even units (it's the denominator) or when comparing products that share the same fixed-cost base. Two products with the same gross margin can have very different contribution margins if they have different ad costs.

Worked example

MetricValue
Selling price$40.00
Variable cost (COGS + ship + fee + ad)$29.46
Contribution margin per unit$10.54
Contribution margin ratio26.35%
Total contribution (100 units)$1,054.00

If your fixed costs are $500/month, $500 of that $1,054 covers fixed costs — leaving $554 in net profit. That's why the break-even units calculator divides fixed costs by contribution per unit.

Frequently asked questions

What's the difference between contribution margin and gross margin?
Gross margin excludes only COGS (and sometimes shipping). Contribution margin excludes ALL variable costs — including ad spend and payment fees. Contribution margin is the more accurate number for ad-supported dropshipping.
Not financial advice. This calculator is a math tool, not financial advice. Profit margins, ad spend, and business decisions depend on your specific situation. Consult a licensed accountant or financial advisor before making material business decisions.

Related tools & articles

Calculator

Break-Even Units Calculator

How many units you need to sell to cover fixed costs (Shopify plan, apps, ad budget). The line between red and black.

Calculator

Dropshipping Profit Margin Calculator

Calculate the real profit margin on a dropshipping product after product cost, shipping, transaction fees, and ad spend.

Calculator

Gross Margin Calculator

Pure gross margin before ad spend and returns. The number you use to calculate break-even ROAS.

Article

How to Calculate Dropshipping Profit Margin (With Real Numbers)

The exact math behind dropshipping profit margin, with a worked example and the three costs most beginners forget to include.