Percentage Calculator
Find X% of a number, work out what percent one number is of another, or calculate the percent change between two values, instantly, in your browser.
Mode
Result
10
20% of 50 is 10
Common Use Cases
About Percentage Calculator
Percentage math shows up constantly in ordinary life: figuring out a restaurant tip, checking how big a discount actually is, comparing this month's numbers to last month's, or working out what share of a total something represents. But the three common questions people actually ask ("what's X% of Y," "what percent is X of Y," and "how much did this change") each use a different formula, and it's easy to reach for the wrong one under pressure or mix up which number goes in the numerator.
This calculator covers all three as separate modes, selected with the toggle at the top. Find X% of Y answers "what is 20% of 50?" by computing (X ÷ 100) × Y, the everyday tip/discount/tax calculation. X is what % of Y answers "25 is what percent of 200?" by computing (X ÷ Y) × 100, useful for figuring out what share a part represents of a whole, like a test score out of total points or a budget line item out of a total spend. Percent change from X to Y answers "how much did this change from 50 to 75?" by computing ((Y − X) ÷ |X|) × 100, dividing by the absolute value of the starting number rather than the raw number, and explicitly labels the result as an increase or decrease rather than just showing a signed number. Dividing by the absolute value, not the signed value, is what keeps the increase/decrease label matching what actually happened when the starting number is negative: going from −50 to −25 is a real move toward zero (an increase), and would confusingly read as a "decrease" if the formula divided by the raw −50 instead.
All three modes update their result live as you type: there's no "Calculate" button to click, and no page reload. Inputs accept negative numbers and decimals, and each mode clearly flags the one input state that would make its formula meaningless (a zero "of" value in the second mode, or a zero starting value in the third), rather than silently showing "Infinity" or "NaN."
Every calculation runs as plain JavaScript directly in your browser, so nothing you type is ever sent to a server, logged, or stored anywhere. Whether you're checking a tip, grading a test, or comparing two numbers from a spreadsheet, the math happens instantly and privately on your own device.
Frequently Asked Questions
What's the formula for "X% of Y"?
What's the formula for "X is what percent of Y"?
How is percent change calculated, and why does the order of X and Y matter?
Why does the tool show an error instead of a result for some inputs?
Can I enter negative numbers or decimals?
Is my data sent to a server?
Related Tools
View all CalculatorsTip Calculator
Calculate a tip and split the total evenly between any number of people, with a slider, quick-pick percentages, and a live per-person breakdown, entirely in your browser.
Discount Calculator
Work out a sale price and how much you'll save from an original price and discount percentage, or reverse-engineer the original price from a sale price, instantly, in your browser.
Sales Tax Calculator
Add sales tax onto a price, or back the pre-tax price out of a tax-included total; enter a price and tax rate and get both figures instantly, in your browser.