What Percent Is One Number of Another? (With Examples)

45 is 25% of 180. The working takes two steps: divide 45 by 180 to get 0.25, then multiply by 100 to get 25%. The question has several wordings, such as what percentage is X of Y, or how to find what percent one number is of another. Every wording asks for the same division, the part over the total, times 100. This guide works the calculator's default example step by step, then turns test results, budget shares and progress into percentages the same way.

45 of 180
25%
Rest of whole
135
As a decimal
0.250
As a fraction
1/4

The short answer: divide, then multiply by 100

The formula is Percentage = (part ÷ whole) × 100. The part is the number you are measuring, and the total is the number it is compared with. On the calculator this is Mode 2, labelled X is what percent of Y. Its default figures are 45 and 180, so follow the steps below on the calculator for the same result at every step.

  1. Divide the part by the whole: 45 ÷ 180 = 0.25.
  2. Multiply by 100: 0.25 × 100 = 25.
  3. Read the rest of the whole: 180 − 45 = 135, the other 75%, and the calculator shows the decimal 0.250 and the fraction 1/4 under the answer.

A quick check keeps you honest: run the answer backwards. 25% of 180 is 45, so a check that does not land on your part means the numbers went in the wrong way round. The same check works in every case in this guide. A percentage and its check are the same division read in opposite directions, and the calculator's Mode 2 working shows the division it used under every answer.

Test scores as percentages

A test result is the most common form of this question. The points you earned are the part, and the points available are the whole. The same division turns any result into a percentage. The chart below runs five ordinary scores through the formula, and every row shows the division, the percentage and the points left over, which is the part that went unanswered or wrong.

ScoreDivisionPercentagePoints left
42 of 5042 ÷ 50 = 0.8484%8
35 of 5035 ÷ 50 = 0.7070%15
68 of 8068 ÷ 80 = 0.8585%12
15 of 6015 ÷ 60 = 0.2525%45
30 of 12030 ÷ 120 = 0.2525%90

The same percentage can come from very different scores. 37 out of 148, 8 out of 32 and 30 out of 120 are all 25%. A percentage alone never tells you how long the test was. Two cautions travel with the chart: add the points first, then divide when a grade combines several papers. 16 out of 20 and 54 out of 60 combine to 70 out of 80, or 87.5%. The plain average of 80% and 90% gives 85%, which overstates the shorter paper. Second, a percentage is not a letter grade on its own, as the grade boundaries belong to the teacher or the exam board, not to the arithmetic.

The order matters: part on top, whole on the bottom

Swapping the two numbers answers a different question. The gap between the two answers can be enormous, which is why this mistake is the most common in percentage arithmetic. The rule is short: always put the thing you are measuring on top and the total on the bottom. The number after the word of in the question is the total.

QuestionDivisionAnswer
12 of 4812 ÷ 48 × 10025%
48 of 1248 ÷ 12 × 100400%
40 of 5040 ÷ 50 × 10080%
50 of 4050 ÷ 40 × 100125%
15 of 6015 ÷ 60 × 10025%
60 of 1560 ÷ 15 × 100400%

The same trap hides in a subtler choice: picking the wrong total when several totals are on the table. A team that finished 15 of its 20 tasks is 75% done with its own work. Those same 15 tasks are only 25% of a 60-task project. Both figures are correct, because they describe different scopes, so label the total before you share the result.

More than 100%, zero, and a zero total

A percentage can pass 100% whenever the part is bigger than the total. That is not an error but a different kind of comparison, usually progress against a target rather than a part of a fixed total. 48 units against a target of 12 is 400% of target. 150 against 100 is 150%, and 120 against 100 is 120%. A part exactly equal to its total is 100%, and a part of zero is 0%.

The case with no answer at all is a zero total. Dividing by zero is undefined in arithmetic, and no percentage exists for it. The calculator handles that case by showing 0% with dashes where the working and the decimal would go. That is a placeholder on the page rather than a mathematical result, so treat any 0% that came from a zero whole as missing, not as a real part, and check the total before you trust the answer.

One display detail matters when the part passes the whole: the calculator shows the rest of the whole as 0 rather than a negative number. 48 of 12 shows a rest of 0, not −36. The part has already covered the total and gone 36 past it, which is exactly what the 400% says.

Budgets, progress and shares of a total

Outside the classroom the same division measures budget shares and progress. The percentage of total wording is simply this question asked about a line of a larger total. The chart below runs three budget rows and two progress counts through the formula. Every row names the part, the total and the result in a line.

Part and wholeDivisionShareRest
$340 of $2,000340 ÷ 2,000 × 10017%$1,660
$450 of $2,000450 ÷ 2,000 × 10022.5%$1,550
$300 of $2,000300 ÷ 2,000 × 10015%$1,700
45 tasks of 6045 ÷ 60 × 10075%15 tasks
18 jobs of 2418 ÷ 24 × 10075%6 jobs

Shares of a total have a built-in check, because they must add to 100% when every part is counted. The two budget lines above take 17% plus 22.5%, or 39.5%, between them. The remaining $1,210 is 60.5% of the budget, and 17 plus 22.5 plus 60.5 is exactly 100, so a set of parts that adds to anything else means a line is missing or a whole was mixed up. The same check works for hours: 18 hours out of 120 total hours is 15% of the total, and the other 102 hours are the remaining 85%.

Finding the whole, and the two questions this is not

The same three numbers can be rearranged to find the total instead. That is the reverse of this guide's question. Divide the part by the percentage as a decimal, so whole = part ÷ (percentage ÷ 100). If 45 is 15% of a number, the number is 45 ÷ 0.15 = 300. The check is immediate, as 15% of 300 is 45, while 30 as 12% of a number gives 30 ÷ 0.12 = 250, and 12% of 250 is 30.

Two nearby questions are different. Each has its own mode on the calculator, so keep them separate to avoid answering the wrong question. When you know the percentage and want the amount, as in 20% of 250 is 50, that is Mode 1, and how to calculate a percentage covers that case. A price rising from 80 to 100 compares two moments, so that is a change rather than a share. How to calculate percentage increase covers it: a share is a snapshot of a moment, while a change compares two moments.

Three checks catch most slips. Run the answer backwards, as the percentage of the whole must return the part. Type =45/180 into a spreadsheet and format the cell as a percentage, which shows 25% without multiplying by 100 a second time. Re-enter the two numbers in Mode 2 of the Percentage Calculator, where the working under the answer shows the division it used.

Frequently asked questions

What percent is 45 of 180?

25%. Divide 45 by 180 to get 0.25, then multiply by 100. The rest is 180 − 45 = 135, the other 75%.

How do I find what percent one number is of another?

Divide the part by the whole and multiply by 100. For 42 out of 50, that is 42 ÷ 50 × 100 = 84%. The part goes on top and the whole goes on the bottom.

What is the formula for what percentage X is of Y?

Percentage = (X ÷ Y) × 100. X is the part you are measuring, and Y is the whole you compare it with.

Can the answer be more than 100%?

Yes. The percentage passes 100% whenever the part is bigger than the whole. 48 is 400% of 12, and 150 is 150% of 100.

What if the second number is zero?

There is no defined percentage, because dividing by zero is undefined. The calculator shows 0% with dashes where the working and decimal would go, as a placeholder, not a result.

What is the difference between a share and a percentage increase?

A share is a snapshot of one moment: 45 is 25% of 180. An increase compares two moments: a price rising from 80 to 100 is a 25% increase. The two use different divisions.

How do I turn a test score into a percentage?

Divide the points you earned by the points possible, then multiply by 100. 42 points out of 50 is 42 ÷ 50 × 100 = 84%.

How to calculate percentage of marks?

Use the same division: the score earned over the total, times 100. 420 out of 500 is 420 ÷ 500 × 100 = 84%. In the US this is usually called a test score or points, not marks.

How do I find the whole when I know the part and the percent?

Divide the part by the percentage as a decimal. If 45 is 15% of a number, the number is 45 ÷ 0.15 = 300.

What percent is 12 of 48, and what percent is 48 of 12?

12 is 25% of 48, and 48 is 400% of 12. The first number is the part and the second is the whole, so swapping them answers a different question.

How do I check my percentage answer?

Run it backwards: 25% of 180 must give 45 again. Or type =45/180 into a spreadsheet and format the cell as a percentage to see 25%, or re-enter the numbers in Mode 2 of the Percentage Calculator.

For educational purposes only. Disclaimer: this guide gives arithmetic and estimates only, not financial advice. Sources: CalcCentrals, “Percentage Calculator”; PonderLoop, “How to Calculate Percentages”; Toolbita, “Percentage Calculator”; OnlinePercentage, “Percentage Calculator”; CalcMojo, “Percentage Calculator”; Percent Made Simple, “What Percentage Is X of Y?”; Percentage Calculator.

Try your own numbers

Run your own numbers through the Percentage Calculator — pick Mode 2, labelled X is what percent of Y, and change the part or the whole — and see your own percentage, your own rest of the whole, and your own decimal and fraction. The defaults, 45 and 180, give 25%, a rest of 135, the decimal 0.250 and the fraction 1/4.

Last updated: November 18, 2026