PercentSwift

Percent of a number calculator

Find a percentage of any number, or recover the whole from a known part. Exact decimal arithmetic with worked steps.

Free. No account. No payment.

Result

30

⁨20 %⁩ of ⁨150⁩ is ⁨30⁩.

Show calculation steps

Divide the percentage by 100, then multiply by the number.

Formula

r = p ÷ 100 × x

Calculation steps

  1. ⁦20⁩ ÷ ⁦100⁩ = ⁦0.2⁩
  2. ⁦0.2⁩ × ⁦150⁩ = ⁦30⁩

Numbers are displayed to at most 6 decimal places.

More options

Select the jurisdiction independently of your language. Portugal’s islands and Spain’s other tax territories need separate treatment.

Choose a calculation

How we calculate

Try an example

Understand the calculation

How to find a percentage of a number

Divide the percentage by 100 to turn it into a decimal, then multiply it by the number. For 15% of 60, that’s 15 ÷ 100 = 0.15, and 0.15 × 60 = 9.

The order of the multiplication doesn’t matter, which gives you a useful shortcut: 8% of 50 is the same as 50% of 8, which is 4. When one of the two numbers is easier to work with as a percentage, swap them.

Working backward to the total

If you know that 18 is 40% of something, divide 18 by 0.4 to get 45. Check it by going forward again: 40% of 45 is 18. Use this when a receipt shows a deposit and its percentage, or a progress bar shows how much is done and what share that is.

This is a different problem from undoing a percentage change. If a price rose by 40% to reach 18, the original was 18 ÷ 1.4 ≈ 12.86, not 45. The reverse percentage calculator handles that case.

Percentages above 100 and below 1

Nothing stops the percentage from going over 100: 120% of 85 is 102, more than you started with. Very small percentages work the same way. 0.25% of 4,000 is 10. If you work with basis points, 1 basis point is 0.01%, so 25 basis points of 4,000 is also 0.25% of 4,000.

Guides

Understand the calculation

Guides