Percentage Calculator of Two Numbers
- Calculation type
- 1
- You entered
- First number
- 50
- You entered
- Second number
- 200
- You entered
This calculator works out what percentage one number is of another, or finds a percentage of a given number. You enter the two numbers, choose the type of calculation, and get the percentage result instantly. The formula and a step-by-step example are shown below so you can verify the answer and understand the math.
Formula
The core formula is straightforward: Percentage = (Part ÷ Whole) × 100. In this calculator, a is the part (the number you are comparing), b is the whole (the number you are comparing against), and the result is the percentage. For example, if you have 50 apples and 200 total fruits, the percentage of apples is (50 ÷ 200) × 100 = 25%. If you instead want to find what 25% of 200 is, you rearrange the formula: Part = (Percentage × Whole) ÷ 100, which gives (25 × 200) ÷ 100 = 50. The calculator uses the first form by default, but you can swap the inputs to do the second type.
Worked Example
Using the default values: a = 50, b = 200. Step 1: Divide the part by the whole: 50 ÷ 200 = 0.25. Step 2: Multiply by 100 to convert to a percentage: 0.25 × 100 = 25. So the answer is 25%. This matches the calculator output. If you had entered a = 25 and b = 200, the result would be (25 ÷ 200) × 100 = 12.5%.
How to Use the Calculator
Select the calculation type from the dropdown: 1 for “what percent is A of B”, 2 for “what is A% of B”, or 3 for “B is what percent of A” (which is the same as type 1 with swapped inputs). Then enter the two numbers. The first output is always the percentage, and the calculator handles the formula internally. You can use decimals, negative numbers (though percentages of negative numbers are unusual), and large numbers. The result is rounded to two decimal places by default, but you can change the precision in the output settings if needed.
When to Use This Calculation
Percentage calculations appear in everyday life: calculating discounts (e.g., what percent off is 30% of $80?), understanding test scores (e.g., 45 out of 60 is 75%), comparing proportions (e.g., what percentage of the class is female?), and analyzing data (e.g., what percent of sales come from a particular product). In finance, percentages are used for interest rates, growth rates, and profit margins. In science, they express concentrations and error margins. The key is identifying which number is the “part” and which is the “whole” – the whole is always the total or the reference point.
Common Mistakes and Misconceptions
- Mixing up part and whole: For “what percentage of 200 is 50?”, the part is 50 and the whole is 200. If you swap them, you get 400% instead of 25%.
- Forgetting to multiply by 100: The ratio 0.25 is not the percentage; you must multiply by 100 to get 25%.
- Using percentage increase incorrectly: A 50% increase on 200 is 300, not 250. The formula for increase is (new – old) / old × 100. This calculator does not do increase/decrease; it only does part/whole comparisons.
- Rounding too early: If you round intermediate steps, you can get a wrong final answer. Keep full precision until the end.
Limits of the Formula
The part/whole formula assumes a linear relationship and works for any real numbers, but it has limitations. If the whole is zero, the division is undefined – you cannot compute a percentage. Also, percentages above 100% are valid (e.g., 150% of a number) but can be confusing in contexts like “percent change” where the interpretation differs. The formula also assumes the part is a subset of the whole; if the part is larger than the whole, the percentage exceeds 100%, which is mathematically correct but may indicate a data entry error. For percentage change (increase or decrease), you need a different formula: (new – old) / old × 100.
Frequently Asked Questions
How do I calculate what percent one number is of another?
Divide the first number (the part) by the second number (the whole), then multiply by 100. For example, 30 is what percent of 50? (30 ÷ 50) × 100 = 60%.
What is the difference between percentage and percentage point?
A percentage is a ratio expressed as a fraction of 100. A percentage point is the arithmetic difference between two percentages. For example, an increase from 10% to 15% is a 5 percentage point increase, but a 50% increase (relative to the original 10%).
Can I use this calculator for percentage increase or decrease?
No, this calculator only computes part/whole percentages. For increase/decrease, use the formula (new – old) / old × 100. For example, if a price goes from $50 to $60, the increase is (60-50)/50 × 100 = 20%.
What if the second number is zero?
Division by zero is undefined, so the calculator will show an error or “infinity”. In real terms, you cannot express a part as a percentage of nothing. Check your inputs to ensure the whole is not zero.
How do I find the original number when I know the percentage and the part?
Rearrange the formula: Whole = Part × 100 / Percentage. For example, if 25% of a number is 50, then the whole is (50 × 100) / 25 = 200. This calculator does not directly do that, but you can use it by entering the part as the first number and the percentage as the second, then interpreting the result as the whole (since (part / percentage) × 100 = whole).
Why do I get a percentage over 100?
That happens when the part is larger than the whole. For instance, 150 is 150% of 100. This is valid in many contexts, like when comparing a value to a smaller baseline. Just ensure you have the correct part and whole.
Related
Formula used
in t | Calculation type | - | 1 | 0 in a | First number | - | 50 | 0 in b | Second number | - | 200 | 0 out pct | Percentage | % | (a / b) * 100 | 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.