To find X% of a number, multiply the number by X and divide by 100, which gives the formula (X ÷ 100) × Y. For example, 15% of 200 works out to (15 ÷ 100) × 200 = 30, because 0.15 × 200 = 30. This single operation — turn the percentage into a decimal, then multiply — answers the most common percentage question people ask: how much is a given percentage of some amount. A 20% discount on a $60 jacket is a $12 saving. An 18% tip on a $45 restaurant bill is $8.10. Six-and-a-half percent sales tax on a $1,240 purchase works out to $80.60. The Percentage Calculator's "X% of Y" mode applies that formula for you the moment you finish typing, so you get the part-of-a-whole answer without doing the division by 100 by hand. Negative inputs are accepted where they make sense, results are rounded for a clean display while staying accurate to full precision underneath, and the worked formula is echoed back so you can check the arithmetic or learn how it was done. Every calculation runs entirely in your browser, so nothing is uploaded and there is no button to press.

how to calculate percentage of a number
How to Calculate Percentage of a Number (With Examples)

The Three Percentage Questions (and Which Mode Solves Each)

Most people think percentages mean one thing — "X% of Y" — but there are really three distinct percentage questions, and the Percentage Calculator handles all of them in the same interface. Picking the right mode is the first step, and the field labels update automatically to match whichever one you choose. Here is how the three modes line up:

ModeFormulaUse when…
X% of Y(X ÷ 100) × YYou have a percentage and a number, and want the part of the whole — a discount, a tip, sales tax, commission, or interest for one period.
X is what % of YX ÷ Y × 100You have a part and a whole, and want to express the part as a percentage — a test score, a completion rate, market share, or budget spent.
% change(new − old) ÷ old × 100You have a before and after value, and want growth or decline — a price rise, a salary bump, investment return, traffic growth, or weight change.

"X% of Y" is the mode that matches the keyword you're searching, and it is the focus of the rest of the article. The other two modes exist because percentage questions in real life don't always start with a percentage — sometimes you start with two raw numbers and need to turn them into a proportion, or with a before and after and need to know how big the change was. When the second number in "X is what % of Y" is zero, or the starting value in "% change" is zero, the tool shows a clear message rather than a misleading result, because dividing by zero has no meaning.

The Formula for Finding X% of a Number

The "X% of Y" formula is short once you see why it works. The word "percent" literally means "per hundred", so X% is just X out of every 100. To find how much X% of Y is, turn X% into a decimal by dividing by 100, then multiply by Y. That gives you:

X% of Y = (X ÷ 100) × Y

Written with a decimal instead of a fraction, the same operation is 0.0X × Y when X is a one- or two-digit whole number — so 15% becomes 0.15, 7% becomes 0.07, and 0.5% becomes 0.005. Both forms give the same answer; the decimal version is what you usually type into a calculator.

Worked example, step by step: find 15% of 200.

  • Start with the formula: (X ÷ 100) × Y
  • Substitute X = 15 and Y = 200: (15 ÷ 100) × 200
  • Do the division: 15 ÷ 100 = 0.15
  • Multiply by Y: 0.15 × 200 = 30
  • Final answer: 15% of 200 = 30

The formula works for any X and any Y, including decimals like 6.5%, fractions like ⅓%, negatives like −10%, and very large or very small numbers. Because it just scales the input by the percentage, the operation is the same whether the number is $60, 1,240 people, or 0.5 kilograms.

The formula can also be rearranged. If you know the percentage and the part but not the whole, divide the part by (X ÷ 100) to recover Y. If you know the part and the whole but not the percentage, divide the part by the whole and multiply by 100 — which is exactly what the "X is what % of Y" mode does on the same tool.

How to Find X% of a Number With the Calculator

The Percentage Calculator does the math for you as soon as you finish typing, so you get the answer without doing the division by 100 by hand. Three steps cover every "X% of Y" calculation:

  1. Open the Percentage Calculator and select "X% of Y" from the mode options — the one designed for finding a percentage of a number.
  2. Type your percentage into the first field and the number you want the percentage of into the second field. The labels update to match the mode, and negative numbers are accepted wherever they make sense.
  3. Read the answer and the worked formula below the fields — they update the moment you finish typing, so there is no button to press and nothing is sent to a server, because every calculation runs in your browser.

Because results are rounded for a clean display while staying accurate to full precision underneath, you never see floating-point noise like 30.000000000004. If you change a number, the answer and formula update instantly with the new working, which makes the tool just as useful for double-checking your own arithmetic as it is for getting the answer directly.

Where "X% of Y" Shows Up in Real Life

The "find a percentage of a number" question shows up in shopping, dining, finance, schoolwork, and daily budgeting — not just in math class. The percentage isn't fixed, and neither is the number: a Black Friday discount might be 60%, a generous tip might be 25%, sales tax varies by state, and a single exam might be worth anywhere from 5% to 40% of a final grade. The Percentage Calculator handles all of these the same way, because they are all the same operation underneath.

ScenarioTypical percentage rangeWhat you solve
Store discount10% – 50% (sometimes higher during seasonal sales)What you save, and what you pay after the discount
Restaurant tip15% – 22%What to add to the pre-tax bill
Sales tax4% – 10% in most U.S. statesWhat to add at checkout
Commission or fee1% – 10%What you earn, or what you pay as a service charge
Recipe scaling50% – 200%Adjusted ingredient amounts when halving or doubling
Exam or assignment weight5% – 40% of a final gradeHow much a section is worth toward the total

Two patterns come up often enough to be worth naming. First, when the percentage is around 10% and the number is large, you can estimate the answer by moving the decimal one place to the left — 10% of $1,240 is roughly $124, and the tool gives the exact figure. Second, when the percentage is a round number like 10%, 25%, or 50%, the calculation is a single move: 10% is divide-by-10, 25% is divide-by-4, and 50% is divide-by-2. For everything else, the calculator removes the guesswork without changing the underlying math.

Common Percentage Mistakes and Edge Cases

Even with the right formula, three mistakes come up over and over. Watching for them keeps your answers correct and your tool use clean.

Mistake 1: mixing up the percentage and the whole. In (X ÷ 100) × Y, Y is always the total or original amount you are comparing against, and X is the percentage. If you want to know what 8% of $250 is, X = 8 and Y = 250 — not the other way around. Swapping them gives a nonsensical answer that happens to be a much smaller number, which is the kind of error that goes unnoticed in a hurry. Choosing the wrong base is the single most common reason a percentage answer looks wrong.

Mistake 2: ignoring the sign with negative numbers. Negative percentages are valid in the same way that negative temperatures are valid: they mean a quantity moving in the opposite direction. −10% of 200 equals −20, which is what you'd use if you are working out a 10% decrease or a downward adjustment. The Percentage Calculator accepts negative inputs in "X% of Y", and a negative answer in the "% change" mode means a decline — a fall from 250 to 200 is −20%, not "minus twenty percent more".

Mistake 3: relying on memory for unusual percentages. Hand-calculating 6.5% of $1,240 is the kind of problem that invites a slip. The tool gives the exact value because it keeps full precision underneath the rounded display, so the displayed answer is the same number you'd get by hand if you did the arithmetic correctly. For odd percentages like 7.5%, 12.25%, or ⅓%, the calculator is faster and more reliable than working it out on paper.

Beyond those three, the tool also handles a couple of edge cases by design. If you ever switch to the other modes and the second number (the whole) is zero in "X is what % of Y", or the starting value is zero in "% change", the calculator shows a clear message instead of a misleading infinity. This matters because dividing by zero is undefined in math and would otherwise produce a confusing result.

Once you understand that "X% of Y" is just a two-step operation — divide by 100, then multiply — every percentage-of-a-number question becomes a quick mental check or a one-line tool entry. The Percentage Calculator is built around that idea: pick a mode, type two numbers, and read the answer plus the worked formula the moment you finish typing, with nothing sent to a server and nothing to install.

If you're weighing options, Calculate Body Fat Percentage at Home Without Equipment covers this in detail.

If you're weighing options, Chinese Gender Predictor Example With Real Inputs covers this in detail.