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
| Output | Formula | What it means |
| Set A margin | ($10,000 − $6,000) ÷ $10,000 | 40.0% at the defaults; $4,000 profit per set. |
| Set B margin | ($8,000 − $5,600) ÷ $8,000 | 30.0% at the defaults; $2,400 profit per set. |
| Margin gap | 40.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 margin | max(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 calculatorPaste this into any web page to embed the live calculator. The “Powered by Bright Side Kit” link below it must stay intact.