Discount calculator
Calculate a sale price and savings from one percentage discount. See the formula, successive-discount examples and tax, shipping and rounding limits.
CalculatorsCalculate a percentage of a value, percent change or a share. Compare worked examples and distinguish percentage change from percentage points.
Ready when you are.
Enter 20 and 150 in the two fields, or select Try an example. This asks for 20 percent of 150, not the change from 20 to 150.
Calculation: A% of B Value A: 20 Value B: 150
30 20% of 150
Choose A% of B, Change from A to B, or A as a % of B, then enter Value A and Value B. Results update as you edit; Run tool also recalculates. For change, A is the old value and B is the new value.
Change divides by the absolute starting value and is undefined from zero. Ratios cannot divide by zero. Results display up to six decimal places using JavaScript number arithmetic, not exact decimal accounting.
Percentage change divides by the original value, which cannot be zero. For negative starting values, this tool divides by the absolute starting value; check that convention fits your use case.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
A% of B uses A ÷ 100 × B: 20% of 150 is 30. To ask what share 30 is of 150, choose A as a % of B with A = 30 and B = 150; A ÷ B × 100 gives 20%. A share can exceed 100%: 180 out of 150 is 120%. The two modes answer different questions.
Choose Change from A to B. From 80 to 100 gives 25% change: (100 − 80) ÷ 80 × 100. Reversing the values gives -20%, not -25%, because the denominator is now 100. An increase followed by an equal percentage decrease does not usually return to the original value.
A rate moving from 20% to 25% rises by 5 percentage points: 25 − 20. The relative increase is 25%, which this tool returns in Change mode with A = 20 and B = 25. There is no separate percentage-point mode; do not label the percent-change result as points.
Change from zero and a ratio with B = 0 produce an error. A = 0 in A% of B gives 0. For change from -100 to -50, the absolute-start convention gives +50%; this convention may not suit financial growth reporting. Outputs round to at most six decimal places, so 1 as a percentage of 3 displays 33.333333%. Very large or very small values can exceed floating-point precision; use an appropriate decimal calculation for accounting.
Choose your calculation: compare a share or percentage change, apply a sale discount, or add a tip and split equally. Re-enter values deliberately when switching tools; results are not transferred automatically.
Precision reference: JavaScript Number and floating-point limits. These are practical estimates, not exact decimal accounting.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Calculate a sale price and savings from one percentage discount. See the formula, successive-discount examples and tax, shipping and rounding limits.
CalculatorsCalculate a tip, total bill and equal share per person. Check the tipping base, rounding remainders and worked examples before paying.
CalculatorsCalculate signed calendar days and full weeks between dates. Check leap-year examples and understand start-day, daylight-saving and holiday limits.
Calculators