Skip to content

Calculator

Add, subtract, multiply and divide in your browser, or open the Scientific tab for brackets, powers, roots, logs and sin, cos and tan in degrees or radians. The basic keypad works left to right like a pocket calculator, so 2 + 3 × 4 gives 20; the scientific one gives 14.

Chained arithmetic

Before

250 × 4 - 100 =

Keys you press

After

900

The result, worked left to right

Calculator

0

Features

  • Add, subtract, multiply and divide, with decimals
  • Scientific tab: brackets, powers, square roots, log and ln, factorials, percent, π and e
  • sin, cos and tan and their inverses, in degrees or radians
  • The basic keypad works left to right like a pocket calculator: 2 + 3 × 4 gives 20. The Scientific tab follows the order of operations and gives 14
  • Shows up to 15 significant digits and whole numbers up to 9,007,199,254,740,991 exactly
  • Keyboard support: digits, + - * /, Enter, Backspace and Esc
  • Clear and backspace keys

How to use the calculator

  1. Click the keys or type on your keyboard. Enter or = shows the result, Backspace removes the last digit and Esc clears everything.
  2. For brackets, powers, roots or trig, open the Scientific tab, type the whole sum such as (2 + 3) × 4 or sin(30), and press = or Enter. Pick Degrees or Radians first for sin, cos and tan.
  3. Each operator works on the running total, from left to right. Press + after 7 × 6 and the screen shows 42 before you type the next number.
  4. After a result, press an operator to keep going from it, or type a digit to start a new sum.
  5. If the screen shows an error, press any key to clear it. To write a result in words for a cheque, use Amount in Words.

Frequently asked questions

Why does 2 + 3 × 4 give 20 and not 14?

Because the basic keypad works left to right, like a pocket calculator. It applies each operator to the total so far: 2 + 3 = 5, then 5 × 4 = 20. The Scientific tab, like spreadsheets, follows the order of operations: powers first, then × and ÷, then + and -, so it gives 14.

Why does 0.1 + 0.2 show 0.3 here when some apps show 0.30000000000000004?

Results are rounded to 15 significant digits before they are shown. Computers store decimals in binary, so 0.1 + 0.2 really is 0.30000000000000004 inside the machine, and the rounding hides that noise. Whole numbers up to 9,007,199,254,740,991 are shown exactly.

Sources: MDN Web Docs, Number.MAX_SAFE_INTEGER

Can it do percentages, square roots or brackets?

Yes, in the Scientific tab. % divides the number before it by 100, so 15% × 2400 gives 360. √ takes a square root, ^ raises to a power (2^10 is 1024), ! is a factorial and brackets group a sum. A bracket left open at the end is closed for you, and a number next to a bracket multiplies it, so 3(4 + 1) is 15.

What happens if I divide by zero?

The screen shows Cannot divide by zero and the sum is cleared. Press any key to carry on; a digit starts a new number straight away.

Which keyboard keys work?

Digits, a dot or comma for decimals, + and -, * or x to multiply, / to divide, Enter or = for the result, Backspace to delete a digit, and Esc, Delete or C to clear. Keys are ignored while you are typing in another field on the page, and shortcuts that use Ctrl, Alt or Cmd are left to your browser.

Why does sin(30) give 0.5 but sin(30) in radians gives -0.988?

sin, cos and tan read the angle in the unit you pick. In Degrees, sin(30) is 0.5 and tan(45) is 1. In Radians the same 30 means 30 radians, about 1,719 degrees. tan(90) in degrees has no value, so it shows an error rather than a huge number. asin, acos and atan give their answer in the same unit.

What if I press two operators in a row?

The second one replaces the first. Typing 5, then +, then ×, then 2 multiplies, so the answer is 10.