CALCULATORS
Percentage Calculator
Calculate a percentage of a number, the percentage one value represents of another, or the percentage increase or decrease between two values. Every result includes the formula and the numbers used, and all calculations stay in your browser.
How the four percentage calculations work
Each mode uses a standard percentage formula. The result area repeats the formula with your own numbers so you can check the arithmetic.
- What is X% of Y?
(X ÷ 100) × Y - X is what percentage of Y?
(X ÷ Y) × 100 - Percentage increase
((new − original) ÷ original) × 100 - Percentage decrease
((original − new) ÷ original) × 100
For example, 20% of 150 is 30 because (20 ÷ 100) × 150 = 30. 30 is 20% of 150 because (30 ÷ 150) × 100 = 20. Moving from 100 to 125 is a 25% increase, and moving from 100 to 75 is a 25% decrease.
Decimals, negative numbers, zero, and precision
Inputs accept signed whole numbers, decimals, and scientific notation such as 1.5e3. Digit separators and hexadecimal notation are rejected rather than guessed at. The calculator keeps double-precision JavaScript numbers and displays up to 15 significant digits, trimming binary floating-point noise such as 20.000000000000004 while preserving legitimate decimals.
A percentage of a number can be zero. A division-based mode cannot use zero where its formula divides: X is what percentage of Y? rejects a total of zero, and the increase and decrease modes reject an original value of zero. The tool shows an explicit error instead of displaying Infinity, NaN, or a misleading result.
Increase and decrease results can be negative. In the increase mode, a negative result means the new value is lower than the original; in the decrease mode, a negative result means the new value is higher. For a negative original value, the standard formula is still applied, but the direction can be counterintuitive.
Results are not rounded for currency or accounting. If you need fixed decimal places, round the displayed result yourself. All calculations run in this browser; the numbers are not sent to a RandomTools application server or saved between visits.
Percentage calculator FAQ
How do I calculate a percentage of a number?
Divide the percentage by 100 and multiply by the number. The random number generator can create test values if you want to try several examples.
Why does a percentage increase show a negative number?
The formula measures change from the original value. When the new value is lower, the increase is negative; the same change can be described as a positive percentage decrease. Switch modes if you want the decrease reported as a positive number.
Can I use the result in another tool?
Copy the result from the result area. The random list generator is useful if you need to shuffle or pick from several calculated values, and All Tools lists the other browser-based utilities.
Does the calculator send my numbers anywhere?
No. The calculation runs locally in this page. The only external script is the advertising tag described in the privacy policy.
Last updated: