Percentage Calculator: Percent of a Number
A percentage calculator: of a number, as a share of a total, or back to the whole from a part, with the formula shown.
Answer
Formula with your numbers
200 × 15 ÷ 100 = 30
How to use the Percentage Calculator
- Pick the question you want to answer: What is X% of Y, X is what % of Y, or X is Y% of what.
- Enter the two numbers. The field labels change to match the question you picked.
- Read the answer and the plain-English sentence in the result panel. It updates as you type.
- Check the formula line under the answer, which repeats the calculation with your own numbers.
Formula
Part = Whole × P ÷ 100 · P = Part ÷ Whole × 100 · Whole = Part × 100 ÷ P
Where:
- P
- The percentage, written as a plain number (15 for 15%)
- Part
- The share of the whole that the percentage describes (the X in “X is what % of Y”)
- Whole
- The total or base amount the percentage is taken of (the Y in “X% of Y”)
All three formulas are rearrangements of one relationship: Part ÷ Whole = P ÷ 100. A percentage of 0 or a whole of 0 cannot be divided by, so those cases show a message instead of a result.
Worked example
Your restaurant bill is $68 and you want to leave an 18% tip. How much is the tip?
- This is a “What is X% of Y” question: X = 18 and Y = $68.
- Multiply the bill by the percentage: 68 × 18 = 1,224.
- Divide by 100: 1,224 ÷ 100 = 12.24.
- Check it the other way: 12.24 ÷ 68 × 100 = 18%.
An 18% tip on a $68 bill is $12.24, making the total $80.24.
How to calculate a percentage of a number
A percentage is a fraction with 100 as the bottom number. The % sign means "divided by 100," so 15% is 15/100 or 0.15. To find a percentage of a number, multiply the number by the percentage and divide by 100. That is the default "What is X% of Y" mode above.
Round percentages rarely need a tool. The table gives the shortcut for each one, applied to 80.
| Percentage | Shortcut | Of 80 |
|---|---|---|
| 1% | Move the decimal point two places left | 0.8 |
| 5% | Half of 10% | 4 |
| 10% | Move the decimal point one place left | 8 |
| 20% | Divide by 5 | 16 |
| 25% | Divide by 4 | 20 |
| 50% | Halve it | 40 |
| 80% | Take 20% away | 64 |
Other values build from these: 15% is 10% plus 5%. Swapping the two numbers also helps, because X% of Y equals Y% of X. So 16% of 25 is the same as 25% of 16, which is 4.
X is what percent of Y: the percentage of a total
When you know a part and the total, divide the part by the total and multiply by 100. Marks are the classic case: 45 marks obtained out of 60 is 45 ÷ 60 × 100 = 75%.
Here is a worked example. A laptop costs $1,550 and you have saved $1,240. Choose "X is what % of Y," then enter 1,240 as the value and 1,550 as the total.
- Divide the part by the total: 1,240 ÷ 1,550 = 0.8.
- Multiply by 100: 0.8 × 100 = 80.
- You have saved 80% of the price, so 20% is still to go.
The missing amount is a "What is X% of Y" question: 1,550 × 20 ÷ 100 = $310. As a check, $1,240 + $310 = $1,550.
This mode also answers one reading of "the percentage between two numbers": how large one is as a share of the other. If you want to know how far a value rose or fell, that is a different formula, and the percentage change calculator handles it.
Finding the whole from a part and its percent
Sometimes the total is the unknown. A sticker says "You save $48, that is 60% off." What was the original price? Pick "X is Y% of what" and enter 48 and 60. The part is multiplied by 100 and divided by the percentage: 48 × 100 ÷ 60 = $80. You pay $80 − $48 = $32.
The same mode recovers a pre-tax price from a tax amount at any sales tax, VAT or GST rate.
Not sure which mode fits? The number after the word "of" is nearly always the whole, and the number with the % sign is the percentage. Whatever is left is the part.
Percentage of a number in Excel and Google Sheets
All three modes rearrange one relationship, Part ÷ Whole = P ÷ 100, so they carry over directly to spreadsheet formulas. Put the two inputs in cells A1 and B1:
| Question | A1 | B1 | Formula | Result |
|---|---|---|---|---|
| What is X% of Y | 15 | 200 | =B1*A1/100 | 30 |
| X is what % of Y | 30 | 200 | =A1/B1*100 | 15 |
| X is Y% of what | 30 | 15 | =A1*100/B1 | 200 |
One catch: a cell formatted as a percentage stores 15% as 0.15. If you typed the percentage that way, drop the /100 or *100 from the formulas above.
Common mistakes with percentages
- Taking the percentage of the wrong number. "60% off" is 60% of the original price, not of the sale price. Always ask: percent of what?
- Adding percentages that apply one after another. A 20% discount followed by another 10% off is not 30% off. You pay 0.8 × 0.9 = 0.72 of the original, which is 28% off in total.
- Undoing a rise by subtracting the same percentage. A $100 item that rises 25% costs $125, and 25% off $125 is $93.75, not $100.
- Confusing percent with percentage points. A rate that moves from 4% to 5% has gone up by one percentage point but by 25% in relative terms. Finance also uses basis points (100 basis points make one percentage point) and per mille (‰), which means per thousand, so 1% is 10‰.
Assumptions and precision
There are three modes only. The tool does not raise or lower a number by a percentage in one step: find the percentage first, then add or subtract it yourself.
Arithmetic is done in decimals to 40 significant digits, so 10% of 3 shows as exactly 0.3. Answers show up to 10 decimal places, and repeating results such as 1 ÷ 3 × 100 = 33.333…% are rounded only for display. A total of 0 in "X is what % of Y" and a percentage of 0 in "X is Y% of what" would mean dividing by zero, so a message appears instead of a number.
Frequently asked questions
How do I calculate a percentage of a number?
Multiply the number by the percentage, then divide by 100. For example, 15% of 200 is 200 × 15 ÷ 100 = 30, and 20 percent of 50 is 50 × 20 ÷ 100 = 10. You can also convert the percentage to a decimal first (15% = 0.15) and multiply: 200 × 0.15 = 30.
What percentage is one number of another?
Divide the part by the whole and multiply by 100. If you scored 45 out of 60 on a test, 45 ÷ 60 × 100 = 75, so you scored 75%. In the same way, 3 is 60% of 5 because 3 ÷ 5 × 100 = 60. Choose “X is what % of Y” above to do this automatically.
How do I find the original number from a percentage?
Divide the part by the percentage and multiply by 100. If $18 is 24% of a budget, the budget is 18 × 100 ÷ 24 = $75. This is the “X is Y% of what” mode, sometimes called a reverse percentage. Check it by going forward: 24% of $75 is $18.
How do I add or remove a percentage such as a tax or tip?
Work out the percentage with “What is X% of Y”, then add it to the original or subtract it yourself: $68 plus an 18% tip is 68 + 12.24 = $80.24. Sales tax, VAT and GST work the same way using your local rate. To measure the rise or fall between two amounts, use the percentage change calculator.
Why does adding then removing the same percentage not return the original number?
Because the two percentages are taken of different bases. A $100 price that rises 25% becomes $125, but 25% off $125 removes $31.25 and leaves $93.75, not $100. The cut that undoes a 25% rise is 20%, since 20% of $125 is $25. To recover the starting figure, use “X is Y% of what”: $125 is 125% of $100.
Can a percentage be more than 100 or negative?
Yes. A percentage above 100 means more than the whole: 150% of 40 is 60. Negative percentages and negative numbers follow the normal rules of multiplication and division, so −10% of 200 is −20.
Related calculators
- Percentage Change CalculatorA percentage change calculator between two numbers: the percent increase or decrease from old to new, or the percentage difference.
- Fraction CalculatorA fraction calculator with steps: add, subtract, multiply or divide two fractions or mixed numbers and follow every line of the working.
- Average CalculatorAn average calculator of numbers in any list: paste or type them to get the mean, median, mode and range in one step.
- Basic CalculatorA free basic calculator with history: your last 20 results are saved, with brackets, a percent key and keyboard entry.
Last updated: