Percentage calculator

Pick one of seven percentage questions, type two numbers and read the answer. Under the result the page writes the sum with your own numbers and says how it read each one, so a typo or a comma in the wrong place shows up at once. Everything is calculated in this browser.

Percentage calculator

How to calculate a percentage

  1. Choose your question under What do you want to know?, for example What is X% of Y? or Percent change from X to Y.
  2. Type your numbers into the two fields. The labels change with the question, so X (from) and Y (to) appear for percent change.
  3. Read the Result. Percent change also shows the absolute change, and increase and decrease show the amount added or taken off.
  4. Check the line under the result. It starts with Read as X = and Y =, and ends with the sum.

The seven questions, with real answers

Typing 25 and 200 answers What is X% of Y? with 50. Switching to X is what percent of Y? keeps the numbers and gives 12.5 %. More results:

The sum under the result

For 25 and 200 the line reads Read as X = 25 and Y = 200: 25 ÷ 100 × 200 = 50. It is the formula for your question, with your numbers in it, so a missing zero shows before you copy the answer.

How the page reads your numbers

A point is always the decimal mark: 1.250 reads as 1.25, not one thousand two hundred fifty. A comma is a thousands mark when three digits follow it: 1,250 is 1,250. Any other lone comma is a decimal mark: 1,5 is 1.5, 1,2345 is 1.2345, and 0,500 is 0.5. When a number has both, the last one is the decimal mark, so 1.234,56 and 1,234.56 both give 1,234.56. Spaces, apostrophes and underscores between digits are ignored, and Arabic-Indic and Persian digits work.

What it cannot read safely gets Enter numbers only, for example 1250 or 12.5: 1,23,456, 1e3, 12%, $5, 1.2.3 and 1,2,3. Leave out the percent sign.

Percent change, difference and points

Use percent change when one number came before the other. It divides the change by the size of the start, even a negative one: -50 to -25 gave 50 %, and -50 to 50 gave 200 %. Percent difference has no before and after. It divides the gap by the mean of the two numbers, so it is the same both ways: 22.2222222222 % for 80 and 100, where change is 25 %.

The page does not do percentage points or chains. 10 % to 12 % is 2 points, and the change question gave 20 % for 10 to 12, the relative change. A 10 % rise then a 10 % fall does not return to the start: 110 decreased by 10 % gave 99.

Rounding, big numbers and a limit

Results are rounded to 12 significant digits to remove binary noise. 0.1 % of 3 showed 0.003, and 0.1 increased by 200 % showed 0.3. 1 is what percent of 3 showed 33.3333333333 %.

The display stops at 10 decimals, which cuts tiny results. We ran 196 sums against Python's exact fractions. Six divided by zero and the page refused all six. Of the other 190, 184 matched. The six that did not were all below 0.001: 7 is what percent of 999,999 showed 0.0007000007, and the 12-digit answer is 0.000700000700001. An input of 0.000000000001 was read as 0.

Browser numbers hold about 17 digits. A 22-digit input was read as 1,234,567,890,123,456,800,000, and the answer for it came out as 1,234,567,890,120,000,000,000. A 300-digit number worked and a 400-digit number was refused.

What the page refuses

It will not divide by zero: X is what percent of Y with Y at 0, X is Y% of what with Y at 0, percent change from 0, and percent difference of 5 and -5 or of 0 and 0 all gave This cannot be calculated because it would divide by zero. If one field is empty, nothing is shown. Odd but correct: increasing -40 by 100 % gave -80, and decreasing 100 by 150 % gave -50.

Where your numbers go

We blocked outside connections and typed two numbers that were unique values. Of 11 requests, 2 went to outside scripts (the Google ad script and tag), which we blocked, so we cannot say what they would send. No request carried a body or either number, and localStorage and sessionStorage held no keys.

Other tools

For interest and payments use the loan calculator, for a weight against a range the BMI calculator. The unit converter changes units, and the age calculator works on dates.

Typed text and how it was read

Each text was typed into X with Y at 1. Test runs of the page in headless Chromium 158.
You typeRead asNote
12501,250plain digits
1,2501,250comma, three digits after
1.2501.25a point is the decimal mark
1,51.5lone comma, not three digits
1 2501,250space ignored
1.234,561,234.56last mark is the decimal
٣٫٥3.5Arabic-Indic digits
-5-5minus sign kept
1,23,456refusedIndian grouping
12%refusedno percent sign

Prefer desktop software?

In Excel, =(B1-A1)/ABS(A1) gives percent change as a fraction once the cell is formatted as a percentage, and =A1*(1+B1) raises A1 by the percentage in B1. We did not run these.

Frequently asked questions

How do I calculate a percentage of a number?

Divide the percent by 100 and multiply by the number. 25 % of 200 is 25 ÷ 100 × 200 = 50.

How do I find a percent increase or decrease between two numbers?

Choose Percent change from X to Y. 80 to 100 gives 25 %, and 100 to 80 gives -20 %.

Why is percent difference not the same as percent change?

Percent difference divides by the mean of both numbers and has no direction. For 80 and 100 it is 22.2222222222 %, while change from 80 to 100 is 25 %.

What does X is Y% of what number mean?

It finds the whole when you know a part and its percent. 200 is 25 % of 800.

Is 1.250 one thousand two hundred fifty?

Not here. A point is the decimal mark, so 1.250 is read as 1.25. Type 1250 or 1,250 for one thousand two hundred fifty.

Is my data sent anywhere?

No. The sum runs in your browser. Our network test saw no request that carried either number.