Free Percentage & Discount Calculator
By Ahsan Ashfaq Updated How we check our numbers
Start with percent off a price: enter the price and the discount to get the sale price and the amount you save, with an optional second discount for stacked deals. You can also work back to the original price from a sale price, or switch to what a percent of a number is, what percent a part is of a whole, and percent change between an old and new value. Labels update automatically so you always know which box is which.
Inputs
Result
—
Discounts and percent off (worked examples)
Retail signs say “20% off” or “40% off $129.99” to mean the same underlying operation: multiply the tag price by the discount rate expressed as a decimal. In the “Percent off a price” mode, enter the sticker price and the discount—the tool shows the sale price and the amount saved, both rounded to two decimals. If you only want the amount removed, the “What is p% of a number?” mode gives it unrounded.
- 20% off $32.50 → save $6.50; you pay $26.00.
- 40% off $129.99 → save $52.00; you pay $77.99 (penny rounding at the register may differ).
- 20% off $80, then an extra 10% off → you pay $57.60, which is 28% off in total, not 30%. Enter the second discount in the optional “Extra discount” box. Whether a store lets you stack promos is its own policy; this page handles the math.
- $59.99 after 25% off → the original price was $79.99. Use the “Original price before a discount” mode.
When a problem asks “what percent off” you got, switch to part versus whole: the dollars saved are the part, the original price is the whole. When prices move from an old shelf tag to a new one, percent change captures the relative move for analytics or homework.
Percents as language, not magic
A percent is literally “per hundred.” Saying fifteen percent is the same as multiplying by 0.15, which is why the “percentage of” mode divides your percent by one hundred before it touches the base. That single rule powers discounts, tax-inclusive pricing, commission schedules, and classroom word problems alike; the notation changes but the factor does not.
The part-to-whole question flips the algebra: you already know the slice and the entire pie, and you want the slice expressed in hundredths. That is how market share, test scores, and error rates are communicated. Percent change is subtly different—it always anchors on the starting value, so a move from 50 to 75 is not the same relative story as a move from 5 to 7.5 even though both add 25 absolute units in different contexts. Anchoring on zero as a starting point breaks the relative-change definition, which is why the tool guards that case.
Where quick percent math shows up
Retail workers sanity-check markups before printing shelf tags. Journalists convert raw counts into readable shares without leaning on a spreadsheet for every paragraph. Engineers translate specification tolerances into pass-or-fail ratios. Students verify homework before submitting. In each case the goal is the same: translate between fractions, decimals, and percents without losing track of which quantity is the denominator—this page simply encodes the three most common question shapes in one place.
Formula and sources
The percent sign stands for the number 0.01, so every mode is a short rearrangement of “part = percent ÷ 100 × whole”. Each mode uses its inputs as follows:
- What is p% of a number? With percentage p and base number N: result = (p ÷ 100) × N.
- X is what % of Y? With part X and whole Y: percent = (X ÷ Y) × 100. Y cannot be zero.
- Percent change (old → new) with original value A and new value B: change = (B − A) ÷ |A| × 100, shown with a + sign for an increase. A cannot be zero. Dividing by the size of A (|A|) keeps the sign meaningful when the original value is negative: going from −50 to −25 is a rise of +50%.
- Percent off a price (sale price) with price P and discount p (0 to 100%): sale price = P × (1 − p ÷ 100), and amount saved = P − sale price. A 100% discount gives a sale price of 0.
- Stacked discounts (p1% off, then an extra p2% off the reduced price): sale price = P × (1 − p1 ÷ 100) × (1 − p2 ÷ 100), and the effective total discount = 1 − (1 − p1 ÷ 100) × (1 − p2 ÷ 100), shown as a percent.
- Original price before a discount with sale price S and discount p: original price = S ÷ (1 − p ÷ 100), and amount saved = original − S. The discount must be below 100%, because at 100% off every price becomes 0.
Results are computed at full double precision and rounded only for display. The two price modes show amounts with two decimals and thousands separators (for example 1,234.50) and no currency symbol, so they work for any currency. The other modes show at most four decimal places with trailing zeros removed; very large answers (a billion or more for “p% of”, a million percent or more for the other modes) are shown with ten significant digits instead.
Worked example: 15% of 240 = 0.15 × 240 = 36. 36 is (36 ÷ 240) × 100 = 15% of 240. A price moving from 80 to 60 is a change of (60 − 80) ÷ 80 × 100 = −25%. 40% off 129.99 is 129.99 × 0.60 = 77.994, shown as 77.99, saving 51.996, shown as 52.00. 20% off 80 and then an extra 10% off is 80 × 0.80 × 0.90 = 57.60, an effective discount of 1 − 0.80 × 0.90 = 0.28, or 28%. A sale price of 59.99 after 25% off came from 59.99 ÷ 0.75 = 79.9867, shown as 79.99.
Sources
- NIST Special Publication 811, chapter 7 — section 7.10.2: the symbol % represents the number 0.01.
- Math is Fun: Percentage Change — the new-minus-old over old definition, with a worked example.
These results are checked by automated tests against independently worked examples — see how we check our numbers.
Want the full explanation? Read our guide: How to calculate percentage off a price.
Run a website or blog? Embed this calculator for free.
Frequently asked questions
- What modes does this percentage calculator have?
- Five: percent off a price (with an optional second discount for stacked deals), original price before a discount, what is p% of a number, what percent one number is of another, and percent change from an old value to a new one.
- Why is percent change undefined when the original is zero?
- Relative change divides by the starting value. When that start is zero, the ratio is not a meaningful percent change in the usual business sense; the tool asks for a non-zero original in that mode.
- Can I enter negative numbers?
- Yes where mathematically sensible—for example a price drop modeled as a negative percent change path. Division by zero and empty fields are still rejected with a short message.
- Does this round like a cash register?
- It shows a readable numeric string with up to four decimal places trimmed of trailing zeros for display. Banking rounding rules and currency precision are not built in.
- How is this different from the tip calculator?
- The tip page is optimized for bills, default percents, and splitting among people. This page is generalized for homework, analytics, and any percent-of or percent-change question.
- How do I calculate a discount or percent off a price?
- Choose the “Percent off a price” mode, enter the original price and the discount percent, and the calculator shows the sale price and the amount saved. Example: 20% off 32.50 saves 6.50, so you pay 26.00.
- What is the sale price after taking p percent off?
- Sale price = original × (1 − p/100). For two discounts applied one after another, multiply by both factors: 20% off and then another 10% off is original × 0.8 × 0.9, a 28% total discount, not 30%.