4% to 5% Is +1 Point and +25% at the Same Time — the Percentage Trap Most Calculators Ship
A rate moving from 4% to 5% rose 1 percentage point and 25% in relative terms. Points vs percent change, loss recovery, reverse discounts, and markup vs margin.
An interest rate moves from 4% to 5%. Did it rise by 1 percentage point, or by 25%? Both answers are correct, and they measure different things. The arithmetic difference is 5 − 4 = 1 percentage point. The relative change is (5 − 4) / 4 × 100 = 25%. Reporters write "rates rose 1%" when they mean 1 point, and "rates jumped 25%" when they mean the relative move — collapsing two distinct numbers into one word is the most common percentage error in print, and almost every percentage widget online quietly inherits it by offering only one of the two. Loans quoted per month add a third reading: 1% a month is a 12% nominal annual rate, which the loan rate calculator derives from one month's interest.
Percentage points and percent change, side by side
The Wikipedia entry on percentage point uses a smoking-rate example: a prevalence falling from 50% to 40% dropped 10 percentage points, which is a 20% relative decline (10 / 50 × 100). Same two endpoints, two answers, and you have to say which one you mean. The Points tab takes the old value and the new value — both already percentages — and prints both at once:
const pointDiff = b - a; // percentage points (pp)
const relative = a === 0 ? null : ((b - a) / a) * 100; // percent (%)
Type old 4, new 5: the left card reads +1 pp, the right reads +25%. Type old 50, new 40: −10 pp and −20%. When the old value is 0 the relative change is undefined (division by zero) while the point difference is still perfectly defined — so the tool shows the pp number and labels the relative side "Undefined (old value is 0)" rather than rendering a silent Infinity.
A 50% drop needs a 100% gain to get back
Symmetry is the intuition that fails next. Lose 50% and it feels like a 50% gain brings you home; it does not. A portfolio that drops from 100 to 50 has to rise by 100% to return to 100, because the gain is now measured against the smaller base of 50. The recovery rule for a drop of fraction d is g = d / (1 − d):
if (b < a) {
const d = (a - b) / a; // drop fraction
recover = { dir: "up", amount: (d / (1 - d)) * 100 }; // 0.5 → +100, 0.2 → +25
}
A 20% drop needs +25% back; a 50% drop needs +100%; a 75% drop needs +300%. It runs the other way too: a 50% gain (50 → 75) only needs a u / (1 + u) = −33.3333% move to undo. The Change tab prints the percent change, the absolute change, and the recovery figure together, so the asymmetry is on screen instead of in your head.
Compounding over time works the same way: 5% inflation for 20 years adds 165%, not 100%.
The discount you reverse with division, not multiplication
"After 20% off, the price is 80 — what was the original?" The reflex is 80 × 1.2 = 96. That is wrong, because the 20% was taken off the original, not off 80. The original satisfies original × (1 − 0.20) = 80, so original = 80 ÷ 0.8 = 100. The Reverse tab divides, and to make the trap visible it also displays the multiplication answer you were tempted to use, flagged as the common mistake:
case "off": { // B is P% off the original
const denom = 1 - p / 100; // 80 / (1 − 0.20) = 100
return { original: b / denom, wrong: b * (1 + p / 100) }; // wrong = 96
}
Original 100, mistake 96 — a 4-unit gap that compounds every time someone backs into a pre-tax or pre-discount figure with the wrong operator. Set P = 100 on an "off" calculation and the denominator becomes zero; the tool returns "Cannot divide by zero" instead of an infinity.
Markup 150% and margin 60% are the same sale
A product costs 40 and sells for 100. Its markup is 150%, its margin is 60%, and both describe the identical 60 of profit. The two divide by different bases — markup over cost, margin over price (Wikipedia · Profit margin):
const profit = price - cost;
const margin = (profit / price) * 100; // ÷ price → 60
const markup = cost === 0 ? null : (profit / cost) * 100; // ÷ cost → 150
Quoting the wrong one is how a "60% markup" instruction turns into a thin 37.5% margin at the register. The Margin tab shows both for a cost/price pair, and reverses: feed it a cost of 40 and a target margin of 60% and it returns the price cost / (1 − 0.60) = 100 you need to charge.
One rounding rule, zero network, SSR-safe
Every result runs through one deterministic rounding function — half away from zero, at most four decimals, trailing zeros trimmed — rather than the engine's Intl rounding mode, which can differ between Node and the browser:
export function roundHalfUp(n: number, dp = 4): number {
const f = 10 ** dp;
return (Math.sign(n) * Math.round(Math.abs(n) * f)) / f;
}
That trim is why 25% renders as 25% and not 25.00%, while 50 → 75 recovery still shows the full −33.3333%. Input parsing strips %, $, commas, and spaces but never divides by 100 — every P / 100 lives inside the formulas, so there is no double-division bug:
export function parseNum(s: string): number | null {
const t = s.trim().replace(/[,$\s%]/g, "");
if (t === "") return null;
const n = Number(t);
return Number.isFinite(n) ? n : null;
}
Empty or non-numeric input leaves the field in a placeholder state — no error, no calculation. Negative bases are flagged as ambiguous but still computed. Every calculation is plain O(1) arithmetic with no Date, no random, and no network, so the first server render and the client hydration produce byte-identical numbers.
Try it
Open the Percentage Calculator and check each claim:
- Points — old
4, new5→+1 ppand+25%. Then old50, new40→−10 ppand−20%. - Change — from
100, to50→−50%, recover+100%. From100, to80→−20%, recover+25%. - Reverse — known value
80,20% off → original100, with the96multiplication mistake flagged. - Margin — cost
40, price100→ markup150%, margin60%, profit60. Switch to target mode: cost40, target margin60%→ required price100. - Basic —
15% of200→30, confirming the everyday case still lands where it should.