Percentage Calculator — Percent of a Number, Difference, and Change
What Is a Percentage Calculator?
A percentage calculator helps you answer questions that involve percentages. Percentages appear everywhere: sales discounts, tip at a restaurant, tax calculations, grades, interest rates, and growth figures. While a simple percent problem is easy to solve in your head, things get messy fast when the numbers are not round or when you need to compare multiple values.
This tool gives you four different ways to work with percentages. You can find a percent of a number, answer common "what is X percent of Y" questions, measure how far apart two values are as a percentage, or apply a percent increase or decrease to a starting amount. Everything runs in your browser — no signup, no upload, no data sent anywhere.
Why Use a Percentage Calculator
People use percentage calculators for all kinds of practical reasons:
- Shopping and sales. A store advertises 25% off. You want to know exactly how much you save on a $79.99 item before you get to the register.
- Tip calculation. The bill is $63.50 and you want to leave an 18% tip. Rather than guess, you get the precise number.
- Grades and scores. You scored 43 out of 50 on a test. What percentage did you get?
- Budget tracking. Your monthly grocery bill went from $320 to $368. What percent did it increase by?
- Business and finance. A freelance rate goes from $50 per hour to $55. What is the percentage increase?
In every case, the tool removes the mental arithmetic and gives you an accurate answer instantly.
The Four Modes
1. Percent of a Number
This mode answers the simplest and most common percentage question: what is a given percent of a given number? Enter a percentage and a base amount, then click Calculate portion.
Example: 15% of 200. The math is (15 / 100) × 200 = 30. The tool displays the result as "15% of 200 = 30". If either input is empty or not a number, it prompts you to enter both values. A Clear fields button resets the inputs and hides the result.
2. Common Percent Questions
This mode gives you three separate question rows. Each row has its own "Get answer" button, so you can calculate one question at a time.
Row A — What is X percent of Y. Enter a percent and an amount. Example: 25% of 80 = 20. The result appears as "25% of 80 is 20".
Row B — X is what percent of Y. Enter two amounts. Example: 20 is what percent of 80? The answer is 25%. The tool shows "20 is 25% of 80". If the second value is zero, the tool returns "Cannot divide by zero" because division by zero has no meaningful answer.
Row C — X is Y percent of what. Enter an amount and a percent. Example: 20 is 25% of what? The answer is 80. The tool shows "20 is 25% of 80". If the percent is zero, the tool returns "Percent cannot be zero for this question" because you cannot divide by zero percent.
3. Percent Difference
This mode measures how far apart two numbers are, expressed as a percentage of their average. It is symmetric — swapping the two values gives the same result.
Example: the percent difference between 10 and 15. The absolute difference is 5. The average of 10 and 15 is 12.5. The percent difference is (5 / 12.5) × 100 = 40%. The tool displays "The percent difference between 10 and 15 is 40%".
If both values are zero, the tool shows "Enter two values that are not both zero" because the formula would require dividing by zero.
4. Percent Change (Live)
This mode applies a percent increase or decrease to a starting amount. Unlike the other modes, there is no Calculate button — the result updates live as you type.
Enter a starting amount, choose Increase or Decrease from the dropdown, and enter a percent. The new amount appears automatically once all three inputs are valid.
Example: starting amount 100, Increase, 10%. The result is 110. The tool shows "100 increased by 10% is 110". For a decrease: 100 decreased by 10% is 90.
If any input is missing or invalid, no result appears. There is no error message — the tool simply waits until you have entered all three values.
How to Use Each Tab
Tab 1 — Percent of a number. Type a percent into the Percent field and a number into the Base amount field. Click Calculate portion. The result appears below the buttons. Click Clear fields to reset.
Tab 2 — Common percent questions. Pick a row, fill in its fields, and click Get answer. The result appears directly below that row. Each row works independently.
Tab 3 — Percent difference. Enter two values and click Calculate difference. The result appears below. Click Clear fields to reset.
Tab 4 — Percent change. Type a starting amount, pick Increase or Decrease, and enter a percent. The result updates as you type — no button needed.
Worked Examples
Here are the four test cases the tool handles:
15% of 200. Tab 1: Percent = 15, Base amount = 200. Result: 15% of 200 = 30.
20 is 25% of 80. Tab 2, Row B: Amount = 20, Amount = 80. Result: 20 is 25% of 80.
Percent difference between 10 and 15. Tab 3: First value = 10, Second value = 15. Result: The percent difference between 10 and 15 is 40%.
100 increased by 10%. Tab 4: Starting amount = 100, Change type = Increase, Percent = 10. Result: 100 increased by 10% is 110.
Tips and Best Practices
- Integer vs. decimal display. The tool shows whole numbers without decimals (30 instead of 30.0000) and rounds decimals to up to 4 places, stripping trailing zeros (22.5 instead of 22.5000).
- Thousands separators. Large numbers use commas for readability (1,250 instead of 1250).
- Negative inputs. The first and second value fields in Tab 3 and the starting amount in Tab 4 accept negative numbers, which is useful for financial calculations.
- No result until you click. Tabs 1 through 3 only show results after you click their calculate button. This prevents distractions while you are still typing.
- Live updates in Tab 4. Tab 4 updates automatically because the result is derived from three simple inputs and there is no risk of confusion.
- Privacy. All calculations run in your browser. No data is sent to a server, and no account is required.
Frequently Asked Questions
Is my data sent to a server? No. Every calculation runs entirely in your browser using JavaScript. Nothing is uploaded, and no account is required.
What happens if I divide by zero? In Tab 2, Row B, if the second value is zero, the tool returns "Cannot divide by zero." In Tab 2, Row C, if the percent is zero, it returns "Percent cannot be zero for this question." In Tab 3, if both values are zero, it returns "Enter two values that are not both zero."
Can I use decimals? Yes. All numeric inputs accept decimal values. The tool strips out non-numeric characters automatically.
Why does Tab 4 not have a Calculate button? Tab 4 is designed to be live. With only three inputs (starting amount, change type, and percent), the result is always unambiguous. Updating as you type gives you instant feedback without an extra click.
What is the difference between percent difference and percent change? Percent difference is symmetric — it measures how far apart two values are relative to their average, and swapping the values gives the same result. Percent change is directional — it measures how much a value grows or shrinks relative to a starting point.
Does it work on mobile? Yes. All inputs, buttons, and result areas render responsively and are sized for touch.
Related Tools
If you found this useful, try the Discount Calculator — it calculates sale price and savings from an original price using a percent or fixed amount off. Or try the Tip Calculator — it splits a bill and calculates tip per person. All tools run privately in your browser with no signup.