Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Discount Calculator (Sale Price, Amount Off and Percent Off)

Enter the two you know out of "Original price", "Discount (%)", "Amount off" and "Sale price", leave the others blank, and press "Calculate". The rest is calculated for you. Fill in the bottom field only when there is an extra % off on top.

Enter prices and the amount off as 0 or more, and the discount as a number from 0 to 100 (for 20% off, enter "20"). Fill in exactly two of the top four fields, and always leave the fields you want to find blank.
Result
Enter the two values you know in the fields on the left and press "Calculate". The result will appear here.

What you can do on this page

  • Enter any two of "original price", "discount (%)", "amount off" and "sale price", and the other two are found on the spot
  • "What is 20% off $50?", "What percent off is $10 off?", "If it is $40 after 20% off, what was the original price?" - percent discounts and flat dollar discounts both work here
  • For stacked discounts such as "20% off, then an extra 15% off" (like combining coupons), you also get the final price and the overall discount
  • A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
Enter the discount as a percentage from 0 to 100 (for 20% off, enter "20"). A flat discount such as "$10 off" goes in the "Amount off" field.

What is this calculation used for?

Knowing what you will pay before checkout (shopping)

If a $60 jacket is 30% off, you pay \(60 \times 0.7 = 42\) dollars (30% off = pay 0.7 of the price).
Once you remember that "X% off" means "multiply by 1 minus the decimal", you can estimate the price the moment you see the tag or the coupon. It is the calculation shoppers use most. (Sales tax, if any, is added on top of the sale price.)

Comparing "$ off" and "% off" coupons (shopping)

For a $60 item with a "$10 off" coupon and a "15% off" coupon, 15% off is \(60 \times 0.15 = 9\) dollars off, so the $10 coupon is the better deal. For an $80 item, though, 15% off is \(80 \times 0.15 = 12\) dollars off, and the answer flips.
With a percent discount, the amount off depends on the original price. Turning both coupons into dollars off and comparing them helps you pick the better one.

Reading "extra % off" ads and "compare at" prices correctly (consumer smarts)

"20% off everything, plus an extra 15% off at checkout" is not 35% off. Multiplying the fractions you pay gives \(0.8 \times 0.85 = 0.68\), so it is 32% off overall.
Also, a discount "off the sale price" and a discount "off the list price" are different things. If you can redo the math with the discount formulas yourself, you can judge a deal by what you actually pay instead of by how the tag makes it look.

Turning store rewards into an equivalent discount (money)

"10% back in store rewards" is not the same as 10% off. Say you spend $100, get a $10 reward and use all of it: you bought $110 worth of goods for $100. Using the discount formula, \((110 - 100) \div 110 \times 100 \approx 9.1\%\), so it is worth about 9.1% off (less if the reward goes unused or expires).
Putting rewards and discounts on the same scale (the discount rate) makes it easier to compare offers.

Checking quotes and negotiated discounts (business)

If you take 5% off a $5,000 quote, the amount off is \(5000 \times 0.05 = 250\) dollars, and the invoice is $4,750.
In sales and purchasing, people negotiate by working both ways: "how many dollars is X% off?" and "what percent is this amount off?" Turning a discount into dollars to see its effect on profit is a basic calculation for anyone who works with prices.

Formula

Formula for the amount off
Standard notation (the usual math form)
\(D\) \(=\) \(X\) \(\times\) \(P\) \(\div\) \(100\)
In words (symbols replaced with words)
④ \(D\): amount off \(=\) ③ \(X\): original price \(\times\) ① \(P\): discount (%) \(\div\) ② \(100\): percent base
The formula in words
① Take the \(P\): discount (%)
② divide it by the \(100\): percent base to turn it into a decimal,
③ multiply by the \(X\): original price ,
④ and you get the \(D\): amount off
Quick example
The amount off for 20% off a $50 item is
\(D\): amount off \(=\) original price ($50) \(\times\) discount (20%) \(\div\) percent base (100)
\(20 \div 100 = 0.2\)
\(50 \times 0.2 = 10\)
Key idea
"20% off" and "save 20%" say the same thing: the price goes down by 20% of the original price. The amount off is always 20% of the original price, not 20% of the sale price. Knowing which amount the percentage is taken from (the base amount) is the most important idea in discount math.
Formula for the sale price
Standard notation (the usual math form)
\(Y\) \(=\) \(X\) \(-\) \(D\)
In words (symbols replaced with words)
③ \(Y\): sale price \(=\) ① \(X\): original price \(-\) ② \(D\): amount off
The formula in words
① From the \(X\): original price ,
② subtract the \(D\): amount off ,
③ and you get the \(Y\): sale price
Quick example
The price of a $50 item with $10 off is
\(Y\): sale price \(=\) original price ($50) \(-\) amount off ($10)
\(50 - 10 = 40\)
Key idea
A flat discount such as "$10 off" needs only this one subtraction. For a percent discount, first find the amount off with the first formula, then subtract it here. The two formulas are often combined as \(Y = X \times \left(1 - \frac{P}{100}\right)\). With 20% off, the fraction you pay is \(1 - 0.2 = 0.8\), so multiplying the original price by 0.8 gives the sale price in one step (\(50 \times 0.8 = 40\) dollars).
Formula for the discount (what percent off?)
Standard notation (the usual math form)
\(P\) \(=\) \((\) \(X\) \(-\) \(Y\) \()\) \(\div\) \(X\) \(\times\) \(100\)
In words (symbols replaced with words)
⑤ \(P\): discount (%) \(=\) \((\) ① \(X\): original price \(-\) ② \(Y\): sale price \()\) \(\div\) ③ \(X\): original price \(\times\) ④ \(100\): percent base
The formula in words
① From the \(X\): original price ,
② subtract the \(Y\): sale price to get the amount off,
③ divide it by the \(X\): original price to get a decimal,
④ multiply by the \(100\): percent base to turn it into a percent,
⑤ and you get the \(P\): discount (%)
Quick example
The discount when a $50 item sells for $40 is
\(P\): discount (%) \(=\) \((\) original price ($50) \(-\) sale price ($40) \()\) \(\div\) original price ($50) \(\times\) percent base (100)
\(50 - 40 = 10\)
\(10 \div 50 = 0.2\)
\(0.2 \times 100 = 20\ \ (20\%)\)
Key idea
The top part, "original price − sale price", is the amount off \(D\) itself. If you know the amount off, \(P = D \div X \times 100\) gives the same answer ($10 off ÷ $50 × 100 = 20% off). Always divide by the original price. If you divide by the sale price instead (\(10 \div 40 = 25\%\)), the discount comes out larger than it really is.
Formula for the original price (working backward)
Standard notation (the usual math form)
\(X\) \(=\) \(Y\) \(\div\) \((\) \(1\) \(-\) \(P\) \(\div\) \(100\) \()\)
In words (symbols replaced with words)
⑤ \(X\): original price \(=\) ④ \(Y\): sale price \(\div\) \((\) ③ \(1\): the whole \(-\) ① \(P\): discount (%) \(\div\) ② \(100\): percent base \()\)
The formula in words
① Take the \(P\): discount (%)
② divide it by the \(100\): percent base to turn it into a decimal,
③ subtract that from \(1\): the whole to get the fraction you pay,
④ then divide the \(Y\): sale price by that fraction,
⑤ and you get the \(X\): original price
Quick example
The original price of an item that was $40 at 20% off is
\(X\): original price \(=\) sale price ($40) \(\div\) \((\) \(1\): the whole \(-\) discount (20%) \(\div\) percent base (100) \()\)
\(20 \div 100 = 0.2\)
\(1 - 0.2 = 0.8\)
\(40 \div 0.8 = 50\)
Key idea
A common mistake here is to add 20% back onto $40 (\(40 \times 1.2 = 48\) dollars). The 20% off was 20% of the original price, not of the sale price, so the right way back is to divide by the fraction you pay, 0.8. To undo a flat discount such as "$10 off", just add the amount off back to the sale price (\(X = Y + D\)).
Final price with an extra % off (stacked discounts)
Standard notation (the usual math form)
\(Y\) \(=\) \(X\) \(\times\) \((\) \(1\) \(-\) \(P_1\) \(\div\) \(100\) \()\) \(\times\) \((\) \(1\) \(-\) \(P_2\) \(\div\) \(100\) \()\)
In words (symbols replaced with words)
⑥ \(Y\): final price \(=\) ⑤ \(X\): original price \(\times\) \((\) ③ \(1\): the whole \(-\) ① \(P_1\): first discount (%) \(\div\) ② \(100\): percent base \()\) \(\times\) \((\) \(1\): the whole \(-\) ④ \(P_2\): second discount (%) \(\div\) \(100\): percent base \()\)
The formula in words
① Take the \(P_1\): first discount (%)
② divide it by the \(100\): percent base to turn it into a decimal,
③ subtract that from \(1\): the whole to get the fraction you pay after the first discount,
④ do the same with the \(P_2\): second discount (%) to get the fraction you pay after the second one,
⑤ multiply the \(X\): original price by both fractions one after the other,
⑥ and you get the \(Y\): final price
Quick example
The final price of a $50 item at "20% off, then an extra 15% off" is
\(Y\): final price \(=\) original price ($50) \(\times\) \((\) \(1\): the whole \(-\) first discount (20%) \(\div\) percent base (100) \()\) \(\times\) \((\) \(1\): the whole \(-\) second discount (15%) \(\div\) percent base (100) \()\)
\(1 - 20 \div 100 = 0.8\)
\(1 - 15 \div 100 = 0.85\)
\(50 \times 0.8 \times 0.85 = 34\)
Key idea
"20% off, then an extra 15% off" is not 35% off. Multiplying the fractions you pay gives \(0.8 \times 0.85 = 0.68\), so the overall discount is 32% (35% off would be $32.50, but you actually pay $34). The second discount applies to the price after the first discount. So you combine discounts by multiplying the fractions you pay, not by adding the percentages. This is the key point of stacked discounts.
Discount math comes down to two formulas - "amount off = original price × discount ÷ 100" and "sale price = original price − amount off". To go straight from the percentage, multiply by the fraction you pay (1 − discount ÷ 100); to get back from the sale price to the original price, divide by that fraction. For stacked discounts, multiply the fractions you pay instead of adding the percentages.

Symbols and terms

Symbols

\(X\) ex The original price. The price before the discount (the list price or regular price). In discount math, the percentage is always taken from this original price.
\(P\) pee The discount. It tells what percent of the original price is taken off. This page uses a percentage from 0 to 100 (for 20% off, \(P = 20\)).
\(D\) dee The amount off. The money you actually save (a dollar amount, not a percentage). It is the "$10" in "$10 off".
\(Y\) why The sale price. The price you actually pay after the discount.
\(1 - P \div 100\) one minus P over 100 The fraction you pay. Taking the original price as 1, it is how much is left after the discount (20% off → 0.8). Multiply by it to get the sale price; divide by it to get back to the original price.
\(P_1,\ P_2\) P sub one, P sub two The first and second discounts in stacked discounts. The small number at the lower right (a subscript) tells which one it is.
\(\%\) percent The percent sign. It shows "how many out of 100". It comes from the Latin per centum ("by the hundred").

Terms

discount rate The percentage of the original price that is taken off. "20% off" and "save 20%" both mean a discount rate of 20%. On this page it is simply called the "discount".
list price The normal selling price before any discount. Stores also call it the "regular price" or "MSRP" (manufacturer's suggested retail price). It is the "original price" on this page.
markdown A price cut a store makes on an item, such as a clearance or seasonal sale price. A markdown can be written as a dollar amount ($10 off) or as a percentage (20% off).
fraction you pay The part of the original price that is left after the discount. For 20% off, it is \(1 - 0.2 = 0.8\) (0.8 times the original price). Seeing discounts as multiplying or dividing by this fraction is the central idea of the formulas on this page.
stacked discounts Applying one discount on top of another, such as "20% off, then an extra 15% off" (for example, combining a sale with a coupon). The percentages cannot be added; multiply the fractions you pay instead.
overall discount Stacked discounts expressed as one discount - "in the end, what percent off the original price was it?" 20% off plus an extra 15% off is 32% off overall (not 35% off).
base amount The amount a percentage is taken from. In discount math, the base amount is always the original price before the discount. Be careful, because it is easy to divide by the wrong number.
percentage A part of a whole written as "out of 100", with the unit % (percent). Multiply a decimal by 100 to get a percentage (0.2 → 20%).

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.

Percent of a quantity (Grade 6)
  • Knowing that "base amount × percent = part"
  • Being able to tell, from a phrase like "20% off", which amount is the base amount (the original price)
Percents, decimals and fractions (Grade 6)
  • Being able to switch between 20%, 0.2 and 1/5 (divide a percent by 100 to get a decimal)
  • Knowing that "20% off" means "you pay 80%", that is, 0.8 times the price
Multiplying and dividing decimals (Grades 5–6)
  • Being able to multiply and divide with decimals, as in \(50 \times 0.8\) and \(40 \div 0.8\)
  • Having a feel that multiplying by a number less than 1 makes the result smaller, and dividing by it makes the result larger
Working backward with equations (Grade 7)
  • Being able to find \(x\) in an equation such as \(x \times 0.8 = 40\) by dividing
  • Being used to calling the unknown \(x\) and working back through the equation

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the amount off (how much is 20% off $50?)
Original price 50
Discount (%) 20
Amount off =B1*B2/100
Table to find the sale price ($50 item with $10 off)
Original price 50
Amount off 10
Sale price =B1-B2
Table to find the discount (what percent off is $50 down to $40?)
Original price 50
Sale price 40
Discount (%) =(B1-B2)/B1*100
Table to find the original price ($40 after 20% off)
Sale price 40
Discount (%) 20
Original price =B1/(1-B2/100)
Table to find the final price with an extra % off ($50, 20% off, then an extra 15% off)
Original price 50
First discount (%) 20
Second discount (%) 15
Final price =B1*(1-B2/100)*(1-B3/100)
After pasting, B1 and B2 (B1 to B3 in the fifth table) are your inputs, and the bottom row is calculated automatically.
"B1" and "B2" in a formula stand for "the number in that cell". "*" is multiplication and "/" is division.
The results are 10 in the first table, 40 in the second, 20 in the third, 50 in the fourth and 34 in the fifth. Just replace the numbers in column B with your own prices and discounts.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the amount off (how much is 20% off $50?)
Original price 50
Discount (%) 20
Amount off =B1*B2/100
Table to find the sale price ($50 item with $10 off)
Original price 50
Amount off 10
Sale price =B1-B2
Table to find the discount (what percent off is $50 down to $40?)
Original price 50
Sale price 40
Discount (%) =(B1-B2)/B1*100
Table to find the original price ($40 after 20% off)
Sale price 40
Discount (%) 20
Original price =B1/(1-B2/100)
Table to find the final price with an extra % off ($50, 20% off, then an extra 15% off)
Original price 50
First discount (%) 20
Second discount (%) 15
Final price =B1*(1-B2/100)*(1-B3/100)
The same formulas as in Excel work as is. Copy the whole table, paste it into cell A1, and replace the numbers in column B with your own prices and discounts.

How to calculate it in Python

# Amount off and sale price (20% off $50)
price_before = 50       # original price
discount_percent = 20   # discount (%)
discount_amount = price_before * discount_percent / 100
price_after = price_before - discount_amount
print(f"Amount off: ${discount_amount:.2f}, sale price: ${price_after:.2f}")

# Discount (what percent off is $50 down to $40?)
price_before = 50       # original price
price_after = 40        # sale price
discount_percent = (price_before - price_after) / price_before * 100
print(f"Discount: {discount_percent}%")

# Work back to the original price ($40 after 20% off)
price_after = 40        # sale price
discount_percent = 20   # discount (%)
price_before = price_after / (1 - discount_percent / 100)
print(f"Original price: ${price_before:.2f}")

# Final price with stacked discounts ($50, 20% off, then an extra 15% off)
price_before = 50       # original price
first_percent = 20      # first discount (%)
second_percent = 15     # second discount (%)
price_final = price_before * (1 - first_percent / 100) * (1 - second_percent / 100)
print(f"Final price: ${price_final:.2f}")
Runs with the standard library only. Pick the block for what you want to find, replace the prices and discounts at the top of it, and run it.

How to write it in LaTeX and other math languages (copy and paste)

Formula for the amount off
D = X × P ÷ 100
D = X \times \frac{P}{100}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>D</mi>
    <mo>=</mo>
    <mi>X</mi>
    <mo>&#xD7;</mo>
    <mfrac><mi>P</mi><mn>100</mn></mfrac>
  </mrow>
</math>
D = X xx P/100
before*percent/100
amount := before*percent/100;
amount = before*percent/100;
D = X × P/100
Formula for the sale price
Y = X − D
Y = X - D
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>Y</mi>
    <mo>=</mo>
    <mi>X</mi>
    <mo>&#x2212;</mo>
    <mi>D</mi>
  </mrow>
</math>
Y = X - D
before - amount
after := before - amount;
after = before - amount;
Y = X - D
Formula for the discount (what percent off?)
P = (X − Y) ÷ X × 100
P = \frac{X - Y}{X} \times 100
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>P</mi>
    <mo>=</mo>
    <mfrac>
      <mrow><mi>X</mi><mo>&#x2212;</mo><mi>Y</mi></mrow>
      <mi>X</mi>
    </mfrac>
    <mo>&#xD7;</mo>
    <mn>100</mn>
  </mrow>
</math>
P = (X - Y)/X xx 100
(before - after)/before*100
percent := (before - after)/before*100;
percent = (before - after)/before*100;
P = (X - Y)/X × 100
Formula for the original price (working backward)
X = Y ÷ (1 − P ÷ 100)
X = \frac{Y}{1 - \frac{P}{100}}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>X</mi>
    <mo>=</mo>
    <mfrac>
      <mi>Y</mi>
      <mrow>
        <mn>1</mn>
        <mo>&#x2212;</mo>
        <mfrac><mi>P</mi><mn>100</mn></mfrac>
      </mrow>
    </mfrac>
  </mrow>
</math>
X = Y/(1 - P/100)
after/(1 - percent/100)
before := after/(1 - percent/100);
before = after/(1 - percent/100);
X = Y/(1 - P/100)
Final price with an extra % off (stacked discounts)
Y = X × (1 − P₁ ÷ 100) × (1 − P₂ ÷ 100)
Y = X \times \left(1 - \frac{P_1}{100}\right) \times \left(1 - \frac{P_2}{100}\right)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>Y</mi>
    <mo>=</mo>
    <mi>X</mi>
    <mo>&#xD7;</mo>
    <mrow>
      <mo>(</mo>
      <mn>1</mn>
      <mo>&#x2212;</mo>
      <mfrac><msub><mi>P</mi><mn>1</mn></msub><mn>100</mn></mfrac>
      <mo>)</mo>
    </mrow>
    <mo>&#xD7;</mo>
    <mrow>
      <mo>(</mo>
      <mn>1</mn>
      <mo>&#x2212;</mo>
      <mfrac><msub><mi>P</mi><mn>2</mn></msub><mn>100</mn></mfrac>
      <mo>)</mo>
    </mrow>
  </mrow>
</math>
Y = X xx (1 - P_1/100) xx (1 - P_2/100)
before*(1 - p1/100)*(1 - p2/100)
final := before*(1 - p1/100)*(1 - p2/100);
final = before*(1 - p1/100)*(1 - p2/100);
Y = X × (1 - P_1/100) × (1 - P_2/100)

How to have ChatGPT  do the calculation

You are a calculation assistant for discounts. Do the following calculations by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

1. The amount off and the sale price for 20% off a $50 item
2. The discount (%) when a $50 item sells for $40
3. The original price of an item that was $40 in a 20%-off sale
4. The final price and the overall discount (%) when you buy a $50 item at "20% off, then an extra 15% off"

Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.