Percentage Formula
Which percentage formula do you need right now?
Enter any two values to find the percentage relationship between them — or calculate a percentage of a number directly. Covers the three most common percentage questions in one place.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Think of percentage as a translator between different scales. You have two quantities measured in incompatible units — maybe one is a salary increase in dollars and the other is a starting salary — and you want a single number that works regardless of scale. Percentage converts the ratio to a universal scale of 0 to 100 (and beyond, when a value exceeds the base).
The three modes on this calculator represent the three possible unknowns in one equation. The underlying relationship is always the same: Part = (Percent / 100) x Whole. If you know any two of those three quantities, the formula isolates the third. The first mode finds the part, the second mode finds the percent, and the third mode finds the whole. No new math is introduced — just algebraic rearrangement of the same identity.
One thing that trips people up: percentage is dimensionless. It does not care whether your values are dollars, grams, people, or pixels. The formula operates purely on the numeric ratio. This means the same calculator works for a budget analysis, a body-fat estimate, a test score, and a chemical concentration — the context changes, the arithmetic does not.
When To Use This
Right tool, right situation
Use this calculator any time you need to express one quantity as a share of another, find a proportion of a total, or reverse-engineer a missing whole from a known share and rate. Common situations: calculating tip or discount amounts, tracking progress toward a goal (steps completed out of total), grading (questions correct out of total), nutrition tracking (macro grams as a percent of daily target), and financial reporting (actual spend as a percent of budget).
This calculator is also the right tool when you already know the result and the rate but need the original base — common in survey analysis, tax back-calculation, and historical comparison where the full dataset is unavailable but a percentage and a partial count are published.
It is not the right tool for compound percentage changes (such as investment returns over multiple periods), percentage-point differences (a change from 40% to 50% is 10 percentage points, not 25%), or percentage error in scientific measurement. Those questions require additional formula steps beyond a single ratio calculation.
Common Mistakes
Why results sometimes look wrong
Mistake 1 — Swapping part and whole. The formula requires Part in the numerator and Whole in the denominator. Entering them in reverse produces a reciprocal — for the example values of 30 and 200, putting 200 over 30 gives a number above 600% rather than 15%. If your answer feels implausibly large, check which number is the baseline.
Mistake 2 — Forgetting to multiply by 100. Stopping after the division step gives you a decimal ratio ( 0.15 in the second mode with the example inputs), not a percentage. The x100 step is what makes the number a percentage rather than a proportion. Both are valid ways to express the same relationship, but they communicate differently and cannot be mixed without conversion.
Mistake 3 — Applying the first mode when the second is needed. If someone asks 'what percentage did the company grow?' they need the second mode (part over whole times 100). Using the first mode instead would tell you a dollar amount, not a rate. Reading the question carefully — is the unknown a rate or a quantity? — is the fastest way to pick the right formula variant.
The Math
Worked examples and deeper derivation
The foundational identity is: Percent = (A / B) x 100. Here A is the part, B is the whole, and 100 scales the raw ratio to the familiar 0-to-100 range. For the example values of 30 and 200, the result is 15%.
Rearranging for the part: Part = (Percent / 100) x Whole. Divide the percentage by 100 first to convert it back to a raw ratio, then multiply by the whole. This is the first mode on the calculator.
Rearranging for the whole: Whole = (Part / Percent) x 100. Here you divide the known part by the known percentage, then scale up. This is the third mode. The division by Percent is where the zero-denominator guard matters — if the percentage is zero, the equation has no finite solution, which is why the calculator stops and warns you rather than returning infinity.
Expert Unlock
The thing most explanations skip
The formula assumes the relationship is linear and that the 'whole' is a fixed, well-defined quantity. In practice, the denominator choice is the entire analytical judgment call: gross revenue, net revenue, or adjusted revenue all produce different margin percentages from the same numerator. When communicating percentages professionally, always state the denominator explicitly — two analysts reporting different figures are often using different bases, not making arithmetic errors.
At the boundary where both A and B are close to zero, floating-point rounding in the division step can produce visible artifacts. For values below about 0.001, consider whether the percentage framing is the most informative representation or whether a ratio, a log scale, or scientific notation serves the audience better.
Not sure which percentage formula applies to your problem?
The core formula is Percentage = (Part / Whole) x 100. This answers questions like what percent is 30 of 200, giving 15%% using the example values on this page. The three common variations just rearrange which element is the unknown: the percentage itself, the part, or the whole.
When you know the percentage and the whole and need the part, the formula becomes Part = (Percentage / 100) x Whole. When you know the part and the percentage and need the whole, it becomes Whole = (Part / Percentage) x 100. Each mode on this calculator applies the correct arrangement automatically.
Divide the first number by the second, then multiply by 100. With the example values on this page — 30 and 200 — that gives 15%%. This is the most common percentage question and corresponds to the What percent is A of B? mode.
A quick sanity check: if your answer is over 100%, the first number is larger than the second, which is valid — it just means A exceeds B. If you expect a value under 1%, make sure you have not accidentally swapped A and B.
The most common cause is using the wrong formula mode. Percent of (X% of a number) and what percent is A of B look similar but solve for different unknowns — mixing them up produces a result that is off by a factor of 100 or inverted entirely.
A second frequent issue is order: percentage is always the part divided by the whole, not the reverse. If you are computing a growth rate or a share, double-check which number is the baseline (the whole) before entering it in the second field.
Need something this doesn't cover?
Suggest a tool — we'll build it →