induwara.lk
induwara.lkUtility · Math

Percentage Calculator

Work out any percentage in seconds — a percentage of a number, one number as a percentage of another, percentage increase or decrease, and percentage difference. Every answer shows the formula and the full working. Free, no signup, nothing leaves your browser.

By Induwara AshinsanaUpdated Jul 8, 2026
Percentage Calculator
Self-verified · 6 modes

Find a percentage of a number — e.g. 18% of 12,500.

Decimal places
Answer
2,250

18% of 12,500 is 2,250.

Formula
result = Y × (X ÷ 100)
Step-by-step
  1. result = Y × (X ÷ 100)
  2. result = 12,500 × (18 ÷ 100)
  3. result = 12,500 × 0.18
  4. result = 2,250
Pure arithmetic — nothing leaves your browser. Sources cited below.

How it works

A percentage is a ratio written as a fraction of 100 — “per cent” literally means “per hundred.” Every mode in this calculator is built from that one idea, so the arithmetic is exact and there are no lookup tables or approximations. Here is the formula behind each of the six modes:

  1. What is X% of Y? — the part is the whole scaled by the fraction: result = Y × (X ÷ 100).
  2. X is what % of Y? — divide the part by the whole, then scale to 100: result = (X ÷ Y) × 100. The whole (Y) cannot be zero.
  3. X is Y% of what? — the reverse of mode 1, recovering the whole from a part: whole = (X × 100) ÷ Y. The percentage (Y) cannot be zero.
  4. % change from A to B — the change relative to the original value: change% = ((B − A) ÷ A) × 100. A positive result is an increase, negative is a decrease, and A cannot be zero.
  5. Increase / decrease A by B% — add or take off a percentage of the number: result = A × (1 ± B ÷ 100). This is the mode for VAT, markups, tips and discounts.
  6. % difference between A and B — the gap relative to the average of the two values: diff% = |A − B| ÷ ((A + B) ÷ 2) × 100. Because it uses the mean, the order of A and B does not matter.

The distinction between mode 4 and mode 6 is the one people most often get wrong. Percentage changeis directional and anchored to a reference point — the original value — which is why it is the right tool for “prices rose 20%.” Percentage difference is symmetric and anchored to the average of the two numbers, which is why scientists use it to compare two measurements where neither is the “before.” The same pair, 80 and 100, gives a 25% change but a 22.22% difference. The calculator keeps them as separate modes so you never mix them up.

Rounding is applied only when the answer is displayed, at the decimal precision you choose (0–4 places). The plain-English sentence and the step-by-step working use the same rounded figures, so what you read and what you copy always agree. Division by zero and non-numeric input are caught before any calculation runs, so you get a clear message instead of NaN or a blank box.

Worked examples

Add 18% VAT to a Rs 12,500 item

Mode: Increase / decrease A by B% (increase)

Rs 14,750
  1. Formula: result = A × (1 + B ÷ 100)
  2. result = 12,500 × (1 + 18 ÷ 100)
  3. result = 12,500 × 1.18
  4. result = 14,750 (VAT portion = 12,500 × 0.18 = 2,250)

Exam mark as a percentage — 45 out of 60

Mode: X is what % of Y?

75%
  1. Formula: result = (X ÷ Y) × 100
  2. result = (45 ÷ 60) × 100
  3. result = 0.75 × 100
  4. result = 75

Bus fare rise from Rs 350 to Rs 420

Mode: % change from A to B

+20%
  1. Formula: change% = ((B − A) ÷ A) × 100
  2. change% = ((420 − 350) ÷ 350) × 100
  3. change% = (70 ÷ 350) × 100
  4. change% = 20 (absolute change = 70)

Change vs difference — 80 and 100

Mode: % difference between A and B

22.22%
  1. Formula: diff% = |A − B| ÷ ((A + B) ÷ 2) × 100
  2. diff% = |80 − 100| ÷ ((80 + 100) ÷ 2) × 100
  3. diff% = 20 ÷ 90 × 100
  4. diff% = 22.22 (compare: 80 → 100 is a 25% change)

Frequently asked questions

Sources & references

The formulas on this page are standard arithmetic and were last reviewed on 2026-07-08. The Sri Lanka VAT figure is used purely to make the add-VAT example concrete — no tax rate is built into the tool itself, so it stays correct for any country or unit.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.