How to Calculate a Percentage of a Number

A percentage is a way of writing a fraction with a denominator of 100. “15 percent” means 15 parts out of 100, which is the same as the decimal 0.15. To find a percentage of a number, convert the percent to that decimal and multiply by the base. The percentage calculator on this site uses exactly that formula: Result = (Percentage / 100) × Number.

The arithmetic is short. The mistakes are usually about what the words mean: mixing up “15% of 200” with “15 is what percent of 200,” rounding a decimal too early, or assuming a result cannot exceed the base. This article stays with the first question: what is P% of N?

What percentages represent

Percentages compare a piece to a whole by stretching or shrinking the whole until it has 100 equal parts, then counting how many of those parts the piece occupies. If 15 out of 100 squares on a grid are filled, that is 15%. The same ratio applied to 200 is 30, because 15% of 200 is 30. The grid on the homepage visualization is limited to 0–100% as a picture of “parts of a hundred.” The calculator itself is not limited to that range.

Percent as parts per hundred

The word percent is the instruction “per hundred.” Writing 8% is writing 8/100. Writing 0.8% is writing 0.8/100, which is 0.008 as a decimal. Writing 250% is writing 250/100, which is 2.5. Nothing in the notation forbids those last two values. They are still parts per hundred; there are simply fewer or more than 100 parts in the comparison.

Converting percentages to decimals

Divide the percentage by 100. That is the only conversion this calculator uses.

15 / 100 = 0.15
0.5 / 100 = 0.005
150 / 100 = 1.5
−10 / 100 = −0.10

You can also move the decimal point two places left: 15 becomes 0.15. Both descriptions are the same division. The site does not round this step before multiplying. It uses JavaScript Number, which is binary floating point, not arbitrary-precision decimal arithmetic. For ordinary shopping-sized inputs the difference is invisible. For huge magnitudes, precision can drift, which is why the tools reject values beyond a documented range.

Multiplying by the base value

After the division, multiply by N. Worked example:

What is 15% of 200?
Step 1: 15 / 100 = 0.15
Step 2: 0.15 × 200 = 30
Step 3: the result is 30.

Those three steps are generated from the current inputs on the calculator, not from a frozen caption. If you change 15 to 20, step 1 becomes 0.20 and the product becomes 40.

A second example: 20% of 150. 20 / 100 = 0.20, and 0.20 × 150 = 30. Same product as 15% of 200, different question.

Percentages below 1%

Rates such as 0.25% appear in interest language and in very small shares of a large total. 0.25% of 800 is 0.25 / 100 × 800 = 2. The calculator accepts decimal percentages. Display rounding (you can choose 0 through 6 decimal places) happens after the product is computed. If you display 0 decimals, a true result of 0.4 will show as 0; the underlying value is unchanged until you look at more places.

Percentages above 100%

150% of 200 is 1.5 × 200 = 300. That is larger than the base, which is correct: 150 parts per hundred is one and a half times the whole. The visualization grid does not try to draw 150 filled squares out of 100. Use the numeric calculator for rates above 100%.

Negative percentages

A negative percentage reverses the sign of the product. −15% of 200 is −30. 15% of −200 is also −30. −15% of −200 is +30, because a negative rate applied to a negative base is positive. The calculator allows this because the formula does. Whether a negative rate makes sense depends on the story you are telling, not on the algebra.

Decimal inputs

Bases can be decimal: 12.5% of 40.8 is 0.125 × 40.8 = 5.1. Trailing letters such as “12abc” are rejected rather than parsed as 12. A lone minus or a trailing decimal point while you type shows a waiting state instead of pretending the value is zero.

Using a percentage calculator

Enter P and N on the percentage of a number page. Calculate, or let a valid pair update live. Swap exchanges the two boxes and recomputes; it does not keep the old answer. Copy Result writes text of the form “15% of 200 = 30” (with your current display rounding). Clear empties the fields.

Checking the answer manually

Pick easy numbers first. 10% of 90 should be 9. 50% of 18 should be 9. 100% of 7 should be 7. 0% of 7 should be 0. Then try 15% of 200 and confirm 30. If the page disagrees with that arithmetic, trust the arithmetic and look at whether a display rounding setting is hiding places. Related reading: percentage increase and decrease uses a different formula with the same idea of “per hundred.”

FAQ

Is 15% of 200 the same as 200% of 15?

Yes, because multiplication commutes: (15/100)×200 = (200/100)×15. That is a special pair, not a general rule for every two numbers you might swap.

Can the result be larger than the number?

Yes, whenever the percentage is greater than 100.

Why did “12abc” fail?

The parser requires a complete number with no extra characters. Silently taking 12 would hide a typing error.