Percent-of, part-of-a-number, percent change - plus the one nobody else offers: reversing from a discounted price back to the original. Four modes on one page, and every answer comes with a line of math you can read out loud.
X is what percent of Y?e.g. scored 17 out of 20 - what's that in percent
Everything you type stays in this browser - zero uploads, no account, no network requests at all, and the numbers you enter are never stored anywhere. Only your last-used mode is remembered on this device and disappears when you switch devices or clear site data. Use "Clear my data" in the footer to remove it.
How to use it
From blank page to a copyable answer in three moves.
1
Pick a mode
Four index tabs on top of the ledger: 01 percent-of, 02 part of a number, 03 percent change, 04 reverse. Not sure which? Read the question line under the tabs - when it matches the question in your head, you're on the right tab. Links can jump straight in: ?mode=rev opens the Reverse page directly.
2
Type two numbers
Answers update as you type - there is no calculate button to hunt for. Decimals go straight in; negatives via the ± button or a typed minus sign; common fractions (½, ¾) fill in with one tap below. While input is incomplete the result line just shows a dash - no guessing, no flashing errors.
3
Read the math, copy, leave
The tally line gives you thousands-separated results (1,250,000 reads itself), and the line underneath is the full worked solution - "400 ÷ 500 × 100 = 80%". Copy takes the value and the math together, ready to paste into homework checks or expense reports.
Facts and limits
This table tells it straight: what goes in, what comes out, and what the tool won't pretend to do.
Input
Numbers - decimals (3.5, 0.125) and negatives (± button or typed minus sign) both welcome; common fractions (1/2, 3/4) have one-tap shortcuts that convert to decimal before filling in; invalid characters are rejected at the field, never computed
Output
A percentage or a plain number depending on the mode, thousands-separated (1,250,000); 6 decimal places by default, rounded half-up; every result ships with its full line of math, e.g. "400 ÷ 500 × 100 = 80%"
Defaults
Starting mode: percent of; sample values (80 and 100) pre-filled for a first-run demo; modes are link-addressable via ?mode=ratio / part / change / rev; your last-used mode is kept in localStorage (key y9314:percent-calculator:v1 - not written on first load, only when you switch)
Processing
Runs locally in your browser with native JavaScript arithmetic - results as you type, no buttons, no submissions; nothing is uploaded, no account, zero network requests; the numbers you type are neither stored nor collected
Limits
None (pure calculation - no file uploads, no quantity caps); numeric range bounded by double-precision floats (about ±1.8 × 10³⁰⁸), beyond which you get an overflow notice instead of a fake answer
Known edges
A zero denominator gets a plain "cannot divide by zero" warning, never a silent wrong answer; repeating decimals (1 ÷ 3) round to 6 places; float tails (the 0.1 + 0.2 family) are cleaned before display, and any rare remaining noise sits past the 12th decimal - irrelevant in practice; intermediate numbers in the math line display as entered, results per the rounding rules above
FAQ
Why does my answer come out as 33.33333…?
Because the true answer is a repeating decimal (1 ÷ 3, for instance) - no calculator can write it out fully. This one rounds to 6 decimal places by default, which is more than most real-life situations need. Rounding, never silent truncation: the last digit follows standard round-half-up, so what you see is the honest answer to 6 places.
If a price drops from $120 to $90, why is that 25% off instead of 30%?
Percent change always divides by the original number (120), never the new one. 120 − 90 = 30, and 30 ÷ 120 = 25%, so the price fell 25%. Dividing by 90 instead gives 33.3%, which answers a different question (what fraction of the new price was removed). Sales copy loves that confusion. The math line shown under every result makes the denominator explicit, so you can catch it at a glance.
How do I find the original price after a discount?
A 20% discount means you paid 80% of the original, so divide backwards: 400 ÷ 0.8 = 500. Switch to the Reverse mode, enter 80 as the result-is-percent and 400 as the after-discount value - the tool lays out the full line. And no, adding 20% back onto 400 does not work: increasing and discounting are not mirror operations.
Why does 0.1 + 0.2 not equal 0.3 in calculators?
Not a bug in this tool - it is how every computer stores decimals. Numbers live in binary, where 0.1 and 0.2 each carry a tiny error, and adding them yields 0.30000000000000004. This calculator cleans the display (rounding through a 10-to-the-12th fix before showing anything), so what you see is already tidy. If a long tail ever appears, the noise sits past the 12th decimal place - irrelevant for budgets, grades, or tips.
Is anything I type sent to a server?
No. Every calculation runs inside this device's browser - zero network requests, no account, and the numbers you type are neither stored nor collected anywhere. The only thing kept locally is which mode you used last, which vanishes when you switch devices or clear site data. The Clear my data link in the footer removes even that.
Does it handle decimals and negative numbers?
Both. Decimals go straight in (3.5, 0.125, whatever). Negatives can be typed with a minus sign or flipped with the ± button beside each field. Losses, drops and negative growth all lean on negatives: in the change mode, going from 500 to 400 correctly reports −20%. The one thing refused is dividing by zero - a zero denominator gets a plain-language warning instead of a silently wrong answer.