ToolNimbus

Percentage Calculator

This free percentage calculator handles the three calculations you reach for most often: finding a percentage of a number, working out what percent one number is of another, and measuring the percentage change between two values. Whether you need to learn how to calculate the percentage of marks, work out a discount, or track a price increase, you get an instant answer with no mental math. Each mode relabels its input fields so you always know exactly which number goes where. Everything runs in your browser, so results appear the moment both fields are filled in.

Find a percentage of a number

How to Use

Start by picking one of the three mode cards at the top: "What is X% of Y?", "X is what % of Y?", or "% Change from X to Y". Selecting a mode clears any previous numbers and updates the two input labels to match that calculation. For example, in the first mode the fields read "Percentage (%)" and "Number (Y)", in the second they read "Value (X)" and "Total (Y)", and in the third they read "From (X)" and "To (Y)". Type a number into each box (decimals and negatives are allowed), and the result card appears automatically beneath the inputs, with a percent sign added for the "is what %" and "% change" modes. There is no submit button to press and nothing to clear manually when you switch modes.

Why This Tool Is Useful

Percentages show up everywhere in daily life, from sale prices and restaurant tips to exam grades, interest rates, and data reports, and the rules differ just enough to trip people up. This calculator removes that friction by separating the three most common questions into distinct modes so you never apply the wrong formula. Because each mode renames its fields, you avoid the classic mistake of swapping the part and the whole. Non-integer answers are shown rounded to two decimal places for readability (whole-number answers display without decimals) while the underlying math uses full floating-point precision, so it is reliable for both quick estimates and careful work. And since it is browser-based, it is free, instant, and private.

How to Calculate the Percentage of Marks

To turn marks into a percentage, divide the marks you scored by the total marks possible and multiply by 100. If you scored 425 out of 500, that is (425 / 500) x 100 = 85%. This is exactly the calculation behind the tool's second mode, "X is what % of Y?", where X is the marks obtained and Y is the maximum marks.

Select that mode, enter your obtained marks in the Value (X) field and the total marks in the Total (Y) field, and the percentage appears instantly. The tool does not have a dedicated marks mode, but this is the standard marks-to-percentage formula and it gives the same answer.

  • Marks percentage = (marks obtained / total marks) x 100
  • Example: 68 out of 80 = (68 / 80) x 100 = 85%
  • Use mode 2 ("X is what % of Y?") with X = your marks and Y = total marks

What Percent Is X of Y? Finding One Number as a Percentage of Another

"What percent is X of Y" is one of the most searched percentage questions, and it is the same operation as the marks calculation: you are expressing a part as a percentage of a whole. The formula is (X / Y) x 100, where X is the part and Y is the whole or total.

If 18 people out of a group of 40 chose option A, then 18 is (18 / 40) x 100 = 45% of the group. In the tool, choose "X is what % of Y?", put the part in the Value (X) field and the total in the Total (Y) field. Keeping the part and the total in the right boxes is the only thing you need to get right, and the relabeled fields make that easy.

How to Calculate a Percentage Increase or Decrease

A percentage increase or decrease measures how much a value has gone up or down relative to where it started. The tool's third mode, "% Change from X to Y", computes this as ((Y - X) / |X|) x 100, where X is the original (From) value and Y is the new (To) value.

A positive result means an increase and a negative result means a decrease. For instance, a price rising from 80 to 100 gives ((100 - 80) / 80) x 100 = +25%, while a price falling from 100 to 80 gives ((80 - 100) / 100) x 100 = -20%. Note that the increase and decrease percentages are not symmetric, because each is measured against its own starting value.

  • Percentage increase: new value higher than original gives a positive result
  • Percentage decrease: new value lower than original gives a negative result
  • Formula: ((To - From) / |From|) x 100
  • Going up 25% then down 20% returns you to the start, not the same percentage

Percentage Change vs Percentage Difference: What's the Difference?

These two terms are constantly confused, but they answer different questions. Percentage change is directional and is measured relative to the original value: it tells you how much a number grew or shrank from a known starting point. Its formula is ((new - old) / |old|) x 100, and this is what the tool's "% Change" mode calculates.

Percentage difference, by contrast, has no "before" and "after". It compares two values where neither is the reference point, so it is measured relative to the average of the two. Its formula is (|A - B| / ((A + B) / 2)) x 100. Use percentage change when one value clearly came first (last year's revenue versus this year's). Use percentage difference when comparing two independent measurements (two lab readings, two store prices) where neither is the baseline.

Worth knowing: this tool computes percentage change, not percentage difference. To find the percentage difference between two values, apply the average-based formula above by hand. As a quick example, comparing 40 and 60: the percentage difference is (|40 - 60| / 50) x 100 = 40%, whereas the percentage change from 40 to 60 is +50% and from 60 to 40 is -33.33%.

  • Percentage change: relative to the ORIGINAL value, has a direction (+/-)
  • Percentage difference: relative to the AVERAGE of the two values, always positive
  • Change formula: ((new - old) / |old|) x 100
  • Difference formula: (|A - B| / ((A + B) / 2)) x 100

How to Find an Overall Percentage Across Multiple Subjects

When you need a single overall percentage from several subjects, do not average the individual subject percentages unless every subject is out of the same total. The reliable method is to add up all the marks you obtained, add up all the maximum marks, and then express the first total as a percentage of the second.

For example, if you scored 78/100, 65/100, and 90/100, your total is 233 out of 300, giving (233 / 300) x 100 = 77.67%. Enter 233 as X and 300 as Y in the "X is what % of Y?" mode to confirm it. This sum-of-marks approach automatically weights each subject by its maximum and avoids the rounding errors of averaging percentages.

How Percentage Math Works Behind the Scenes

Every percentage problem reduces to one idea: a percentage is just a fraction out of 100. "Per cent" literally means "per hundred", so 50% is 50/100 = 0.5. To find a percentage of a number, convert the percent to a decimal and multiply, which is exactly what the first mode does: (X / 100) x Y.

Once you internalize this, all three modes are variations on rearranging the same equation. Finding what percent X is of Y solves for the percentage instead of the part, and percentage change applies the same fraction to the difference between two numbers. The fraction-to-percent table below makes the most common conversions instant.

Fraction-to-Percent Quick Reference

FractionDecimalPercentage
1/20.550%
1/30.333333.33%
2/30.666766.67%
1/40.2525%
3/40.7575%
1/50.220%
1/80.12512.5%
3/80.37537.5%
1/100.110%

Frequently Asked Questions

How do you calculate the percentage of marks?

Divide the marks you obtained by the total marks possible and multiply by 100. For example, 425 out of 500 is (425 / 500) x 100 = 85%. In this tool, use the "X is what % of Y?" mode, entering your marks as X and the total marks as Y.

What percent is X of Y?

Use the formula (X / Y) x 100, where X is the part and Y is the whole. So 18 out of 40 is (18 / 40) x 100 = 45%. Select the "X is what % of Y?" mode, put the part in the Value (X) field and the total in the Total (Y) field, and the answer appears instantly.

What is the difference between percentage change and percentage difference?

Percentage change is measured relative to the original value and has a direction, using ((new - old) / |old|) x 100. Percentage difference compares two values with no baseline and is measured relative to their average, using (|A - B| / ((A + B) / 2)) x 100. This tool calculates percentage change; for percentage difference, apply the average-based formula manually.

How do I calculate a percentage increase or decrease?

Use the "% Change from X to Y" mode. Enter the original value as From (X) and the new value as To (Y). A positive result is an increase and a negative result is a decrease. For example, 80 to 100 gives +25%, and 100 to 80 gives -20%.

How do I find what percent one number is of another?

Divide the first number by the second and multiply by 100, which is the (X / Y) x 100 formula behind the second mode. Just make sure the part goes in the Value (X) box and the total goes in the Total (Y) box, since the relabeled fields are there to keep them straight.

How do you calculate an overall percentage across multiple subjects?

Add all the marks you obtained, add all the maximum marks, then divide the first total by the second and multiply by 100. For 78/100, 65/100, and 90/100, that is 233 out of 300 = 77.67%. Avoid averaging the individual percentages unless every subject is out of the same total.

What three modes does this calculator have?

Exactly three: (1) "What is X% of Y?" finds a percentage of a number, (2) "X is what % of Y?" finds what percent one number is of another, and (3) "% Change from X to Y" finds the percentage change between two values. There is no separate marks mode or percentage-difference mode, but the existing modes cover those calculations.

Does it handle decimals and negative numbers?

Yes. You can type decimal or negative values into either field, and percentage change will display a negative value when the new number is smaller than the original. Non-integer results are shown rounded to two decimal places while the calculation uses full precision; whole-number results display without decimals.

Do I need to press a button to calculate?

No. The result card appears automatically as soon as both input fields contain valid numbers. Switching modes clears the fields so you can start a fresh calculation without manually deleting anything.

Why does the result not appear in some cases?

The two division-based modes need a non-zero denominator. In "X is what % of Y?" the Total (Y) cannot be zero, and in "% Change from X to Y" the From (X) value cannot be zero, since dividing by zero is undefined. Enter a non-zero value in those fields and the result will appear.

What other calculators pair well with this one?

If you are working with dates and durations, the Date Calculator finds the number of days, weeks, and months between two dates, while the Age Calculator gives an exact age from a birth date. Both complement the Percentage Calculator when you are crunching numbers for grades, finances, or planning.

Related Tools