Percentage Calculator
Visual: Parts Per Hundred
Each square in the 10×10 grid represents 1%. Click a preset or drag the slider to shade any portion.
What Is a Percentage?
A percentage is a fraction with a fixed denominator of 100. The word itself comes from the Latin per centum, meaning "by the hundred." When you say 40%, you mean 40 parts out of every 100 parts, which is identical to the decimal 0.40 or the fraction 2/5.
Percentages work because they let you compare quantities on a common scale. A test score of 78 out of 120 and one of 56 out of 80 are hard to compare directly, but both convert to a percentage (65% and 70%, respectively) that sits on the same 0-to-100 ruler.
Historically, Roman merchants divided auction taxes into fractions of 1/100 centuries before there was a dedicated symbol for the concept. The familiar % symbol was adopted progressively through the 17th century as commerce expanded and shorthand notation became commercially useful. By the 18th century it had settled into roughly its modern form in Italian and French accounting texts.
Why Use a Calculator for This?
Mental arithmetic on percentages is error-prone the moment numbers stop being round. A shopkeeper calculating a 13.5% discount on a $178.99 item has a real chance of getting the wrong answer. An online tool like this one runs the arithmetic in under a millisecond, handles floating-point edge cases cleanly, and lets you check your work with no arithmetic friction.
Every calculation above runs entirely inside your browser using JavaScript. No numbers leave your device, which matters when the numbers are sensitive, like salaries, tax figures, or business margins.
How to Calculate the Percentage of a Number
This is the most common operation: you have a percentage and a base number, and you want the actual value that percentage represents.
Standard Formula
Result = (P / 100) × V
Decimal Shortcut
Result = decimal × V
(20% = 0.20, so 0.20 × 150 = 30)
Worked Example
Common Day-to-Day Uses
- Retail discount: 30% off a $65 jacket. (0.30 × 65 = $19.50 saved, so you pay $45.50.)
- Restaurant tip: 18% on a $54 bill. (0.18 × 54 = $9.72.)
- Sales tax: 8.25% tax on a $120 purchase. (0.0825 × 120 = $9.90 tax.)
- Grade weighting: 40% of your final grade comes from an exam you scored 82 on. (0.40 × 82 = 32.8 weighted points.)
How to Find What Percent One Number Is of Another
Here you have two values and want to know the ratio between them expressed as a percentage. This answers questions like "I scored 45 out of 60, what percentage is that?" or "Our department used $12,400 of a $50,000 budget, what share is that?"
Formula
Percentage = (Part / Whole) × 100
Fraction Form
45/60 = 0.75 → 0.75 × 100 = 75%
Two Worked Examples
(45 ÷ 60) × 100 = 0.75 × 100 = 75%
(12,400 ÷ 50,000) × 100 = 0.248 × 100 = 24.8%
Notice that the "part" does not have to be smaller than the "whole." If a company exceeds its revenue target of $400,000 and brings in $480,000, the attainment is (480,000 / 400,000) × 100 = 120%. Values above 100% are perfectly valid and simply mean the part exceeds the reference whole.
How to Calculate Percentage Increase and Decrease
Percentage change tells you how much a value has grown or shrunk relative to where it started. This matters in finance (stock returns), science (experiment results), and retail (comparing this month's sales to last month's).
Percentage Increase
((New - Old) / Old) × 100
Percentage Decrease
((Old - New) / Old) × 100
(or use increase formula; negative result = decrease)
Worked Example: Investment Growth
A Note on Percentage Points
If a savings rate rises from 10% to 12%, that is a 20% increase in the rate (because (2 / 10) × 100 = 20%), but only a 2 percentage point increase in absolute terms. In election polling and central bank communications, "percentage points" always refers to the absolute difference between two percentages, not the relative change.
When the old value is zero, percentage change is mathematically undefined (division by zero). The calculator displays an error in that case, which is the correct behavior. A value growing from $0 to $50 does not have a calculable percentage change.
Calculating Discounts and Sales Prices
Retail discounts are one of the most common real-world uses of this calculator. There are two numbers that matter: the amount saved and the final price you pay.
| Discount | Multiplier | On $100 | You pay |
|---|---|---|---|
| 10% | 0.90 | $10 saved | $90.00 |
| 15% | 0.85 | $15 saved | $85.00 |
| 20% | 0.80 | $20 saved | $80.00 |
| 25% | 0.75 | $25 saved | $75.00 |
| 30% | 0.70 | $30 saved | $70.00 |
| 50% | 0.50 | $50 saved | $50.00 |
The shortcut: to find the sale price directly, subtract the discount percentage from 100 and multiply by that number as a decimal. A 20% discount means you pay 80%, so multiply the original price by 0.80. For a $78 shirt at 20% off: 78 × 0.80 = $62.40.
Mental Math for Tips and Tax
Finding 10% of any number is instant: move the decimal point one place left. $45.00 becomes $4.50 at 10%. Half that gives you 5% ($2.25). Add them together for 15% ($6.75). For 20%, just double the 10% figure.
Business Math: Profit Margins vs. Markups
Markup and gross margin both describe profit as a percentage, but they use a different base number. Confusing the two is one of the most common errors in small business pricing.
Markup % (based on cost)
((Sale - Cost) / Cost) × 100
Gross Margin % (based on revenue)
((Sale - Cost) / Sale) × 100
Markup = (($60 − $40) / $40) × 100 = 50%
Gross Margin = (($60 − $40) / $60) × 100 = 33.3%
A 50% markup and a 33.3% gross margin describe the same transaction but sound very different. When investors or analysts say "margin," they nearly always mean gross margin, which is the figure based on revenue. When suppliers quote markups, they mean cost-based.
How to Do a Reverse Percentage Calculation
Sometimes you only know the final amount after a percentage was applied, and you need to work back to the original. This comes up constantly with tax-inclusive prices.
After an increase
Original = Final / (1 + rate)
e.g. $108 after 8% tax:
108 / 1.08 = $100
After a discount
Original = Final / (1 - rate)
e.g. $68 after 15% off:
68 / 0.85 = $80
216 / 1.20 = $180 (pre-tax price), and $180 × 0.20 = $36 (tax).
Converting Between Percentages, Fractions, and Decimals
The same quantity can be written as a percentage, a decimal, or a simplified fraction. Fluency with all three forms speeds up mental math significantly.
| Percentage | Decimal | Simplest Fraction |
|---|---|---|
| 10% | 0.10 | 1/10 |
| 12.5% | 0.125 | 1/8 |
| 20% | 0.20 | 1/5 |
| 25% | 0.25 | 1/4 |
| 33.3% | 0.333... | 1/3 |
| 50% | 0.50 | 1/2 |
| 66.6% | 0.666... | 2/3 |
| 75% | 0.75 | 3/4 |
| 100% | 1.00 | 1/1 |
| 150% | 1.50 | 3/2 |
Converting a Fraction to a Percentage
Divide the top number by the bottom number and multiply by 100. For 7/8: (7 ÷ 8) × 100 = 87.5%. The percentage calculator's Module 2 does exactly this, treating the numerator as the "part" and the denominator as the "whole."
Understanding Percentages Greater Than 100%
A 100% increase means a value doubles. A 200% increase means it triples. Many people find this counterintuitive, but the arithmetic is consistent with the formula.
Company A had revenue of $2 million last year and $5 million this year.
Change = ((5 − 2) / 2) × 100 = (3 / 2) × 100 = 150% increase.
Revenue did not double; it grew to 2.5 times its original size.
Percentage decreases, on the other hand, are capped at 100% (a 100% decrease means the value reaches zero; you cannot lose more than you have, which is why "down 110%" is nonsensical outside of debt contexts).
Percentages in Compound Interest and the Rule of 72
In simple interest, a 5% rate on $1,000 earns $50 every year. In compound interest, the interest earns interest too, so the growth accelerates. This is why the percentage rate alone does not tell you the full story without knowing how often it compounds.
Simple Interest
Interest = Principal × Rate × Time
$1,000 × 0.05 × 3 = $150
Compound (annual)
A = P × (1 + r)^t
$1,000 × (1.05)^3 = $1,157.63
The Rule of 72
Divide 72 by the annual interest rate to estimate how many years an investment takes to double. At 6% annually: 72 / 6 = 12 years. At 9%: 72 / 9 = 8 years. This shortcut is accurate to within a few months for rates between 4% and 15%.
Basis Points (BPS)
In fixed income and central banking, rate moves are quoted in basis points. One basis point (1 bps) equals 0.01%. The Federal Reserve raising rates by 25 basis points is the same as a 0.25 percentage point increase. This language prevents ambiguity when working with small fractional rates.
How to Calculate Percentages in Excel and Google Sheets
Spreadsheet software handles percentage formatting separately from the underlying number. A cell displaying "25%" actually contains the value 0.25. This trips people up when building formulas.
=A2/A10 ← fraction result (format as % to display as percentage)
=A2/$A$10 ← % of total (lock the denominator with $)
=(B2-A2)/A2 ← percentage change from A2 to B2
=A2*(1-0.20) ← apply a 20% discount to the value in A2
To format a cell as a percentage in Excel: select the cell, press Ctrl+Shift+% (Windows) or Cmd+Shift+% (Mac), or click the % button on the Home ribbon. Google Sheets uses Format > Number > Percent.
Common Mistakes When Calculating Percentages
1. Adding Percentages on Different Bases
A 10% commission on a $200 sale and a 10% bonus on a $3,000 salary are both "10%," but they produce completely different dollar amounts. Percentages are only addable when they share the same base number.
2. Sequential Discounts Do Not Add
$100 → −20% → $80 → −10% → $72.
The combined reduction is $28 off $100, which is a 28% total discount, not 30%.
3. Mistaking Percentage Change for Percentage Point Change
An unemployment rate dropping from 6% to 4% fell by 2 percentage points. But the percentage change in the unemployment rate itself was (2 / 6) × 100 = 33.3%. Headlines use both framings, often without clarifying which one. Scrutinize numerical claims by checking which base is being used.
4. Absolute vs. Relative Risk in Statistics
A study claiming a drug reduces risk "by 50%" sounds impressive, but if the absolute risk fell from 2% to 1%, the absolute reduction is only 1 percentage point. Both statements are mathematically correct, but they create very different impressions. Always ask for both figures.
Worked Examples: Manual Math vs. Calculator Output
Example A: Calculating a Sales Tax Total
$349.99
7.5%
(7.5 / 100) × 349.99 = 0.075 × 349.99 = $26.25
$349.99 + $26.25 = $376.24
Example B: Year-Over-Year Growth Rate
$428,000
$511,360
$511,360 − $428,000 = $83,360
($83,360 / $428,000) × 100 = 19.47%
Frequently Asked Questions
Multiply the price by 0.20 (the decimal form of 20%). For $85: 85 × 0.20 = $17. A faster mental shortcut is to divide by 5 (since 1/5 = 0.20), giving you $17 immediately. Use Module 1 above: type 20 in the percent field and 85 as the number.
Use the formula ((New Value − Old Value) / |Old Value|) × 100. For example, from 80 to 100: ((100 − 80) / 80) × 100 = 25%. A negative result means the new value is lower than the old one. Module 3 of this calculator does this automatically.
Percentage increase = ((New Value − Old Value) / Old Value) × 100. For a stock rising from $50 to $65: ((65 − 50) / 50) × 100 = 30% increase. If the result is negative, the value decreased instead of increased.
Divide the final price by (1 minus the discount as a decimal). If you paid $68 after a 15% discount: original = 68 / 0.85 = $80. You can verify: $80 × 0.15 = $12 discount, and $80 − $12 = $68. This is the reverse percentage formula.
Divide the numerator by the denominator and multiply by 100. For 3/4: (3 ÷ 4) × 100 = 75%. Module 2 of this calculator handles this directly: enter the numerator as the part and the denominator as the whole.
A 100% increase means the original value is added to itself once, so the result doubles. $50 after a 100% increase becomes $100. A 200% increase triples the original ($50 becomes $150). The formula is: New = Old × (1 + percentage/100).
Percentage change requires dividing by the old value. Division by zero is undefined in mathematics, so there is no meaningful percentage change when starting from zero. The same issue occurs in spreadsheets, which return a #DIV/0! error. In that case, report the absolute change in units rather than a percentage.
Best Practices for Working with Percentages
- Always confirm whether a percentage claim uses the same base as you expect. "Sales up 20%" might mean unit volume or revenue, and those can diverge sharply.
- For sequential discounts, calculate step by step rather than adding the percentages together.
- In financial reporting, specify whether you mean markup (cost-based) or margin (revenue-based) to avoid misunderstandings with stakeholders.
- When reading statistical research, ask for both the relative risk reduction and the absolute risk reduction before drawing conclusions.
- Round financial outputs to two decimal places (the nearest cent) for pricing and tax, following standard accounting practice.
Sources and Methodology
The three calculator modules use the following standard arithmetic axioms:
- Module 1 (Percentage of a Number): Result = (P / 100) × V. JavaScript floating-point output is rounded to 10 decimal places using
parseFloat(x.toFixed(10)), then trimmed to remove trailing zeros before display. - Module 2 (Part to Whole): Percentage = (Part / Whole) × 100. Division by zero (Whole = 0) is caught and surfaced as an inline error.
- Module 3 (Percentage Change): ((New − Old) / |Old|) × 100. Division by zero (Old = 0) returns an error. Negative results are displayed in red with a decrease label.
For further reading on the arithmetic of fractions and proportions: