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

Browse more tools in All Tools.

X is what % of Y

12.50%

P% of Y

36.00

Formula

(X / Y) * 100

On this page

Jump to examples, FAQs, and detailed explanations without endless scrolling.

Direct answer

Percentage Calculator gives an instant result from your inputs. Percentages are used everywhere: discounts, grades, growth rates, ratios, and quick comparisons. This calculator focuses on the two operations people search for most often. Formula snapshot: X as a percentage of Y: (X / Y) x 100. Example: X: 25, Y: 200 -> 12.50%.

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 it works

A quick explanation of the logic behind the results, so you can trust what you see.

  • 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 used

These are the core formulas and logic rules used by this calculator.

  • 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.

Common use cases

Below are common real-world scenarios where this calculator is useful.

  • 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 use

  • 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.

Common mistakes to avoid

These are the issues that most often cause confusing results.

  • 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.

Tips and notes

  • 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 common terms used in this calculator.

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).

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.

Is this calculator free to use?

Yes. This calculator is free to use without signup.

Can I use this calculator on mobile?

Yes. The calculator is mobile-friendly and works on desktop as well.

Related calculators

Explore related tools to solve similar problems without leaving the site.