Skip to content

Percentage Calculator

Work out X% of Y, what percentage X is of Y, and the percentage increase or decrease from X to Y, with the formula for each result.

Runs in your browser Free, no sign-up
Loading tool workspace...

What is Percentage Calculator?

This percentage calculator answers the three most common percentage questions from the same two numbers. Enter value A and value B and you get, instantly: A% of B (15% of 200 = 30), what percentage A is of B (15 is 7.5% of 200), and the percentage change from A to B (from 15 to 200 is +1,233.33%).

Each answer comes with its formula, so you can see how it was worked out and reuse the calculation in a spreadsheet or code. Developers use it for growth metrics, performance improvements, conversion rates, discounts and capacity planning.

How to use Percentage Calculator

  1. Enter value A (a percentage or a starting value) and value B (a total or a new value).
  2. Read X% of Y in the first result.
  3. Read what percentage A is of B in the second result.
  4. Read the percentage change from A to B in the third result; a minus sign means a decrease.
  5. Check the formula breakdown, and copy any result with its copy button.

Key features

  • X% of Y, X as a percentage of Y, and percentage change in one view
  • Formula breakdown for every result
  • Signed percentage change showing increases and decreases
  • Quick percentage presets
  • Copy buttons for each answer

Common use cases

  • Calculating performance gains, such as a page load time dropping from 3.2s to 1.8s
  • Working out growth in users, revenue or traffic month over month
  • Computing conversion rates, error rates and test coverage
  • Applying discounts, taxes and price increases
  • Capacity planning from usage and limit figures

Technical details & standards

The three formulas are: A% of B = (A ÷ 100) × B; A as a percentage of B = (A ÷ B) × 100; and percentage change from A to B = ((B − A) ÷ A) × 100. Percentages and changes are rounded to two decimal places.

Percentage change is not symmetric: going from 100 to 150 is +50%, but going back from 150 to 100 is −33.33%. That is also why percentage change is undefined when the starting value A is 0. Percentage points are different again: a rate rising from 2% to 3% is an increase of 1 percentage point, but a 50% relative increase.

Frequently asked questions

How do I calculate a percentage of a number?

Divide the percentage by 100 and multiply by the number. 20% of 450 is 0.20 × 450 = 90.

How do I calculate percentage increase or decrease?

Subtract the old value from the new value, divide by the old value and multiply by 100. From 80 to 100: (100 − 80) ÷ 80 × 100 = +25%. From 100 to 80: (80 − 100) ÷ 100 × 100 = −20%.

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

Divide the part by the whole and multiply by 100. 45 out of 60 is 45 ÷ 60 × 100 = 75%.

What is the difference between percent and percentage points?

Percentage points measure the plain difference between two percentages; percent measures the relative change. An error rate going from 4% to 5% rises by 1 percentage point, which is a 25% increase.

Is my data safe?

Processing happens locally in your browser. Tool input is not sent to CodeUnpack servers.

Does it work offline?

Once the page has loaded, this tool can process input without an internet connection.

More calculators tools

View all