Skip to calculator

Mathematics · Percentages

Find what percent a part is of a whole

Enter two numbers of the same kind. The tool returns (part ÷ total) × 100 — useful for a test score, a slice of a budget, or a share of a count.

Calculate

The amount you are measuring against the total (score, dollars, headcount). Comma or point decimals are fine.

The reference amount (max score, budget, population). Cannot be zero.

How the calculator works

Both inputs are read as decimals. The engine divides the part by the total, multiplies by 100, and rounds the display. Internal precision is higher than what you see. No unit conversion happens: $25 of $200 and 25 students of 200 students both yield 12.5%.

Formula and method

p = (part ÷ total) × 100

p is the percent. If part = 25 and total = 200, p = 12.5. A part larger than the total is over 100%; that is allowed.

This page answers only “what fraction of the total, on a base of 100?” It does not measure a change over time. If the total is 0, division is undefined and the run stops. JavaScript floating point is not banker’s decimal arithmetic; display rounding is typically two places.

Worked example

25 points on a 200-point scale

part = 25, total = 200

  1. Divide 25 by 200: 0.125.
  2. Multiply by 100: 12.5.

25 is 12.5% of 200.

Input notes

Part
Numerator of the ratio. It may exceed the total (a budget at 120%, for example).
Total
Denominator: the 100% reference. Zero is refused. The sign of the total carries into the result.

Assumptions and limits

Assumptions

  • Part and total use the same unit.
  • You want part relative to total, not a percent change from one date to another.

Limits

  • Display rounding hides extra floating-point digits.
  • Increase, decrease, discount, and tip each have their own page.

How to read the result

12.5% means 12.5 hundredths of the total — one eighth. If your two numbers are “before” and “after,” use percent increase or percent decrease instead.

Common mistakes

  • Swapping part and total (200 of 25 instead of 25 of 200).

    The part is what you measured; the total is the reference. Here that is 25 / 200.

  • Mixing up “25% of 200” with “25 is what percent of 200.”

    25% of 200 is 50. This page does the other direction: 25 is 12.5% of 200.

Methodology · Sources

Related calculations

Frequently asked questions

What is the formula for a percentage?

(part ÷ total) × 100.

Form the ratio part/total, then express it in hundredths. With 15 and 80: 15 ÷ 80 = 0.1875, so 18.75%. The total is the base of 100.

Can the part be larger than the total?

Yes. The result is then above 100%.

250 of 200 is 125%. That reading is useful for a target you overshot or an index above its base. It is not a “broken” percent.

Why can’t the total be zero?

The formula divides by the total.

Division by zero is undefined. Use a nonzero reference. A tiny base inflates the percent, so read small denominators with care.

Author and update

Written by Rédaction HexaCalc (editorial team). Content last updated: August 25, 2026. No third-party medical or financial review is claimed.

This calculation uses a standard mathematical identity. See also the methodology.

Measuring a rise, not a share

If your two numbers are a before and an after, you need a relative change, not a part of a total.

Calculate a percent increase

Category: Mathematics