← All blog posts

percentage calculator — the complete guide

WhiteUI · A plain-English guide to the Percentage Calculator

This is everything about the Percentage Calculator in one place: what it does, the three formulas it runs on, worked examples for each mode, and the mistakes that trip people up. If you only read one guide on this tool, read this one.

The three things it can do

  • X% of Y — find a share of a number, like a discount or a tip. 30% of 400 is 120.
  • X is what % of Y — turn a part and a whole into a percentage, like marks out of a total. 90 out of 120 is 75%.
  • % change from X to Y — measure a rise or fall, like a price going from 40 to 50, which is a 25% increase.

The formulas

X% of Y = X ÷ 100 × Y
X is what % of Y = X ÷ Y × 100
% change = (Y − X) ÷ X × 100

Worked examples

Thirty percent of 400: 30 ÷ 100 × 400 = 120. Ninety out of 120: 90 ÷ 120 × 100 = 75%. A change from 40 to 50: (50 − 40) ÷ 40 × 100 = 25% increase.

30% of 400 = 120
90 out of 120 = 75%
Change from 40 to 50 = 25% increase

At a glance

30% of 400 = 120120 — the part280 — the restThree tenths of the bar is filled.

Thirty percent of 400 is 120.

The mistake to avoid

Mixing up the two numbers. In “90 out of 120”, 120 is the whole — it goes underneath in the division. Swap them and you get 120 ÷ 90 × 100 = 133.33%, which answers a different question. Before you type, ask: which number is the whole?

Which of the three modes do you actually need?

The calculator has three modes because percentage questions come in three shapes, and the fastest way to pick is to look at what you already know. If you know the percentage and the number — a discount, a tax rate, a tip — you need “X% of Y”. Thirty percent of a ₹2,500 order is ₹750, and that is the same shape as any discount or GST figure. If you know the part and the whole — marks out of a total, or how much of a target you have reached — you need “X is what % of Y”: 45 out of 300 is 15%, because 45 ÷ 300 × 100 = 15. If you know a before and an after — a price that moved, a salary that changed — you need “% change”: a price falling from ₹250 to ₹200 is a 20% fall, because (200 − 250) ÷ 250 × 100 = −20%. The sign tells you the direction, so a negative answer is not an error. Before you type, name the shape out loud — “I know the percentage and the number” — and the mode picks itself. Guessing the mode and hoping is how most wrong answers happen.

What to check before you trust the answer

Four checks catch the errors this guide’s readers make most. First, the whole goes underneath in the division: in “90 out of 120”, 120 is the whole, and swapping the two gives 133.33%, which answers a question nobody asked. Second, check the sign of a percentage change: a price that rose from ₹60 to ₹75 went up 25%, because (75 − 60) ÷ 60 × 100 = 25, and a fall must show as a negative number. Third, check the tax shape: 5% GST on a ₹2,000 item is ₹100 of tax, so the total is ₹2,100 — if your answer is ₹100, that is the tax, not the total, and the two get confused more often than you would think. Fourth, re-read the two numbers you typed, digit by digit. A calculator never misreads its own input, so when the answer is wrong, the input almost always is. These checks take seconds, and they are the difference between an answer you can act on and one you have to redo.

Frequently asked questions

What can the Percentage Calculator do?

Three things: a percentage of a number, one number as a percentage of another, and percentage change.

What is 30% of 400?

120. 30 ÷ 100 × 400 = 120.

What is 90 as a percentage of 120?

75%. 90 ÷ 120 × 100 = 75%.

What is the percentage change from 40 to 50?

A 25% increase. (50 − 40) ÷ 40 × 100 = 25%.

More guides on the Percentage Calculator

Try it yourself

Work out a percentage of a number, one number as a share of another, or a percentage change — free, in your browser.

Open the Percentage Calculator