How to Calculate Percentages: Three Common Methods
Quick summary
Learn the three most common percentage calculations — X% of Y, X is what percent of Y, and percentage change — with formulas, examples and common mistakes.
A percentage expresses a number as a fraction of 100. The three most common calculations are: what is X% of Y, X is what percent of Y, and the percentage change between two values. The NeatForge Percentage Calculator handles all three live in your browser, with color-coded results for increases and decreases.
Three Common Percentage Calculations
Most percentage questions fall into one of three patterns:
- What is X% of Y? — e.g. what is 20% of 80?
- X is what percent of Y? — e.g. 30 is what percent of 150?
- Percentage change — e.g. what is the percent increase from 80 to 100?
Formulas for Each Method
1. X% of Y
result = (X / 100) × Y
Example: 20% of 80 = (20 / 100) × 80 = 16.
2. X is what percent of Y
result = (X / Y) × 100
Example: 30 is what percent of 150 = (30 / 150) × 100 = 20%.
3. Percentage change
result = (new - old) / |old| × 100
Example: change from 80 to 100 = (100 - 80) / 80 × 100 = +25% (an increase). A negative result is a decrease.
Common Mistakes to Avoid
- Division by zero — percentage change is undefined when the old value is zero. The calculator shows a dash instead of a number in that case.
- Direction of change —
(new - old)gives the correct sign. Swapping the order flips increase to decrease. - Confusing “of” with “off” — “20% of 80” is 16; “20% off 80” is also a 16-unit discount, but the final price is 64, not 16.
- Using absolute value incorrectly — the denominator uses
|old|so a negative old value still gives a meaningful percentage, but the sign of the result comes from the numerator.
Use Cases for a Percentage Calculator
- Discounts and sales — compute the final price after a 20% discount, or the original price before tax.
- Academic grades — find what percentage you scored on a test, or what mark you need on the final to hit a target grade.
- Finance and investing — calculate the percentage gain or loss on a stock, or the interest rate on a loan.
- Business metrics — compute month-over-month growth, conversion rates, or year-over-year revenue change.
How to Use the Percentage Calculator
- Open the Percentage Calculator.
- Pick the mode that matches your question (X% of Y, X is what % of Y, or % change).
- Type the two input values. The result updates instantly — no button to click.
- For percentage change, green means an increase and red means a decrease.
All inputs accept decimals and negative numbers, and results show up to 6 decimal places with trailing zeros trimmed.
FAQ
How is percentage change calculated? Percentage change = (new value - old value) / |old value| × 100. A positive result is an increase; a negative result is a decrease. The old value cannot be zero.
Why does the tool show a dash? A dash means the inputs are empty, non-numeric, or would cause a division by zero. Fill in both fields with valid numbers.
Can I use decimal numbers? Yes. All inputs accept decimals (e.g. 12.5 or 0.075) as well as integers and negative numbers.
→ Open the free Percentage Calculator