What the Percentage Calculator does
The Percentage Calculator answers the three questions that cover most everyday percentage problems. What is 20 percent of 150? 30 is what percent of 150? And how much did a value change, in percent, from 100 to 125? Each question has its own pair of boxes and its own live result, so you can use one row and ignore the others.
Every result is computed with plain arithmetic in your browser as you type. There is no submit button, no account and no server involved. Values are accepted as decimals, and the change calculation also accepts negative numbers.
The results are shown with your browser's number formatting and are rounded to three decimal places, so one third shows as 33.333 rather than a long string of digits. When a question has no answer, for example a share of a total that is zero, the result shows a dash instead of a number.
How to use it
Pick the row that matches your question
The first row finds a percentage of a number, the second finds what percent one number is of another, and the third measures the change from an old value to a new one.
Type the two numbers
Replace the example values with your own. Decimals such as 12.5 are fine, and the change row accepts negative old and new values.
Read the live result
The answer appears in the results strip under the questions as soon as both boxes contain numbers. A plus sign in front of a change means an increase; a minus sign means a decrease.
How each of the three percentage formulas works
Percent of a number multiplies the number by the percentage and divides by 100. For 20 percent of 150, that is 150 times 20 divided by 100, which gives 30.
Share of a total divides the part by the whole and multiplies by 100. If you scored 30 points out of 150, the tool divides 30 by 150 and multiplies by 100 to give 20 percent.
Percentage change subtracts the old value from the new value, divides by the old value, and multiplies by 100. Going from 100 to 125 is a change of 25 on a base of 100, so the result reads +25 percent. Going from 125 back to 100 is a change of minus 25 on a base of 125, which reads as a 20 percent decrease. The two directions are not symmetrical because each uses its own starting value as the base, a point the Wikipedia article on relative change explains in detail.
If the old value is negative, the tool divides by its absolute value, so a change from minus 50 to minus 25 is reported as an increase of 50 percent, matching the direction the number actually moved.
Percentage points, reverse percentages and other things this page does not do
A change from 10 percent to 15 percent is a rise of 5 percentage points but a 50 percent increase. The third row gives you the second figure; if you need percentage points, subtract the two rates yourself.
The tool does not reverse a percentage. To find the original amount when you know the final amount and the percentage that was added, divide the final amount by 1 plus the rate as a decimal: a price of 120 that already includes 20 percent came from 100. For discounts and tax specifically, the Discount Calculator and the Sales Tax Calculator on this site handle those cases directly.
Rounding and formatting of the results
Internally each answer is rounded to eight decimal places and then formatted with your browser's locale settings, which display at most three decimal places and add grouping separators. A visitor with English settings sees 1,234.568; one with German settings sees 1.234,568. Keep that in mind when pasting a result into a spreadsheet.
Because of the three-decimal display, a result such as 66.666666 appears as 66.667. If you need more precision for a chain of calculations, keep the exact fraction in your own notes and use the calculator as a check.
Limits to know before you rely on it
- Results display at most three decimal places; longer fractions are rounded on screen.
- Dividing by zero has no answer: a whole of 0 in the second row or an old value of 0 in the third row shows a dash.
- The calculator does not compound several percentages; apply them one after another and feed each result into the next step.
- Number formatting follows your browser locale, so the decimal separator may be a comma in some countries.
- An empty box counts as zero, so a half-filled row can show 0, a dash or a minus 100 percent change until you type the value.
Questions people ask about the Percentage Calculator
How do I work out 15 percent of a bill or price?
Use the first row. Type 15 in the percentage box and the price in the value box. The result is the 15 percent portion only, not the price with that amount added or removed. To add it, add the result to the price; to take it off, subtract it. The Discount Calculator does both steps for you.
What percentage is 45 out of 60?
Enter 45 as the part and 60 as the whole in the second row. The tool divides 45 by 60 and multiplies by 100, which gives 75 percent. The same row converts a test score, the completed share of a project or any fraction into a percentage.
Why is the percentage decrease smaller than the increase for the same two numbers?
Because each direction uses its own starting value as the base. Going from 80 to 100 is a rise of 20 on a base of 80, which is 25 percent; going from 100 back to 80 is a fall of 20 on a base of 100, which is 20 percent. The third row always divides by the old value you enter.
Why does the result show a dash instead of a number?
A dash means the calculation has no defined answer or one of the boxes does not contain a number. The usual causes are a whole of zero in the second row, an old value of zero in the third row, or a stray letter or symbol in a box. Remove currency signs and thousands separators before typing.
Can I type a percentage above 100 or a negative one?
Yes. The first row accepts any number, so 250 percent of 40 gives 100. Negative percentages are also accepted and simply give a negative result. The third row accepts negative old and new values and keeps the sign that reflects the real direction of change.
Does the page store the numbers I enter?
No. The values live only in the open page in your browser, and the arithmetic runs there too. Reloading the page returns the boxes to their example values. Nothing is uploaded, so you can use it for private financial figures.
Sources and further reading
- Wikipedia: Percentage, the definition of percent and the distinction between percentages and percentage points
- Wikipedia: Relative change and difference, the percentage change formula and why increases and decreases are not symmetrical
- MDN Web Docs: Number.prototype.toLocaleString, the browser formatting that rounds results to three decimal places by default