This calculator works out what percent one number is of another — you enter the part and the whole, and it returns the percentage. For example, enter 30 as the part and 150 as the whole, and you get 20%. It also shows the decimal equivalent and the remaining fraction, so you can see the relationship at a glance.
Formula
The core formula is:
Percentage = (Part ÷ Whole) × 100
Where:
- Part (p) is the number you are comparing — the portion you have. It can be any non-negative number.
- Whole (w) is the total or base number. It must be greater than zero (you cannot divide by zero).
- Percentage is the result, expressed as a number out of 100. For example, 0.25 as a decimal becomes 25%.
The calculator also returns the decimal equivalent (p ÷ w), which is the same ratio without the ×100. This is useful when you need to multiply a quantity by a factor rather than a percentage.
Worked Example
Using the default values: Part = 30, Whole = 150.
- Divide the part by the whole: 30 ÷ 150 = 0.2
- Multiply by 100 to get the percentage: 0.2 × 100 = 20%
- The decimal equivalent is 0.2 (which is 20% as a decimal).
So 30 is 20% of 150. The calculator shows 20.00% and 0.2000.
Assumptions
- The whole (denominator) must be positive; a zero or negative whole is not meaningful for a percentage.
- The part can be zero (0% of the whole) or larger than the whole (result > 100%).
- Both numbers are treated as pure numbers — no units are assumed. If you are working with quantities like grams or dollars, the units must be the same for both part and whole.
- The result is rounded to two decimal places for the percentage and four for the decimal.
When to Use This Calculator
This is a universal tool for any situation where you have a part and a whole and want to express the relationship as a percentage. Common uses include:
- Calculating a test score: 42 correct out of 50 questions → 84%.
- Finding the percentage of a budget spent: $350 spent out of $1,000 → 35%.
- Comparing survey results: 120 respondents out of 400 → 30%.
- Working out discounts: if an item is $80 and you save $20, the discount is 25%.
- Converting fractions to percentages: 3/4 → 75%.
In science and lab work, you might use it to express yields (actual amount ÷ theoretical amount × 100), error percentages, or composition by mass. For instance, if a reaction produces 2.5 g of product but the theoretical yield is 3.0 g, the percent yield is 83.33%.
How to Read the Result
The percentage tells you how many parts per hundred the part represents. A result of 20% means 20 out of every 100 units of the whole. The decimal equivalent (0.2) is the same ratio without the ×100 — you can multiply the whole by the decimal to get the part back: 150 × 0.2 = 30.
If the percentage is over 100%, the part is larger than the whole. For example, if you have 200 apples and the whole is 150 apples, that’s 133.33%. This is perfectly valid in contexts like growth (e.g., a value increased from 50 to 75 is 150% of the original).
Common Mistakes and Misconceptions
- Swapping part and whole: The most common error. Remember the part is the number you are comparing, and the whole is the base. For example, “What percent of 200 is 50?” — here 50 is the part, 200 is the whole. If you swap, you get 400% instead of 25%.
- Forgetting to multiply by 100: Dividing part by whole gives a decimal (0.25), not a percentage. Multiply by 100 to get 25%.
- Unit mismatch: Both part and whole must be in the same unit. If you have 500 mL out of 2 L, convert 2 L to 2000 mL first, then divide.
- Rounding too early: If you round the decimal to 0.3 before multiplying, you get 30% instead of 33.33%. Keep full precision until the final step.
- Treating percentage as a whole number: 25% is 0.25, not 25. When using the result in further calculations, use the decimal form.
Limitations of the Formula
This formula assumes a simple linear relationship. It does not account for weighted percentages, compound growth, or situations where the whole changes over time. For example, if you want the percentage increase from 50 to 75, the formula is different: (75-50)/50 × 100 = 50%. That is a percentage change, not a part-of-whole percentage. This calculator is for part-of-whole, not change.
Also, the result is only as meaningful as the data. If the whole is an estimate or the part is measured with error, the percentage inherits that uncertainty. In lab work, always report the original numbers along with the percentage.
Frequently Asked Questions
How do I calculate what percent one number is of another without a calculator?
Divide the part by the whole, then multiply by 100. For example, 12 out of 60: 12 ÷ 60 = 0.2, then 0.2 × 100 = 20%. You can also simplify the fraction first if the numbers are easy, like 12/60 = 1/5 = 0.2.
What if the part is larger than the whole?
Then the percentage is greater than 100%. For instance, 80 out of 50 is 160%. This often happens when comparing growth or when the “whole” is a baseline that the part exceeds. The calculator handles it fine.
How do I find the part if I know the percentage and the whole?
Multiply the whole by the percentage expressed as a decimal. For example, 25% of 200 = 200 × 0.25 = 50. This is the reverse operation — the calculator here does the forward direction, but you can use the decimal output to flip it.
What is the difference between percentage and percentage points?
A percentage is a ratio out of 100. A percentage point is a unit of arithmetic difference between two percentages. For example, if a rate goes from 10% to 15%, it increased by 5 percentage points, but by 50% relative (because 5/10 = 0.5). This calculator gives the ratio, not the difference.
Can I use this for percentage change (increase or decrease)?
No, this calculator is for part-of-whole. For percentage change, use the formula: (new value – old value) ÷ old value × 100. For example, from 50 to 75 is a 50% increase. If you use this calculator with part=25 and whole=50, you get 50%, which coincidentally matches, but that is not the correct method for changes.
Why does the calculator show a decimal equivalent?
The decimal equivalent is the same ratio without the ×100. It is useful when you need to multiply the whole by a factor. For instance, if you know 30 is 20% of 150, the decimal 0.2 lets you compute 150 × 0.2 = 30. Many calculations in science and finance use the decimal form directly.
Related
Formula used
in p | Part (the number you have) | - | 30 | 0 in w | Whole (the total or base) | - | 150 | 0.000001 out percent | Percentage | % | p / w * 100 | 2 out dec | Decimal equivalent | - | p / w | 4
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 with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Within 10 Percent Calculator – How to Use It5.00 %
- W/W Percentage Calculator: Formula & Examples2.92 %
- Percent Equation: Formula & How to Use It
- UWW GPA Calculator: How to Compute Your GPA
- PPM to w/w Calculator: Convert Easily5.0000 %
- RWW Calculator NHS: How It Works & How to Use It1,440,000 L