What is a percentage calculator?
A percentage calculator answers the three percentage questions that come up in everyday life: what is X% of Y, what percentage is X of Y, and by what percentage did something change. Percentages are everywhere — a 20% discount on a shirt, a 12% rise in rent, 45 out of 60 marks in an exam — and this calculator handles all three without you having to remember which formula goes where.
The word percent means per hundred, so a percentage is just a way of saying how many parts out of a hundred something is. When a shop says 20% off, it means you pay 80 out of every 100 rupees of the marked price. When a student scores 45 out of 60, the percentage is 75%, which is a far easier number to compare with a friend who scored 80 out of 100. Percentages turn different totals into one common scale.
This calculator has three modes, one for each question. Pick “X% of Y” for discounts and shares, “X is what % of Y” for marks and proportions, and “Percentage change” for price rises, salary hikes, and growth. Type the two numbers and the answer appears at once. Everything runs in your browser, so nothing you type is sent anywhere.
How a percentage calculator works
Each mode uses a different formula, and the calculator picks the right one for you. For “X% of Y”, it multiplies X by Y and divides by 100. The default example on this page is 20% of 150, which is 20 × 150 ÷ 100 = 30. The difference shown, 120, is what is left after taking 20% away — the price after a 20% discount on a 150-rupee item, for example.
For “X is what % of Y”, it divides X by Y and multiplies by 100. Take 30 out of 150: 30 ÷ 150 × 100 = 20%. That is the same pair of numbers as the first example, read backwards — 30 is 20% of 150, and 30 out of 150 is 20%. Seeing both directions helps the idea click, because the two questions are really the same relationship viewed from opposite sides.
For percentage change, it subtracts the old value from the new one, divides by the old value, and multiplies by 100. Going from 120 to 150 is (150 − 120) ÷ 120 × 100 = 25%, a 25% increase. Going the other way, from 200 to 150, gives −25%, a 25% fall. The sign tells you the direction: positive means up, negative means down.
The percentage-change trap most people fall into
Percentage change is the input people get wrong most often, because the base matters. A price that rises 25% and then falls 25% does not come back to where it started. Start at 100 rupees: up 25% takes it to 125, then down 25% takes 25% of 125, which is 31.25, leaving 93.75. The two 25s look equal, but the second one acts on a bigger number, so you end up lower.
The same trap shows up in salary talks and investment returns. A 10% pay cut followed by a 10% rise leaves you about 1% below where you started, not level. A stock that falls 50% needs a 100% rise just to get back to its old price. Whenever someone quotes two percentages in a row, ask what each one is a percentage of — the base changes every time, and that changes the answer.
The calculator keeps you honest here because it always divides by the old value, the starting point. That is the rule: percentage change is always measured against where you began, never where you ended. If you swap the two numbers by mistake, the sign flips and the size changes, so check which box holds the old value before you trust the result.
A worked example: a shop discount and an exam score
Here are three real examples using the numbers on this page. First, a jacket marked 150 rupees with a 20% discount. The discount is 20% of 150 = 30 rupees, so you pay 150 − 30 = 120 rupees. The calculator shows 30 as the result and 120 as the difference — the price you actually hand over at the counter.
Second, an exam. You scored 30 marks out of 150 in a practice test — not a great paper, but the maths is clean. Switch the mode to “X is what % of Y”, enter 30 and 150, and the answer is 20%. If the paper had been out of 100, the same 30 marks would have been 30%, which shows why percentages are fairer than raw marks: they put different totals on the same scale.
Third, a price rise. Your monthly grocery bill went from 120 rupees a day to 150 rupees a day. In change mode, that is (150 − 120) ÷ 120 × 100 = 25%. A 25% rise sounds steep, and it is — but now you know the exact number instead of a vague feeling that things got more expensive. That exact number is what a percentage calculator is for.
Where percentages run your money
Money is where percentages do the most work. Interest on a loan or a deposit is a percentage of the principal, tax is a percentage of income, and a tip is a percentage of the bill. A compound interest calculator shows what a percentage rate does over years, and an EMI calculator turns a percentage interest rate into a monthly payment you can actually plan around.
Shopping is the other big one. A 20% discount, a 5% cashback, and 18% GST can all apply to the same purchase, and each one acts on a different base. GST is charged on the discounted price, not the marked price, so the order matters. Working each percentage out on its own, with the right base, stops the small errors that add up to real money at the till.
Marks, health, and sport use percentages too. Exam results, body fat, win rates, and poll results are all percentages because they let you compare things that started at different sizes. A bowler who takes 30 wickets in 150 overs and one who takes 20 in 100 have the same strike rate in percentage terms — 20% of overs producing a wicket — even though the raw counts look different. For a shop owner, the percentage that matters most is the margin — a profit margin calculator turns cost and selling price into the margin in one step.
Percentage calculator vs doing it by hand
You can do most percentages in your head with two tricks. Ten percent of anything is the number divided by 10, so 10% of 150 is 15. From there, 20% is double that (30), 5% is half of it (7.5), and 25% is a quarter of the whole (37.5). For “X as % of Y”, simplify the fraction first: 30 out of 150 is 1 out of 5, which is 20%. These shortcuts are worth knowing, and they double as a way to check the calculator.
The calculator earns its keep on the awkward numbers. What is 17.5% of 2,340? What percentage is 1,847 of 3,920? Doing those by hand means long division and a high chance of a slipped digit. The calculator gives the exact answer in a second, and the difference row tells you what is left over — the part people usually forget to work out when they do it mentally.
A average calculator pairs well with this one when you are working with marks or scores across several tests: average the raw scores first, then turn the average into a percentage. And if the numbers involve a ratio rather than a share of a hundred, a ratio calculator keeps the proportions straight. Percentages, averages, and ratios are three views of the same idea — parts of a whole.
Common percentage mistakes
The first mistake is adding percentages that have different bases. A 10% discount plus a 5% cashback is not 15% off — the cashback applies to the discounted price, so the real saving is 14.5%. Adding percentages only works when they share the same base, which in real life they almost never do. Work each one out in turn instead.
The second mistake is confusing percentage points with percent. If an interest rate rises from 5% to 7%, that is a rise of 2 percentage points, but a 40% rise in the rate itself (2 ÷ 5 × 100). News reports mix these up constantly, and the difference matters: 2 points sounds small, 40% sounds huge, and both describe the same change.
The third mistake is reading “X% more” as “X% of”. Getting 20% more marks than a friend who scored 100 means 120, not 20. And “50% off” means you pay half, while “50% more” means you pay half as much again. The word after the number — off, more, less, of — changes the maths completely, so read it before you calculate.
The fourth mistake is rounding too early. If you round 16.67% to 17% and then use 17% in the next step, the error carries forward. Keep one or two decimals through the working and round only the final answer. This calculator shows two decimals for exactly that reason.
How to use this percentage calculator
Using it takes seconds. Pick the calculation type at the top — “X% of Y”, “X is what % of Y”, or “Percentage change”. Then type the first number in the X box and the second in the Y box. For a discount, X is the percentage and Y is the price; for marks, X is your score and Y is the total; for a change, X is the old value and Y is the new one.
The result updates live as you type, with the difference shown underneath. A negative result in change mode means a fall, not an error — a price drop or a shrinking score shows up with a minus sign, which is the correct answer. If you see a result that looks wrong, check the mode first: most wrong answers come from being in “X% of Y” when the question was really “X is what % of Y”.
Everything runs in your browser. There is no account, no form, and no data sent anywhere — the numbers you type never leave your device. Use it as often as you like, for shopping, marks, bills, or salary maths, and check the answer with the mental tricks above whenever the number matters. Two ways of getting the same answer is the best protection against a typo.