How to use the Percentage Calculator
- 1Locate the calculation card you need: X% of Y, X is what % of Y, or Percentage Increase/Decrease.
- 2Enter your two numbers in the input boxes; results update as you type.
- 3Inspect the formula displayed below each row to verify the exact math.
- 4Click Copy next to any answer or Copy All Results at the bottom right.
What the Percentage Calculator does
The calculator evaluates three distinct percentage formulas live inside your browser:
- Mode 1 (What is X% of Y?) uses (X / 100) × Y to compute a percentage slice of any total.
- Mode 2 (X is what percent of Y?) uses (X / Y) × 100 and displays Undefined when Y equals 0.
- Mode 3 (Percentage Increase or Decrease) uses ((New - Old) / Old) × 100 and prefixes positive increases with a plus sign.
- Displays the live formula beneath each card along with individual Copy and Copy All buttons.
Example
Card 1: 15% of 240 | Card 2: 45 of 180 | Card 3: From 80 to 100
1) (15 / 100) × 240 = 36 2) (45 / 180) × 100 = 25% 3) ((100 - 80) / 80) × 100 = +25%
All three equations match the exact JavaScript arithmetic run inside the tool.
Frequently asked questions
How do I calculate a percentage of a number?
Divide the percentage by 100 and multiply by the number: Result = (X / 100) × Y. For example, 15% of 240 equals (15 / 100) × 240 = 36.
How do I calculate percentage increase or decrease?
Subtract the starting number from the new number, divide by the starting number, and multiply by 100: Change % = ((New - Old) / Old) × 100. Positive numbers indicate an increase and negative numbers indicate a decrease.
What is the difference between a percentage and percentage points?
Percentage points measure the simple arithmetic difference between two percentages (for example, going from 10% to 15% is an increase of 5 percentage points). Relative percentage change compares the jump to the starting rate (from 10% to 15% is a 50% relative increase).
What happens if the denominator is zero?
When Y is 0 in Mode 2 or the starting value is 0 in Mode 3, division by zero is undefined, so the calculator safely displays "Undefined" instead of a broken number.
Related tools
View All ToolsDiscount Calculator
Compute final sale price and total savings from percentage or fixed discounts, optional stacked second discount, and pre- or post-discount sales tax.
Profit Margin Calculator
Compute gross profit, margin %, markup %, and target selling price from cost, price, margin, or markup with formulas shown.
Sales Tax & VAT Calculator
Add any custom sales tax or VAT percentage to a net price, or reverse-calculate pre-tax net and tax amounts from a gross total.