MONEY · MARGIN

Two-Set Margin Calculator

Compare the gross margin of two products, sets, or price points side by side — two revenues, two costs, one verdict. Set A keeps 40.0% of its revenue ($4,000 of $10,000) and Set B keeps 30.0% ($2,400 of $8,000), a gap of 10.0 percentage points. Enter your own numbers below and the winner appears at once.

2724

Compare two gross margins

Two sets, one formula each: margin is (revenue − cost) ÷ revenue. Set A takes in $10,000 and spends $6,000, keeping $4,000 — a 40.0% margin. Set B takes in $8,000 and spends $5,600, keeping $2,400 — a 30.0% margin. The gap is 10.0 percentage points, and Set A wins on both dollars and margin.

What Set A takes in — try $10,000, or your own product line’s revenue.

What Set A costs to make or buy — the direct cost of what was sold.

What Set B takes in — try $8,000, or the second product’s revenue.

What Set B costs to make or buy — the direct cost of what was sold.

Result—Enter values above

Enter values to see the result.

Margin is profit divided by revenue

Gross margin answers one question: of every dollar that comes in, how many cents stay as profit after the direct cost? The formula is (revenue − cost) ÷ revenue, times 100 for a percentage. Set A takes in $10,000 and spends $6,000, so it keeps $4,000 — 40.0% of revenue. Set B takes in $8,000 and spends $5,600, so it keeps $2,400 — 30.0%. Same idea, different numbers, and the gap between them is 10.0 percentage points. The calculator runs both sets through the same formula, so the comparison is apples to apples even when the revenues are different sizes.

A worked example

Take the defaults. Set A: revenue $10,000, cost $6,000. Profit is $10,000 − $6,000 = $4,000, and $4,000 ÷ $10,000 is 0.40 — a 40.0% margin. Set B: revenue $8,000, cost $5,600. Profit is $8,000 − $5,600 = $2,400, and $2,400 ÷ $8,000 is 0.30 — a 30.0% margin. The gap is 40.0 − 30.0 = 10.0 percentage points, and Set A wins. Notice that Set B’s profit is smaller in dollars and in percentage — but that is not always the case: a set can earn more dollars at a lower margin, which is why this page shows both figures.

Output · formula · meaning

OutputFormulaWhat it means
Set A margin($10,000 − $6,000) ÷ $10,00040.0% at the defaults; $4,000 profit per set.
Set B margin($8,000 − $5,600) ÷ $8,00030.0% at the defaults; $2,400 profit per set.
Margin gap40.0% − 30.0%10.0 percentage points, Set A ahead.
Dollar profit gap$4,000 − $2,400$1,600 more profit in Set A.
Higher marginmax(40.0%, 30.0%)Set A at the defaults.

The percentage-point trap

A 10.0 percentage-point gap is not a 10% gap. Set A at 40.0% vs Set B at 30.0%: the gap is 10.0 points, but Set A’s margin is 33.3% higher in relative terms (10.0 ÷ 30.0). The classic mistake is saying “Set A beats Set B by 10%” — that understates it by more than three times. Whenever two percentages are compared, say “percentage points” for the subtraction and reserve “%” for the relative change. The same trap shows up in the other direction: a margin falling from 40% to 30% is a 10-point drop and a 25% relative fall.

Who uses this

  • The shop owner: two product lines side by side — line A keeps 40.0% of every dollar and line B keeps 30.0% — and the shelf space goes to the line that earns more per dollar.
  • The pricing analyst: two price points for the same product — the higher price wins on margin only if the cost does not rise with it, and this is the check before the price goes live.
  • The freelancer: two service packages — the package that looks bigger in dollars is not always the one with the better margin, and the gap in percentage points settles which one to push.
  • The investor: two businesses in the same industry — a 10-point margin gap is a durable advantage, and this is the first number checked before anything else.

Accuracy & limitations

Gross margin here is revenue minus direct cost, divided by revenue — the standard textbook definition. It is not net margin: rent, salaries, tax, and interest are not in the cost box, so a 40% gross margin can still be a loss-making business once overheads are counted. Costs must be the direct cost of what was sold; including overhead in the cost box understates the margin. Revenues and costs are capped at $1,000,000,000,000 to keep the arithmetic exact, and margins are shown to one decimal place — a 33.33% margin displays as 33.3%.

Working out one product’s margin and markup instead of comparing two? The profit margin & markup calculator does the single-product version, and the discount margin calculator shows what a sale does to it.

Cite this calculatorBright Side Kit. “Two-Set Margin Calculator: Compare Margins Side by Side.” brightoolbox.com, 2026.Bright Side Kit. "Two-Set Margin Calculator: Compare Margins Side by Side." https://brightoolbox.com/margin-2-sets/ Accessed November 5, 2026.Data sources
  • Gross margin — (revenue − cost) ÷ revenue. Set A at the defaults: $10,000 revenue, $6,000 cost → $4,000 profit, 40.0% margin.
  • Set B at the defaults: $8,000 revenue, $5,600 cost → $2,400 profit, 30.0% margin; gap 10.0 percentage points.
Embed this calculator

Paste this into any web page to embed the live calculator. The “Powered by Bright Side Kit” link below it must stay intact.

Frequently asked questions

How do you calculate gross margin?

Margin is (revenue − cost) ÷ revenue, times 100. Set A: ($10,000 − $6,000) ÷ $10,000 = 40.0%. Set B: ($8,000 − $5,600) ÷ $8,000 = 30.0%.

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. Set A has a 40.0% margin and a 66.7% markup ($4,000 ÷ $6,000) — the same $4,000 profit, two different denominators.

What does a 10.0 percentage-point gap mean?

Set A’s margin is 10.0 points above Set B’s — 40.0% vs 30.0%. In relative terms Set A’s margin is 33.3% higher (10.0 ÷ 30.0). Say “percentage points” for the subtraction, “%” for the relative change.

Which set wins at the defaults?

Set A, on both measures: $4,000 profit vs $2,400, and a 40.0% margin vs 30.0%. A set can win on dollars and lose on margin, though — which is why this page shows both figures, not just one.

Can a gross margin be negative?

Yes — when cost exceeds revenue. A set that takes in $8,000 and costs $9,000 has a −12.5% margin: it loses $1,000. The calculator shows negative margins as they are, with the losing set flagged.

What if revenue is zero?

Then there is no margin to calculate — profit divided by zero has no value. The calculator asks for revenue above $0 for both sets before it compares anything.

Why compare two sets instead of one?

Because a margin on its own has no context: 30% is good for a grocery store and terrible for a software company. Two sets side by side — two products, two price points, two years — show which one earns more per dollar, which is the decision that matters.