Percentage and discount calculator with steps

Work out percentages and sale prices, with each step shown so you can check the maths.

Illustration of a calculator with a minus 25 percent display and a percent badge
Percentage of a number
Percentage increase or decrease
Percentage difference
Discount and final price

Accepted input

Plain numbers, including decimals and negatives where they make sense. No currency is assumed, so use any currency or unit. Results are rounded to two decimal places for display only.

How to use this tool

  1. Pick the calculator that matches your question and fill in its boxes.
  2. The answer and the working appear underneath immediately.
  3. For prices, enter the original price, the discount percentage and, if needed, a tax percentage.

Formulas

CalculatorFormula
Percentage of a number(percent ÷ 100) × number
Increase or decrease((new − old) ÷ |old|) × 100
Percentage difference(|A − B| ÷ average of A and B) × 100
Discountdiscount = price × rate ÷ 100; final = price − discount; tax is added on the discounted amount

Worked examples

20% of 150 is (20 ÷ 100) × 150 = 30.

80 to 100 is a 25% increase; 100 to 80 is a 20% decrease. The same gap gives different percentages because the starting value differs.

80 and 100 differ by 22.22% (20 ÷ 90 × 100) when you compare them as peers rather than before and after.

Price 80, 25% off, 10% tax: discount 20, discounted price 60, tax 6, final price 66.

Edge cases

A change from zero has no percentage, because the formula divides by zero, so the tool says it is undefined. The same applies when two values average to zero. A discount above 100% or below 0% is rejected. Tax rules, rounding and whether tax applies before or after a discount differ by shop and country, so the final price on a receipt may differ slightly.

Notice

This is a general-purpose calculator. It is not financial, tax or legal advice.

One worked example for each calculator

Which calculator to use

QuestionUse
“What is 12% of this amount?”Percentage of a number
“How much did it go up or down?”Increase or decrease, with an old and a new value
“How different are these two figures?” with no before or afterPercentage difference
“What will I pay after the sale?”Discount and final price

Notes on the maths

Input rules and edge cases

Troubleshooting

What you seeLikely reasonWhat to try
“Enter both numbers”One box is empty or not a numberFill in both boxes
Result differs from the receiptThe shop rounds or taxes differentlyTreat the receipt as final
Percentage looks wrongOld and new values swappedCheck which number is the starting value

This calculator is for general use and is not financial, tax or legal advice. For step-by-step explanations of discounts, see how to calculate discounts and final prices.

Frequently asked questions

Is tax added before or after the discount?

Here tax is added after the discount. Some places calculate it differently.

Why is a 25% increase not reversed by a 25% decrease?

Because the second percentage applies to a larger number.

Can I use any currency?

Yes. The tool just works with numbers.

Related tools

Related articles