Percentage Calculator
Three percentage questions, one tool — and it shows the equation it solved.
Runs in your browser. Nothing you enter here is uploaded to a server.
What this tool does
Most percentage questions are really one of three questions: what is a percentage of a number, what percentage one number is of another, or how much a value changed between two points. This calculator handles all three, accepts negative numbers and decimals, and prints the substituted equation next to the answer so you can check the working. Display precision is adjustable from zero to ten decimal places while the full value is kept internally.
How to use this tool
Step 1: Pick the question you are asking
Switch between "X% of Y", "X is what percent of Y" and "percentage change". Each mode relabels its fields so there is no guessing which number goes where.
Step 2: Enter your two numbers
Decimals and negatives are both accepted. The result updates as you type; you do not need to press anything.
Step 3: Set the display precision
Choose how many decimal places to show. Rounding affects the display only — the value copied to your clipboard matches what is on screen.
Step 4: Read the equation, then copy the result
The substituted equation appears under the answer. Use the copy button to take the rounded result with you.
Worked example
A 15% restaurant tip on a 68.40 bill
Choose the first mode, enter 15 as the percentage and 68.40 as the number.
- Equation
- 68.40 × 15 ÷ 100
- Tip
- 10.26
- Bill including tip
- 78.66
Switching to percentage-change mode with 68.40 and 78.66 returns a 15% increase, which is a useful way to confirm the first answer.
The three formulas
Each mode is a single arithmetic expression. Percentage change uses the absolute value of the starting number so that a change away from a negative starting point still reports its direction correctly.
What is X% of Y? result = Y × X ÷ 100
X is what percent of Y? result = X ÷ Y × 100
Change from X to Y result = (Y − X) ÷ |X| × 100- Mode two rejects a Y of zero: nothing can be a percentage of nothing.
- Mode three rejects a starting value of zero, because any increase from zero is undefined as a percentage rather than infinite.
- An increase and a decrease are labelled in words as well as by sign, so the direction is never conveyed by a minus sign alone.
Sources and methodology
ToolNimbly performs this work locally in your browser using the method shown above. Read how ToolNimbly tests calculations and generated documents.
Choosing the right percentage comparison
A percentage only makes sense after you choose the base. Twenty is 20% of 100, but 100 is 500% of 20. That is why “what percentage is A of B?” is not interchangeable with “what percentage is B of A?” The denominator is the reference quantity, and changing it changes the answer. For a discount, the original price is normally the base. For growth, the earlier value is the base. For a margin, revenue is the base rather than cost.
Percentage change also differs from percentage-point change. If an interest rate moves from 4% to 5%, it rises by one percentage point but by 25% relative to its old level. Reversing a percentage requires division as well: adding 20% and then subtracting 20% does not return to the start because the second operation uses a larger base. Naming the base and the type of comparison before calculating prevents most percentage mistakes.
Limitations and privacy
What this tool does not do
- Percentage change from zero is undefined and is refused rather than shown as an enormous number.
- Results are rounded for display only. Chaining several rounded results by hand will drift from the exact value.
- This tool does not apply compounding. For growth repeated over multiple periods, use the compound interest calculator.
The numbers you enter are never sent anywhere. The calculation happens in this page, in your browser.
Frequently asked questions
How do I work out a percentage discount?
Use the first mode to find the discount amount — 20% of 85 is 17 — then subtract it from the original price to get 68. If you already know both prices, the third mode tells you the discount as a percentage: 85 to 68 is a 20% decrease.
Why is a 50% increase followed by a 50% decrease not back where I started?
Because each percentage is taken from a different base. 100 increased by 50% is 150; 50% of 150 is 75, not 50. Percentage changes do not cancel out, which is exactly why the tool prints the base it used.
What is the difference between percentage points and percent?
If a rate moves from 4% to 6%, that is a rise of two percentage points but a 50% increase. This calculator works in percent. Convert to percentage points by subtracting the two rates directly.
Can I use negative numbers?
Yes. All three modes accept negatives. In percentage-change mode the starting value is used as an absolute value for the denominator, so a move from −20 to −10 is reported as a 50% increase rather than a decrease.
How precise is the result?
The calculation is performed in double-precision arithmetic and only the displayed value is rounded, to between zero and ten decimal places as you choose. The default is two.
How do I find the original price before a percentage was added?
Divide rather than subtract. A price of 120 that includes 20% tax came from 120 ÷ 1.20 = 100, not from 120 − 20% = 96. Taking 20% off the larger number removes 20% of 120, which is more than the 20% of 100 that was added. Use mode two with the two known figures to check your answer.
Read more about this
Compound interest with regular contributions
Learn how principal, compounding frequency and contribution timing shape savings growth, with a worked monthly-contribution example.
How extra loan payments save interest
See why paying principal earlier can shorten a fixed-rate loan and reduce later interest, with a worked example and lender caveats.
How to convert salary to hourly pay
Convert annual salary to an hourly rate—or hourly pay to annual salary—using realistic hours, paid weeks and gross-pay assumptions.
How loan interest actually works
Why your early payments are nearly all interest, what APR includes that a rate does not, and what an extra $50 a month really buys you.
What a payment receipt should include
Learn the common fields on a useful payment receipt, how it differs from an invoice, and where local numbering and record rules apply.
What an invoice needs to contain
The fields that make an invoice usable, why a unique number matters more than the layout, and where local tax rules take over.
Related tools
Other tools people use alongside the percentage calculator.
Compound Interest Calculator with Contributions
Calculate compound interest with regular contributions and daily, monthly or annual compounding. See yearly growth and download the results.
Loan Calculator with Extra Payments
Calculate monthly loan payments, total interest and a full amortization schedule. Add extra payments to compare payoff time and savings.
Salary to Hourly Calculator
Convert annual salary to hourly, monthly, weekly, biweekly or daily gross pay—or convert an hourly wage back to annual salary.
Mortgage Calculator
Estimate a monthly mortgage payment including property tax, insurance and HOA fees, with loan-to-value, total interest and a full amortisation table.
Part of Calculators. Last reviewed .