Percentage calculator

Find X% of Y, what percent one number is of another, percentage increase or decrease, percent difference, and the original before a percentage was added.

Drafted with AI writing toolsUpdated Checked examples: 5

%
Try

Result

Result
Result: 36
Maximum decimal places: 6; Nearest, ties away from zero
In words
15% of 240 is about 36.

15% means 15 out of every 100, so 15% of 240 is about 36.

36of 240
15%15.0%Rest85.0%
How it's calculated S
  1. Multiply by the fraction

    15100×240=36\frac{15}{100} \times 240 = 36

About the percentage calculator

A percentage is a number out of 100: 15% means 15/100 = 0.15, so 15% of 240 is 0.15 × 240 = 36. The calculator answers seven questions built on that rule: X% of Y, what percent X is of Y (X ÷ Y × 100), percent change ((Y − X) ÷ |X| × 100), percent difference (the absolute gap divided by the absolute average of the two numbers), the whole when a part and its percentage are known, and increasing or decreasing a number by a percentage.

Typical uses are discounts, sales tax, pay rises, exam marks and price changes. A price rising from 80 to 100 has gone up 25%, but falling back from 100 to 80 is a 20% drop, because each change is measured against its own starting value.

A negative percent change is a decrease. Percent change needs a non-zero starting value and percent difference a non-zero average; the calculator reports an error rather than dividing by zero.

How to calculate a percentage

To find a percentage of a number, divide the percentage by 100 and multiply: 20% of 85 is 0.2 × 85 = 17. To find what percent one number is of another, divide the part by the whole and multiply by 100: 17 out of 85 is 17 ÷ 85 × 100 = 20%.

Every percentage question links three numbers: a part, a whole and a rate. Knowing any two gives the third, so first decide which one the question is missing:

  • What is 20% of 85? asks for the part: 17.
  • 17 is what percent of 85? asks for the rate: 20%.
  • 17 is 20% of what? asks for the whole: 17 ÷ 0.2 = 85.

Percentage formulas at a glance

The % sign stands for the number 0.01 (NIST Guide to the SI, §7.10.2), so dividing by 100 turns a percentage into a decimal: 7.5% is 0.075. Each common question then has one formula:

QuestionFormulaExampleAnswer
What is X% of Y?X ÷ 100 × Y7.5% of 644.8
X is what percent of Y?X ÷ Y × 10027 out of 3675%
Y is X% of what?Y ÷ (X ÷ 100)54 is 45% of what?120
Increase Y by X%Y × (1 + X ÷ 100)250 plus 12%280
Decrease Y by X%Y × (1 − X ÷ 100)250 minus 12%220
Percent change from X to Y(Y − X) ÷ |X| × 100250 to 280+12%
Percent difference of X and Y|Y − X| ÷ |(X + Y) ÷ 2| × 100250 and 28011.32%

The last two rows use the same pair of numbers and disagree because they divide by different bases: 250 for the change, and the average, 265, for the difference. Percent change, often written Δ%, has a direction; percent difference has none.

A whole of 0, a starting value of 0 or two numbers that average 0 leave nothing to divide by, so those questions have no percentage answer.

Percentage increase: find the rate or the new amount

"Percentage increase" covers two questions. When you know the old and new amounts, the rate is (new − old) ÷ old × 100: from 80 to 100 is 20 ÷ 80 × 100 = 25%. When you know the rate, the new amount is old × (1 + rate ÷ 100): 80 × 1.25 = 100.

The calculator treats these as separate modes, and X and Y change meaning between them. Type rates as percentages, 25 for 25%, not 0.25:

What you knowModeInputsResult
Old amount 80, new amount 100% change from X to YFrom (X) = 80; To (Y) = 10025%
Starting amount 80, increase 25%Increase Y by X%X = 25; Y = 80100

A decrease uses the same formulas. From 100 to 80 is (80 − 100) ÷ 100 × 100 = −20%, and 100 decreased by 20% is 100 × 0.8 = 80. Percent difference treats 80 and 100 as equals: 20 ÷ 90 × 100 = 22.22%.

How to work out a percentage by hand

A student scores 43 out of 52 on a test. To express that as a percentage:

  1. Divide the part by the whole: 43 ÷ 52 = 0.826923…
  2. Multiply by 100: 82.6923…%.
  3. Round once, at the end: 82.7%.

Rounding in step 1 instead, to 0.83, reports 83%. That is 0.3 points too high, which can be enough to cross a grade boundary.

For mental arithmetic, build the rate out of easy pieces. Moving the decimal point one place left gives 10%, two places gives 1%, and half of 10% is 5%. A 15% tip on a bill of 84 is 8.40 (10%) plus 4.20 (5%), or 12.60.

The tip and bill split calculator does the same sum and divides it between people.

Fractions, decimals and percentages are the same number in different notation. Divide the numerator by the denominator to get the decimal, then multiply by 100 to get the percentage:

FractionDecimalPercentage
1/20.550%
1/30.333…33.33%
1/40.2525%
1/50.220%
1/60.1666…16.67%
1/80.12512.5%
3/80.37537.5%
2/30.666…66.67%
3/40.7575%
1/200.055%

Percent change and percentage points

When the two values are themselves percentages, there are two ways to state the change. A mortgage rate moving from 2.5% to 3.0% rose by 0.5 percentage points, by plain subtraction, and by 20% in relative terms (0.5 ÷ 2.5 × 100).

In basis points, where one basis point is 0.01 percentage point, the same move is 50 basis points.

A fall and a rise of the same percentage do not cancel, because the rise is measured from the lower value. The rise needed to recover from a fall of p% is p ÷ (100 − p) × 100:

FallRise needed to get back to the start
5%5.26%
10%11.11%
20%25%
25%33.33%
40%66.67%
50%100%
75%300%
90%900%

The gap widens quickly: an investment that loses half its value has to double to break even.

With a negative starting value, divide by its absolute value. From −50 to −25 is 25 ÷ 50 × 100 = +50%, a rise toward zero. A spreadsheet formula written as (new − old) ÷ old returns −50% for the same move, so check which convention a report uses.

From a starting value of 0 there is no percent change; report the absolute change instead.

Reverse percentages: finding the original value

To undo a percentage change, divide by the multiplier that produced it. After a 15% discount a jacket costs 68. The sale price is 85% of the original, so the original was 68 ÷ 0.85 = 80.

Adding 15% of 68 back on gives 68 × 1.15 = 78.20, which is 1.80 short, because the 15% was taken from 80, not from 68.

The same error appears when removing sales tax or VAT from a gross price; the GST, VAT and sales tax calculator handles that case directly.

Markup and margin are a reverse-percentage pair. An item that costs 80 and sells for 100 has a markup of 25% (20 ÷ 80) and a margin of 20% (20 ÷ 100): the same profit over different bases.

The discount and markup calculator converts between the two.

Common percentage mistakes

Successive discounts multiply. A 20% discount followed by a further 10% off leaves 0.80 × 0.90 = 0.72 of the price, a total discount of 28%, not 30%. The order of the two discounts makes no difference.

First discountSecond discountCombined discount
10%10%19%
20%10%28%
20%20%36%
25%25%43.75%
30%20%44%
50%20%60%
50%50%75%

"50% off, then an extra 50% off" takes three quarters off the price, not all of it. Other errors that recur:

  • Adding successive increases. Two 10% rises multiply to 1.1 × 1.1 = 1.21, a 21% increase. Interest added to a balance each period grows the same way; the compound interest calculator runs that over many periods.
  • Dividing a total change by the number of years. A price that rises from 100 to 150 over five years has gone up 50%, but not 10% a year: five 10% rises compound to 1.1⁵ = 1.61, a 61% rise. The steady yearly rate is 1.5^(1/5) − 1 = 8.45%, which the scientific calculator evaluates as 1.5^(1/5) - 1.
  • Confusing "percent of" with "percent more than". 150% of 40 is 60, while 150% more than 40 is 40 + 60 = 100.
  • Averaging percentages with different bases. If 30% of 200 people in one town and 60% of 50 people in another answer yes, the combined share is (60 + 30) ÷ 250 = 36%. The simple average, 45%, gives the small town the same weight as the large one.
  • Decreasing by more than 100%. A positive quantity cannot fall by more than 100% and stay positive: 50 decreased by 120% is −10. If a negative result is impossible in your situation, the rate or the base is wrong.
  • Rounding the rate before using it. Using 8% instead of 8.45% understates five years of growth by about 3 percentage points, since 1.08⁵ = 1.469 instead of 1.5. Keep full precision and round only the figure you report.

Worked examples

15% of 240

I want to find
X% of Y
X
15%
Y
240
Result
36

Checked against: 0.15 × 240

36 is what % of 240

I want to find
X is what % of Y
X
36
Y
240
Result
15 %

Checked against: 36 / 240 × 100

Change from 80 to 100

I want to find
% change from X to Y
From (X)
80
To (Y)
100
Result
25 %

Checked against: (100 − 80) / 80 × 100

Difference between 80 and 100

I want to find
% difference between X and Y
From (X)
80
To (Y)
100
Result
22.222222 %

Checked against: 20 / 90 × 100 = 22.2…

Questions

How do you calculate a percentage of a number?

Divide the percentage by 100 and multiply: 15% of 240 is 0.15 × 240 = 36. The order does not matter, so X% of Y equals Y% of X; 8% of 50 is the same as 50% of 8, which is 4. Percentages above 100 follow the same rule: 150% of 240 is 1.5 × 240 = 360.

How do you calculate percentage increase or decrease?

Subtract the old value from the new one, divide by the absolute old value and multiply by 100. From 80 to 100 is (100 − 80) ÷ 80 × 100 = 25% up; from 100 back to 80 is (80 − 100) ÷ 100 × 100 = 20% down. The two differ because each is measured against its own starting value, so a 25% rise is undone by a 20% fall.

What is the difference between percent change and percent difference?

Percent change has a direction and divides by the absolute starting value; percent difference has none and divides by the absolute average of the two numbers. For 80 and 100 the change is 25% (or −20% going the other way), while the difference is 20 ÷ 90 × 100 ≈ 22.22% whichever number comes first. Use percent difference when neither value is a baseline, such as two lab measurements.

How do you find the original price before a percentage was added?

Divide by 1 plus the rate as a decimal. A price of 120 that includes 20% tax was 120 ÷ 1.2 = 100 before tax. Taking 20% off 120 gives 96, which is wrong because the 20% was charged on 100, not on 120. In this calculator choose “Y is X% of what” and enter Y = 120 and X = 120%.

What is a percentage point?

A percentage point is the plain difference between two percentages. An interest rate moving from 4% to 5% rises by 1 percentage point, which is a 25% relative increase because 1 ÷ 4 = 0.25. Calling that move “a 1% rise” would instead mean 4% × 1.01 = 4.04%, which is why statistics and news reports use percentage points for changes in rates.

About this calculator

X%×Y=X100×YΔ%=Y−X∣X∣×100\begin{gathered} X\% \times Y = \frac{X}{100} \times Y \\[10pt] \Delta_{\%} = \frac{Y - X}{|X|} \times 100 \end{gathered}

Sources

  1. NIST Guide to the SI, §7.10.2 — percent

Checked against references

This calculator includes 5 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.