Percentage calculator

All six common percentage calculations in one place — X% of Y, X is what % of Y, % change from X to Y, add or subtract a percentage, and the reverse "X is N% of what?" — with the explicit formula shown for every answer. Runs entirely in your browser.

Mode

What is 15% of 200?

X% of Y
30

Formula: 30 = 15 × 200 ÷ 100

All calculations run in your browser. Nothing leaves the page — your last-used mode and inputs are saved only to this browser's local storage so a refresh restores them.

How to use

  1. Pick a mode from the row of tabs at the top — six are available: "X% of Y", "X is what % of Y", "% change", "Add X% to Y", "Subtract X% from Y", and "Reverse %" (X is N% — find the whole). Each mode reshapes the two input fields to match its question.

  2. Enter the two numbers in the labelled fields. Both accept decimals, negatives, thousands separators, and stray spaces — they're parsed leniently. Leave a field blank and the answer falls back to "—".

  3. Read the answer in the highlighted card under the inputs. Percentages get a trailing "%"; raw-number modes (like "X% of Y" or "Add X% to Y") do not assume any currency. The explicit formula with your numbers substituted in is shown beneath the answer so you can verify the math by hand.

  4. Switch modes freely — each one remembers its own inputs, so you can flip between "X% of Y" and "X is what % of Y" without re-typing numbers. The selected mode persists across refreshes via your browser's local storage.

  5. If you hit "—" instead of a number, the explanation directly under the answer tells you why — most often it's a divide-by-zero (X = 0 for % change, Y = 0 for "is what % of", or N = 0 in reverse mode). Click Reset to wipe everything back to defaults.

Frequently asked questions

What's the difference between a percentage and a percentage point?
They sound interchangeable but they aren't, and the confusion shows up constantly in news headlines. A percentage point is the arithmetic difference between two percentages — if a central bank rate moves from 5% to 7%, that is a 2 percentage point increase. A percentage is the proportional change — going from 5% to 7% is also a 40% increase (because 2 ÷ 5 = 0.40). "Rates rose 2%" and "rates rose 2 percentage points" describe two completely different moves; the first means 5% → 5.1%, the second means 5% → 7%. Always check which one is meant. This calculator's "% change" mode computes the proportional kind: feed it 5 and 7 and you get +40%.
Why doesn't a 20% increase followed by a 20% decrease return to the original number?
Because the second percentage is applied to a different base. Start with 100, add 20% → 100 × 1.20 = 120. Now subtract 20% — but 20% of WHAT? Subtraction applies to the new value of 120, not the original 100. So 120 × 0.80 = 96, not 100. The 20% down was 20% of 120 (which is 24), not 20% of 100 (which is 20). To get back to exactly 100 from 120 you'd need a decrease of 16.67% (because 100 ÷ 120 = 0.8333 = 1 − 0.1667). This is why "investment lost 50% then gained 50%" leaves you with 75 cents on the dollar — you need a 100% gain to recover from a 50% loss, not 50%.
How do I use this for tips, sales tax, or markup?
Use the "Add X% to Y" mode. For a 10% tip on a 1,250 LKR meal: X = 10, Y = 1,250, answer = 1,375. The formula shown is 1,375 = 1,250 × (1 + 10 ÷ 100), which is the same math a server would do mentally. For US sales tax, plug the local rate (Y = pre-tax price, X = tax %) and you get the till total. For retail markup on a wholesale cost, plug the cost as Y and the markup as X — "30% markup on a 400 LKR wholesale unit" → answer 520 LKR retail. Note: markup (% of cost) and margin (% of sale price) are different — if your business uses margin, the inverse calculation is what you want; "Reverse %" mode handles it ("104 LKR margin is 30% of what sale price?" → 346.67).
How do I apply a discount, and how do I work backwards from the discounted price?
For the discount itself, use "Subtract X% from Y". A 25% discount off a 12,000 LKR jacket: X = 25, Y = 12,000, answer = 9,000 LKR (formula: 9,000 = 12,000 × (1 − 25 ÷ 100)). To go the other way — you see a sticker that says "9,000 LKR, was 12,000 LKR" and want to know the discount percentage — use "% change" mode with X = 12,000 (original) and Y = 9,000 (sale): the answer is −25%, the negative sign confirming it's a drop. The third common case is reverse engineering the original price from the sale price: if 9,000 LKR is the 75%-of-original sale price (i.e. 25% off), use "Reverse %" mode with X = 9,000 and N = 75 → answer 12,000.
I keep mixing up "X% of Y" and "X is what % of Y" — how do I tell them apart?
Look at which value is the unknown. "X% of Y" asks you to multiply a known percentage (X) by a known total (Y) to find the part — "15% of 200 is 30". "X is what % of Y" asks the inverse: you know the part (X = 30) and the whole (Y = 200) and want the percentage (15%). One way to remember: if both numbers in your head are "normal-sized" (like 30 and 200), you're probably asking "what % of" — mode 2. If one of your numbers is a percentage already (like 15%) and the other is a total, you're asking "X% of" — mode 1. The tab labels in this tool are written exactly the way the question is usually phrased, so when you read the question out loud the matching tab should be obvious.

Need AI implementation? Book a call.

We’re the studio behind these tools — eight productized AI engagements for SMBs (leads, automation, receptionist, support, content, more). If you want something built for production, we’ll quote it.

Schedule A Call