Skip to content
Toolblip
← Blog
Developer Tools4 min read·

Percentage Calculator: The Mental Math You Don't Have to Do

Calculating percentages wrong is embarrassingly common. This guide walks through the correct way to compute percentage increases, decreases, and proportions — and why your first instinct is usually wrong.

Here's a fun fact: most people calculate percentages wrong. Not because they're bad at math, but because the terminology is genuinely confusing. "X is what percent of Y?" sounds like it should be X ÷ Y, but it isn't always.

Let me fix that.

The Three Core Percentage Calculations

1. What is X% of Y? (Finding a portion)

This is the most common and the easiest. Just multiply:

X% of Y = Y × (X / 100)

Examples:

  • What is 15% of 200? → 200 × 0.15 = 30
  • What is 8.5% of 450? → 450 × 0.085 = 38.25
  • What is 20% of 1500? → 1500 × 0.20 = 300

This is also the "discount" calculation: a 25% discount on $80 means you save 80 × 0.25 = $20, so you pay $60.

2. X is what percent of Y? (Finding the rate)

Divide the part by the whole, then multiply by 100:

Rate = (X / Y) × 100

Examples:

  • 30 is what percent of 200? → (30 / 200) × 100 = 15%
  • 85 is what percent of 340? → (85 / 340) × 100 = 25%
  • 7 is what percent of 28? → (7 / 28) × 100 = 25%

Notice: "X is part of Y" means X goes on top of the fraction. Easy mistake: putting Y on top gives you the inverse (what percent Y is of X).

3. X is Y% of what number? (Finding the whole)

This reverses the calculation. If X equals Y% of the whole, then:

Whole = X / (Y / 100)

Examples:

  • 45 is 15% of what number? → 45 / 0.15 = 300
  • 12 is 8% of what number? → 12 / 0.08 = 150
  • 500 is 20% of what number? → 500 / 0.20 = 2500

Percentage Change: Increase and Decrease

Percentage increase

Increase % = ((New - Old) / Old) × 100

Your salary goes from $60,000 to $72,000:

((72000 - 60000) / 60000) × 100 = (12000 / 60000) × 100 = 20%

Percentage decrease

Decrease % = ((Old - New) / Old) × 100

Product price drops from $80 to $60:

((80 - 60) / 80) × 100 = (20 / 80) × 100 = 25%

Common mistake: The asymmetric percentage change

Here's where people get tripped up. If something increases by 50% and then decreases by 50%, you don't end up where you started:

$100 + 50% = $150
$150 - 50% = $75  ← you're down $25 from start!

Percentages are relative to the current value, not the original. The same applies to discounts: a 20% discount followed by a 20% increase doesn't get you back to the original price.

Compound Percentage Changes

Multiple percentage changes compound multiplicatively, not additively:

Final = Original × (1 + change₁) × (1 + change₂) × ...

A $1000 investment grows 10%, then 15%, then drops 5%:

$1000 × 1.10 × 1.15 × 0.95 = $1204.25

Not $1000 × (1.10 + 0.15 - 0.05) = $1200.

Real-World Applications

E-commerce discounts

"Buy 2, get 30% off the second item" is not the same as 30% off your total. If both items are $50:

  • Discount = 50 × 0.30 = $15
  • You pay = $50 + $35 = $85 (not $70)

Business metrics

Conversion rate: "We had 12,000 visitors and 360 purchases. What was the conversion rate?"

(360 / 12000) × 100 = 3%

Year-over-year growth: "Revenue was $2.4M last year and $3.1M this year"

((3.1 - 2.4) / 2.4) × 100 = 29.2% growth

Tax calculations

If you have a $75 meal and need to add 18% gratuity and 8% tax:

Tax = 75 × 0.08 = $6
Gratuity = 75 × 0.18 = $13.50
Total = 75 + 6 + 13.50 = $94.50

Or more directly: 75 × 1.08 × 1.18 = $95.58 (tax applies before gratuity in some jurisdictions).

Why Use a Percentage Calculator?

Beyond avoiding mental math errors, a good calculator handles edge cases:

  • 0% of anything is always 0
  • 100% of any number is always the number itself
  • Division by zero is impossible and should return an error
  • Very small or very large numbers are displayed in scientific notation

Toolblip's Percentage Calculator handles all three calculation types, shows you the formula so you understand the result, and works entirely in your browser with no server round-trips.

The mental math shortcut: for 10% of any number, just move the decimal one place left. For 1%, move it two places. From there, multiply to build any percentage.

#percentage#calculator#math#finance#discount

Harun R Rayhan

Writing about developer tools, web performance, and the tools that make building faster.

More in Developer Tools