Percentage Calculator of 2 Numbers: How to Use
- Difference
- Result
- First number
- 30
- You entered
- Second number
- 150
- You entered
This calculator works out what percent one number is of another, or applies a percentage increase or decrease to a starting value. You enter two numbers (for example, 30 and 150), and it returns the percentage relationship, plus the absolute difference. The result is shown as a percentage, and you can also see the exact formula and a step-by-step example below.
Formula
The core formula for finding what percent one number (a) is of another (b) is:
Percentage = (a ÷ b) × 100
Where:
- a is the part or the first number (no unit)
- b is the whole or the second number (no unit)
- Percentage is the result, expressed with a % sign
If you need to add or subtract a percentage from a number, the formula becomes:
Result = base × (1 ± percentage/100)
For example, increasing 200 by 15% is 200 × 1.15 = 230. The calculator above uses the first formula directly; you can adapt it for increases by using the second formula in your own calculations.
Worked Example
Using the default values from the calculator: a = 30, b = 150.
- Divide the first number by the second: 30 ÷ 150 = 0.2
- Multiply by 100 to get the percentage: 0.2 × 100 = 20%
- The difference is 150 − 30 = 120
So 30 is 20% of 150. The calculator shows 20.00% as the headline result and 120 as the difference. This matches the formula exactly.
When to Use This Calculator
You might need to find a percentage in many everyday situations:
- Test scores: if you got 42 out of 60, what percent is that? (42 ÷ 60 × 100 = 70%)
- Discounts: a $40 item is marked down to $32. What percent off is that? (8 ÷ 40 × 100 = 20% off)
- Growth: a population went from 500 to 650. What percent increase is that? (150 ÷ 500 × 100 = 30% increase)
- Budgeting: if rent is $900 out of a $3,000 income, what percent goes to rent? (900 ÷ 3000 × 100 = 30%)
In all these cases, you are comparing a part to a whole. The calculator simplifies the arithmetic, but understanding the formula lets you verify results and apply it when you don’t have a calculator handy.
How to Read the Result
The percentage tells you the ratio of the first number to the second, scaled to 100. A result of 100% means the two numbers are equal. A result below 100% means the first number is smaller than the second; above 100% means it is larger.
For example, if you enter 75 and 50, the result is 150%, meaning 75 is 1.5 times 50. The difference output (25) is the absolute gap between the numbers, not the percentage difference. If you need the percentage difference (which treats both numbers symmetrically), use the formula: (|a − b| / ((a+b)/2)) × 100.
Also note that the order matters. 30 as a percentage of 150 is 20%, but 150 as a percentage of 30 is 500%. Always double-check which number is the “part� and which is the “whole.�
Common Mistakes and How to Avoid Them
- Swapping the numbers: The percentage is not symmetric. Always decide which number is the base (the whole) before entering.
- Forgetting to multiply by 100: The ratio 0.2 is not the percentage; 20% is. The calculator does this for you, but when doing it manually, don’t skip the ×100.
- Mixing up percentage increase vs. percentage of: “What percent is 30 of 150?� is different from “What is a 30% increase on 150?� The latter would be 150 × 1.30 = 195.
- Rounding too early: If you round intermediate steps, the final percentage can be off. Keep at least two decimal places until the end.
These errors are common in schoolwork and quick mental math. Using the calculator reduces the risk, but being aware of them helps you catch mistakes in your own manual calculations.
Limitations of the Formula
The basic percentage formula assumes a linear relationship and works only for positive numbers when you want a meaningful percentage. If the second number is zero, the division is undefined—you cannot express a number as a percentage of zero. The calculator will show an error or a very large number depending on the implementation, but mathematically it has no answer.
Also, percentages are relative, not absolute. A 10% discount on a $1,000 item saves $100, while a 10% discount on a $10 item saves only $1. Always consider the base number when interpreting percentages. For very large or very small numbers, the calculator uses floating-point arithmetic, which may introduce tiny rounding errors, but these are negligible for everyday use.
Alternatives and Related Calculations
If you need a different type of percentage calculation, here are common variations:
- Percentage increase/decrease: (new − old) / old × 100. This tells you the percent change.
- Percentage difference: |a − b| / ((a+b)/2) × 100. This is used when comparing two values without a clear “original.�
- Reverse percentage: if you know the result and the percentage, find the original. For example, 60 is 20% of what number? 60 ÷ 0.20 = 300.
- Percentage points: a change from 10% to 15% is a 5 percentage point increase, but a 50% relative increase. These are often confused.
For any of these, you can adapt the formula above or use a dedicated calculator. The key is to know which quantity you are solving for.
Frequently Asked Questions
What if the second number is zero?
Division by zero is undefined. You cannot calculate a percentage of zero because there is no finite number that represents “how many parts per hundred of nothing.� The calculator will return an error or infinity. In practical terms, you should check your inputs—a zero base usually means a mistake or a situation where a percentage is not meaningful.
How do I calculate a percentage increase using this calculator?
This calculator directly gives you what percent one number is of another. To find a percentage increase, you would first subtract the original from the new value, then divide by the original and multiply by 100. For example, from 50 to 65: (65−50)/50 × 100 = 30% increase. You can use the calculator by entering 15 as the first number and 50 as the second to get 30%.
Is the percentage the same as the fraction?
Yes, a percentage is just a fraction with a denominator of 100. The fraction 30/150 simplifies to 1/5, which is 0.2, and that equals 20%. The calculator converts the fraction to a percentage for you.
Why do I need to multiply by 100?
Because a percentage is a ratio out of 100. The raw ratio (like 0.2) tells you the proportion, but multiplying by 100 scales it to a more intuitive number (20 out of 100). The calculator does this automatically, but understanding it helps you interpret results.
Can I use this for negative numbers?
Yes, mathematically you can, but the meaning becomes tricky. For example, −30 as a percentage of 150 is −20%, which might be interpreted as a 20% decrease. However, percentages with negative bases or parts are not standard and can lead to confusion. It’s usually better to use absolute values or rephrase the problem.
What is the difference between percentage and percentage points?
A percentage is a ratio, while a percentage point is a unit of absolute difference. If a rate goes from 10% to 15%, that is a 5 percentage point increase, but a 50% relative increase (5/10 × 100). This distinction matters in finance, statistics, and news reports.
Related
Formula used
in a | First number | - | 30 | 0 in b | Second number | - | 150 | 0 out p | Percentage | % | a / b * 100 | 2 out d | Difference | - | b - a | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.