Percentage Calculator
Find a percentage of a number, ratios, and percentage change.
This percentage calculator covers three common needs: a percentage of a number (what is X% of Y), a ratio (X is what percent of Y), and percentage change (how much did A change to B). Results update as you type and everything runs locally in your browser — handy for discounts, grade weighting, and data analysis.
Tool area
How to use
- Pick the calculation you need: percentage, ratio, or change.
- Enter the numbers in the matching fields.
- Results show instantly — no calculate button needed.
- Adjust the numbers anytime to see updated results.
Use cases
- Work out how much a discount saves you (for example 25% off).
- Find what percent a score is of the total.
- Calculate growth from one period to the next.
Content and verification review:
How to verify a Percentage Calculator result before relying on it
This section covers the three independent panels on Percentage Calculator, each with its own formula, and what happens at their respective zero-division edge cases.
Each panel’s default numbers are simple enough to check in your head
The first panel (“Percentage of a number”) defaults to 25% of 200 = 50. The second (“Ratio as percentage”) defaults to 30 out of 120 = 25%. The third (“Percentage change”) defaults to a change from 80 to 100 = 25% increase. The three panels do not share any state — editing one never changes the numbers or results shown in the others.
A zero denominator is caught explicitly, not shown as Infinity
In the ratio panel, set the whole/total field to 0: the result reads “Whole or original cannot be 0” rather than Infinity or NaN. In the change panel, set the starting value to 0: the same message appears, since a percentage change from a starting point of zero has no defined baseline. Both are intentional guards, not calculation failures.
Results are rounded to 4 decimal places with trailing zeros trimmed
All three panels round their output to 4 decimal places and drop unnecessary trailing zeros (25.0000 displays as 25, but 33.3333 stays as 33.3333) — this happens on every keystroke with no separate Calculate button. For a grade, an invoice, or another figure where the required decimal precision differs from this default, re-verify the number in a spreadsheet using the same formula rather than trusting this display precision as final.
Acceptance checklist
- The correct one of the three independent panels was actually used for the question being asked — their formulas are not interchangeable.
- A denominator or starting value of 0 producing “Whole or original cannot be 0” is recognized as expected behavior, not an error to work around.
- At least one result has been checked with a simple mental-math example (like 25% of 200) to confirm the right panel is answering the right question.
- If more or fewer decimal places than this tool’s default 4 are required, the number has been re-verified in a spreadsheet with the same formula.
FAQ
- How is "X% of Y" calculated?
- It equals Y × X ÷ 100. For example, 25% of 200 is 50.
- Which value is the base for percentage change?
- The original value (A) is the base: (B − A) ÷ A × 100. Positive means an increase, negative a decrease.
- Can I calculate change when the original is 0?
- No. Percentage change is undefined when the original value is 0, and the tool will flag it.
- Can I enter decimals?
- Yes, all three calculations support decimal input.
- Is my data uploaded?
- No, all calculations run locally in your browser.
Privacy & local processing
🔒 This tool runs entirely in your browser. No data is uploaded to any server.
All calculations run locally in your browser; the numbers you enter are not uploaded.
Trust & usage note
This tool runs mainly in your browser. Your input is not actively uploaded to a server. Avoid entering highly sensitive data. Results are for reference only.
Last updated:
Get updates
New tools and practical tips, straight to your inbox. No spam, unsubscribe anytime.