Finance

Percentage Calculator

Work out X% of a number, what percent one number is of another, the percentage change between two values, or add and subtract a percentage, with the formula shown.

What is X% of Y?
What is
%
of
?
30

20 ÷ 100 × 150 = 30

X is what percent of Y?
is what percent of
?
25%

30 ÷ 120 × 100 = 25%

Percentage change
The increase or decrease from a starting value to a new value.
From
to
25% increase

(100 − 80) ÷ |80| × 100 = 25%

Percentage difference (compared with their average, when neither is the starting point): 22.222222%

Add or subtract a percentage
Add tax or a markup, or take off a discount.
plus
%
282.5

250 × (1 + 13 ÷ 100) = 282.5 (+32.5)

About this tool

The Percentage Calculator puts the everyday percentage questions side by side so you can answer whichever one you have without hunting for the right formula. Find 15% of 80, see that 30 is 25% of 120, work out the percentage increase or decrease from an old price to a new one, or add 13% tax to a price and take 20% off another. Every answer updates as you type and shows the exact formula used, like 20 ÷ 100 × 150 = 30, so you can check the working or copy it into a report. Percentage change is measured against the starting value, and a note gives the percentage difference too, for when neither number is the starting point. Results are shown without floating-point noise and can be copied in one click. Everything is calculated in your browser.

How to use the Percentage Calculator

  1. Pick the card that matches your question, such as "What is X% of Y?" or "Percentage change".
  2. Type your numbers into the boxes in the sentence. You can use commas, like 1,250.
  3. Read the answer as you type, along with the formula that produced it.
  4. For tax, markups or discounts, use "Add or subtract a percentage" and choose Add % or Subtract %.
  5. Click the copy button next to an answer to copy it.

Use it from your code

The Percentage Calculator is also a REST API endpoint. Create a free API key and call it from your own scripts and apps.

# What is 20% of 150
curl -X POST https://opentools.ca/api/v1/tools/percentage-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "percent-of",
  "percent": 20,
  "value": 150
}'

# Percentage change from 80 to 100
curl -X POST https://opentools.ca/api/v1/tools/percentage-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "percent-change",
  "from": 80,
  "to": 100
}'

# The same request as a GET with query parameters
curl "https://opentools.ca/api/v1/tools/percentage-calculator?operation=percent-of&percent=20&value=150" \
  -H "Authorization: Bearer YOUR_API_KEY"

Give us your feedback

Help us improve Percentage Calculator!

Frequently asked questions

How do I calculate a percentage of a number?

Divide the percentage by 100 and multiply by the number. 20% of 150 is 20 ÷ 100 × 150 = 30. The first card does this for you and shows the working.

How is percentage change calculated?

Subtract the starting value from the new value, divide by the starting value and multiply by 100. Going from 80 to 100 is (100 − 80) ÷ 80 × 100 = a 25% increase. Going from 100 back to 80 is a 20% decrease, because the starting value is different.

What is the difference between percentage change and percentage difference?

Percentage change compares a new value with a starting value, so the direction matters. Percentage difference compares two values with their average and is the same whichever way round you put them. The change card shows both.

Why can't I get a percentage change from 0?

Any increase from zero would be an infinitely large percentage, so it is undefined. Describe it as an absolute change instead, for example "up from 0 to 25".

Is adding 10% and then subtracting 10% the same number?

No. 100 plus 10% is 110, and 110 minus 10% is 99, because the second 10% is taken from a larger number. That is why the calculator always says which number a percentage applies to.

Percentage Calculator screenshot