Math

Percentage Calculator

Calculate X as a percentage of Y and compute P% of a value.

By Calculator Suite Pro Editorial Team | Last updated March 18, 2026

Use this page for quick formula checks, conversions, and worked examples where units or rounding can change the answer.

Explore the Math group for nearby calculators, examples, and guide links.

X is what % of Y

12.50%

P% of Y

36.00

Formula

(X / Y) * 100

About this calculator

Percentages are used everywhere: discounts, grades, growth rates, ratios, and quick comparisons. This calculator focuses on the two operations people search for most often.

It answers: (1) X is what percent of Y? and (2) What is P% of Y? These cover daily use cases and are easy to verify using the formula card shown in the results.

For quick everyday math, this tool is usually the fastest starting point. For specialized scenarios like loan payments, use the EMI calculator.

How the calculation works

A short explanation of the formula, conversion rule, or arithmetic path behind the result.

  • X as a percentage of Y: (X / Y) x 100.
  • P% of Y: Y x (P / 100).
  • Results are displayed with two decimals for readability.
  • If Y is 0, X/Y is undefined; the calculator avoids showing misleading output.

Formula or conversion rule

These are the formulas, unit rules, and rounding assumptions used by this math page.

  • X as a percentage of Y: (X / Y) x 100.
  • P% of Y: Y x (P / 100).
  • If Y is 0, X/Y is undefined; the calculator avoids showing misleading output.

Where this math tool helps

Use these scenarios to decide whether the calculation fits a homework, measurement, or quick-check task.

  • Discount calculations (20% off)
  • Exam score percentage (45 out of 60)
  • Business metrics (conversion rate)
  • Comparing part-to-whole ratios
  • Tax and service fee estimates
  • Markup and profit percentage checks
  • Budget allocation percentages
  • Quick mental-math verification

How to calculate

  • Enter the part value (X).
  • Enter the whole value (Y).
  • See 'X is what % of Y' instantly.
  • Enter a percentage (P%) to compute 'P% of Y'.
  • Adjust values to test discounts, scores, or ratios quickly.

Math mistakes to avoid

Most errors come from mixed units, reversed inputs, or rounding too early.

  • Using 0 as the whole value (Y), which makes a percentage undefined.
  • Mixing up X and Y (part vs whole).
  • Confusing percentage points with percentage change.
  • Forgetting to convert percent to decimal (P/100) when calculating manually.
  • Rounding too early when doing multi-step calculations.

Calculation tips

  • For discounts, compute the discount as P% of the original price, then subtract from the original price.
  • For exam scores, set X as score and Y as total possible.
  • Use decimals for more precision (for example, 12.5%).
  • If you need a clean final number, round only at the end.
  • For loan comparisons, use EMI Calculator instead of manual percentage math.
  • For splitting restaurant totals, use Tip Calculator for faster results.

Glossary

Quick definitions for units, formulas, and math terms used on this page.

Part (X)

The portion value in a part-to-whole comparison.

Whole (Y)

The total value in a part-to-whole comparison.

Percentage points

The absolute difference between two percentages (not a relative change).

Worked examples

X as percent of Y

Input: X: 25, Y: 200

Output: 12.50%

Percent of a number

Input: P: 18%, Y: 200

Output: 36.00

Exam score

Input: X: 45, Y: 60

Output: 75.00%

FAQ

What is the formula for percentage?

Percentage = (Part / Whole) x 100. For percent of a number: value = Whole x (Percent / 100).

Can it handle decimals?

Yes. You can enter decimal values and decimal percentages for precision.

Why is Y=0 not allowed for X as % of Y?

Because dividing by zero is undefined. The calculator avoids showing incorrect or infinite results.

How do I calculate a discount?

Calculate the discount amount as P% of the original price, then subtract it from the original price.

Is a percentage the same as percentage points?

No. Percentage points are the absolute difference between two percentages (for example, 10% to 12% is +2 points).

Can I calculate percent increase/decrease here?

You can compute (new-old) as a percent of old using the 'X is what % of Y' part with X=(new-old) and Y=old.

Related math calculators and converters

Use nearby math tools when the same task needs another unit, percentage, or formula check.