Skip to content

Calculator (Basic, Scientific, VAT, Discount, Percent, Split Bill, Loan)

A calculator from basic arithmetic to trigonometry and logs, plus VAT, discount, percent, bill-splitting, loan-interest and amount-in-words calculators, and unit/date expressions such as “5km + 300m to mi” or “today + 100 days”. Everything is computed on this page and history stays in this browser.

Expressions and amounts you enter are never sent to a server. Double-check anything important (tax, settlements).

How it calculates

  • Arithmetic is exact decimal math: 0.1+0.2 is 0.3 (no floating-point error). Division is computed to 20 decimals and shown to 15 digits.
  • Multiplication and division come before addition and subtraction; powers (^) associate right to left (2^3^2 = 512) and -2^2 is -4. You may omit the multiplication sign: 2(3+4), 2π.
  • % works like a pocket calculator: 200+10% is 220 (adds 10% of 200) and 50×10% is 5.
  • Trig functions use degrees (DEG) by default; switch to RAD for radians. Tiny errors such as sin(180°) are cleaned up to 0.
  • Factorials work up to 170!. An unclosed parenthesis is closed automatically when you press =.
  • VAT defaults to 10%. When working back from a total, the net amount is rounded first and VAT = total − net, so the two always add up to the total.
  • Amounts are computed as whole currency units, so there is no drift. Fractions are handled with the rounding you choose.

FAQ

How do I get the net amount and VAT?

VAT is net × 10% and total is net + VAT. If you only know the total, net = total ÷ 1.1. Pick the direction on the VAT tab.

Why is a stacked discount not the sum of the discounts?

A 20% discount followed by 10% is 28%, not 30%, because the second applies to the already reduced price. The "Stacked discounts" mode shows the combined rate.

Where is my history stored?

Only in this browser (localStorage); nothing is sent to a server. You can turn saving off or clear it.