Skip to content
epitometool

Percentage calculator

Calculators

Common percentage, increase, decrease and tip math.

Updated

Pick a calculation

What is X% of Y?

20% of 150
30

Quick start

How to calculate percentages

Pick a calculation mode, type the numbers, copy the result. Six common percent problems, one tool.

  1. Step 1
    Pick a mode

    % of value, what percent, % change, increase, decrease, or reverse '% of what'. Each tab keeps its own inputs.

  2. Step 2
    Type the numbers

    Results update live. Empty or zero inputs that would divide-by-zero show '—' instead of misleading zeroes.

  3. Step 3
    Copy the result

    Hit Copy on the result tile to grab the formatted number for your spreadsheet, email or invoice.

In-depth guide

Percentage calculator: six common percent problems

Six independent calculators for the percentage problems people actually run into: discounts, tips, sales tax, year-over-year growth, markup, and reverse calculations. Each tab works in isolation so you can switch without losing your inputs.

The formulas behind each mode

ModeFormulaUse it for
% of value(X ÷ 100) × YDiscounts, taxes, tips, percentages of a budget
What percent(X ÷ Y) × 100Quiz scores, test coverage, batch yields
% change((Y − X) ÷ |X|) × 100Year-over-year revenue, weight change, stock moves
Increase by %X × (1 + Y/100)Markup, price-after-tax, growth projection
Decrease by %X × (1 − Y/100)Sale price, discount, depreciation
% of what(X × 100) ÷ YReverse calculations: 'tip was $9, that was 18% of what?'

Worked examples

  • Tip on $45 dinner, 18% → "% of value" with X=18, Y=45 → $8.10.
  • Quiz: 27 out of 40 correct → "What percent" with X=27, Y=40 → 67.5%.
  • Sales grew from $12k to $15k → "% change" with X=12000, Y=15000 → +25%.
  • $120 jacket with 20% off → "Decrease by %" with X=120, Y=20 → $96.
  • Bill is $40 after 10% tax → "% of what" with X=40, Y=110 → $36.36 pre-tax.

Common gotchas

  • Going up then down isn't symmetric. +10% then −10% lands at 99%, not 100%. Markdowns from inflated prices are smaller than they look.
  • Percent of a percent. 10% of 50% is 5%, not 60% or 40%. Don't add or subtract percentages without knowing the base.
  • Negative bases. % change is tricky when X is negative — we divide by |X| so the sign of the result still reflects direction.
  • Floating-point answers may show 1.7763568394002505e-15 instead of 0. JavaScript numbers are IEEE-754; that's a feature of the platform.

Frequently asked questions

Does the calculator send my numbers anywhere?

No. Every formula runs in JavaScript in your browser. Try it in airplane mode — it works identically with no connection.

How is 'percent change' computed?

(new − old) ÷ |old| × 100. A change from 100 to 125 is +25%. A change from 100 to 75 is −25%. We divide by the absolute value of the old number so the sign of the result reflects direction even when old is negative.

Why am I getting NaN or '—'?

Most percentage formulas have a division-by-zero edge case (e.g. 'what % of 0' is undefined). When that happens, the result shows '—' instead of a misleading 0.

How precise are the results?

Up to four decimal places. JavaScript numbers are IEEE-754 doubles, so values with very large or very small magnitudes can show floating-point artifacts (e.g. 0.1 + 0.2 = 0.30000000000000004). For accounting-grade math use a dedicated decimal library.

Is there a way to chain calculations?

Not in this UI — switch tabs to keep each calculation separate. Copy the result you need, paste it into the next mode's input.

What's the difference between 'increase by %' and 'is what % of'?

Increase X by Y% multiplies: 100 + 20% → 120. 'Is what %' divides: 25 is what % of 200 → 12.5%. The first answers 'how much bigger should this be?'; the second answers 'how much of the whole is this?'.

Keep exploring

More tools you'll like

Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.