Math

What Percent Is X of Y?

Find out what percentage one number is of another. Enter the part and the whole to get the percent instantly. Free and private.

Calculator

How it works

Divide the part by the whole, then multiply by 100.

Privacy Local calculations
Most tools run directly in your browser. Your entered values are not sent to this Worker.

Browse all tools

About the What Percent Is X of Y?

Find out what percentage one number is of another. Enter the part (X) and the whole (Y) to see the share as a percent, for example a test score or a share of a budget.

How to use it

Put the smaller or partial amount in the Part field and the total in the Whole field. The calculator divides the first by the second and shows the share as a percentage.

Formula

Percent = part ÷ whole × 100

Worked example

30 is what percent of 150? 30 ÷ 150 × 100 = 20%.

Understanding your result

A result under 100% means the part is smaller than the whole. Exactly 100% means they are equal, and more than 100% means the part is larger, for example when you compare this year's sales with last year's.

When it is useful

Common mistake

Swapping the two fields. 30 of 150 is 20%, but 150 of 30 is 500%. The whole always goes in the second box.

Part and whole, in that direction

Every "what percent is X of Y?" question has a fixed grammar: the part is on top, the whole is underneath, then × 100. This calculator enforces that grammar with two labelled fields — Part (X) and Whole (Y) — because the most common failure in this family of maths is not arithmetic at all, it is entering the numbers in the wrong slots and getting a confident, completely backwards percentage.

The whole must be non-zero, for a structural reason: dividing by zero is undefined, and percentage-of-zero questions have no honest answer. A part larger than the whole is perfectly legal and produces more than 100% — 42 months of rent in a 36-month contract is 116.67%, which is a real finding, not an overflow. Use the page to recover proportions in every direction: what share of the budget went to software, what percentage of a survey's respondents took the option, how far a renovation got through its planned days.

A worked example, step by step

Problem: a newsletter went to 512 contacts and 64 opened it. What is the open rate?

  1. Identify the whole: 512 contacts, the denominator.
  2. Identify the part: 64 opens, the numerator.
  3. Divide: 64 ÷ 512 = 0.125.
  4. Convert: × 100 = 12.5% open rate.
  5. Sense-check: 10% of 512 is 51.2 and a half of 64 is 32, so 12.5% — slightly above 10% and exactly one-eighth — is coherent.

Because one-eighth is 12.5% exactly, this example is easy to verify mentally and the tool agrees to the digit. With other values the result may end in a long decimal tail; the page shows it to sensible precision rather than rounding away the difference between 15.2% and 15.29%, which can matter in reporting.

Percent shares of 400

PartShare of 400Reading
102.5%tiny slice of a big whole
4010%a tenth
10025%a quarter
20050%half
30075%three quarters
440110%part beyond the whole

The last row is the sanity edge: a share above 100% always means the "whole" was not really the whole — the whole needs contestation (children it covers, retries included, a denominator in another currency).

From the number to the decision

Report shares the way readers budget: with the whole attached. "27 of 360 — 7.5%" outlives a bare 7.5%, because the same share means a different pot in different accounts. When the result is a long decimal, round only once, in the sentence: the tool's 28.125% (9 of 32) reads exactly, the same story at 38 of 250 lands at 15.2%, and neither needs a further digit. If you catch yourself wanting the inverted question — "so what percentage of the part is the whole?" — that is a different calculation: swap the fields and run again rather than inverting a rounded answer, which compounds small error into visible drift.

And when this page's share feeds a report, pair it with the count view from the Average Calculator or the gap view of the Percentage Points Calculator: a reader who sees "12.5% (64 of 512)" plus "3 percentage points below last month" understands at once both the level and the movement — the two things a percentage approval request is really asking.

Mistakes that reverse the story

  • Zero whole. 0 contacts, 0 students, 0 baggage — the tool stops you instead of returning a fake number.
  • Swapping X and Y. "64 of 512" entered as "512 of 64" reports 800%; catch it by asking which number is the container.
  • Adding targets to the whole. Include only the denominator that actually backs the comparison; committed-but-not-delivered work belongs out.
  • Reading contre and points. A rise from 12.5% to 15.5% is 3 percentage points — the relative story (+24%) lives on the Percentage Points Calculator.
  • Trusting one number where units differ. 30 of 120 hours means site time; 30 of 120 invoices means invoices; never merge them to "25% of everything".

Keep exploring

Frequently asked questions

What if the part is bigger than the whole?

The result is above 100%, which simply means the part exceeds the whole.

Why can't the whole be zero?

Dividing by zero is undefined, so the calculator asks for a non-zero whole.

64 is what percent of 512?

64 ÷ 512 × 100 = 12.5%, exactly one-eighth.

Is an answer above 100% legitimate?

Yes. The part can exceed the whole — for instance when a multi-period return is measured against one period's base — and the tool still reports the true share.

How do I turn this share into points?

Keep the two levels (say 12.5% and 15.5%) and run the Percentage Points Calculator: the gap in that language is 3 points.

Related guides

Page reviewed 21 October 2026. Results are estimates for general information. See the methodology and disclaimer.

Browse more tools

Percentage Calculator

Calculate a percentage of any number.

Math

What Percent Is X of Y?

Find what percentage one number is of another.

Math

Percentage Change

Calculate the percentage increase or decrease.

Math

Discount Calculator

Find the sale price after a discount.

Math

VAT Calculator

Add VAT to a net price or extract VAT from a gross price.

Finance

Tip Calculator

Calculate a tip and the total bill.

Finance

Bill Splitter

Split a bill among people, including a tip.

Finance

Average Calculator

Calculate the average of a list of numbers.

Math

Ratio Simplifier

Simplify a ratio of two numbers.

Math

Compound Interest Calculator

Estimate investment growth with compound interest.

Finance

Simple Interest Calculator

Calculate interest without compounding.

Finance

Loan Payment Calculator

Estimate monthly repayments on a fixed-rate loan.

Finance

Savings Goal Calculator

Estimate monthly savings needed to reach a target.

Finance

ROI Calculator

Calculate return on investment.

Finance

Profit Margin Calculator

Calculate profit and profit margin from revenue and costs.

Finance

Markup Calculator

Calculate selling price from cost and markup.

Finance

Currency Converter

Convert currencies using a rate you supply.

Conversions

BMI Calculator

Estimate body mass index from height and weight.

Health

Daily Calorie Estimate

Estimate daily energy needs using the Mifflin–St Jeor equation.

Health

Water Intake Estimator

Estimate a daily water baseline by body weight.

Health

Age Calculator

Calculate age from a date of birth.

Dates

Date Difference

Find the number of days between two dates.

Dates

Add Days to a Date

Find a date a chosen number of days from a start date.

Dates

Length Converter

Convert between common length units.

Conversions

Weight Converter

Convert mass and weight units.

Conversions

Temperature Converter

Convert Celsius, Fahrenheit and Kelvin.

Conversions

Speed Converter

Convert speed between km/h, mph and m/s.

Conversions

Volume Converter

Convert litres, millilitres, gallons and cups.

Conversions

Area Converter

Convert square metres, hectares, acres and more.

Conversions

Data Storage Converter

Convert bytes, kilobytes, megabytes and gigabytes.

Conversions

Word Counter

Count words, characters and sentences.

Text

Text Case Converter

Convert text to uppercase, lowercase or title case.

Text

Password Generator

Generate a random password in your browser.

Utilities

Unix Timestamp Converter

Convert a Unix timestamp into a readable date.

Dates

Character Limit Checker

Check text against a character limit.

Text

BMI Calculator (Imperial)

Estimate BMI using pounds and inches.

Health

Fuel Economy Converter

Convert between L/100 km, km/L and US mpg.

Conversions

Break-even Calculator

Estimate units needed to cover fixed costs.

Finance

Statistics Calculator

Mean, median, mode, range and standard deviation.

Math

GCD & LCM Calculator

Find the greatest common divisor and least common multiple.

Math

Unit Price Comparison

Compare two products to find the better price per unit.

Finance

Sales Tax Calculator

Add sales tax to a price or find the tax in a total.

Finance

Hourly to Salary Calculator

Convert an hourly wage to weekly, monthly and yearly pay.

Finance

Running Pace Calculator

Work out your pace per km and per mile.

Health

Working Days Calculator

Count weekdays between two dates.

Dates

Days Until a Date

Count the days to or since a date.

Dates

Random Number Generator

Pick random whole numbers in a range.

Utilities

CAGR Calculator

Find the steady yearly growth rate between two values.

Finance

Inflation Calculator

See how inflation changes prices and purchasing power.

Finance

Electricity Cost Calculator

Estimate what an appliance costs to run.

Finance

Weighted Grade Calculator

Weighted average of scores, and the final exam score you need.

Math

Rule of Three Calculator

Solve direct and inverse proportion problems.

Math

Fraction Simplifier

Simplify a fraction and see it as a decimal and a percent.

Math

Roman Numeral Converter

Convert numbers to Roman numerals and back.

Conversions

Number Base Converter

Convert between decimal, binary, octal and hexadecimal.

Conversions

Number to Words

Write a number in English words.

Text

Due Date Calculator

Estimate a due date from the last period.

Dates

Time Duration Calculator

Hours between two times, minus a break.

Dates

Week Number Calculator

ISO week number, day of year and quarter for a date.

Dates

Mortgage Calculator

Estimate the monthly payment of a home loan.

Finance

Loan Affordability Calculator

Find the loan size a monthly payment can support.

Finance

Savings Growth Calculator

See savings grow with deposits and interest.

Finance

Credit Card Payoff Calculator

See how long a card balance takes to clear.

Finance

Percentage Points Calculator

Difference between two percentages in points.

Math

Probability Calculator

Chance of one outcome and of at least one success.

Math

Odds to Probability Calculator

Turn odds like 3 to 1 into probabilities.

Math

Dice Roller

Roll up to 20 dice with any number of sides.

Utilities

Time Card Calculator

Add up a run of shifts and count the pay.

Dates

Sleep Calculator

Plan bedtimes or wake-up times in sleep cycles.

Health

Square Footage Calculator

Area of a rectangle in m², ft² and yd².

Conversions

Paint Quantity Calculator

How much paint a wall needs, coats included.

Utilities

Body Fat Estimate (US Navy Method)

Tape-measure body fat percentage estimate.

Health

Ideal Weight Calculator

Weight ranges from classic formulas and BMI.

Health

Fuel Cost Calculator

What a trip costs in fuel.

Finance

Concrete Calculator

Estimate concrete volume for a slab, with wastage.

Utilities

Tile Calculator

Work out how many tiles a floor or wall needs.

Utilities

Wallpaper Calculator

Estimate rolls of wallpaper for a room.

Utilities

Gravel Calculator

Convert area and depth into tonnes of gravel.

Utilities

Overtime Pay Calculator

Add up regular pay and overtime in one go.

Finance

Calories Burned Calculator

Estimate calories burned for an activity.

Health

Macro Calculator

Split daily calories into protein, carbs and fat.

Health

Miles to Steps

Convert between distance and footsteps.

Health

Test Score Percentage

Turn points earned into a percentage score.

Math

Stacked Discounts

See the real total of several discounts in a row.

Math

Pocket cheat sheets

Numbers worth remembering

Guides and explainers

All guides →

Show your working

Every tool lists its formula and a worked example, so you can verify the answer yourself.

Understand the result

Each page explains how to read the result, when to use it and the mistakes to avoid.

Clear limits

Estimates are labelled as estimates. Read how we work on the methodology page.

Free online tools for everyday tasks

Use the tools above for everyday calculations, conversions, planning and text processing. Check your inputs before relying on results for financial, medical or other important decisions.

Financial estimates are illustrative and may exclude fees, taxes or other costs. Health-related estimates are not medical advice. See the disclaimer.