Scientific Calculator

A full scientific calculator, in the browser.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

Scientific Calculator

How to use this tool

  1. Type an expression or tap the keypad. Angles for sin, cos and tan are in degrees.
  2. Press Calculate (or Enter). The result restates the whole expression beside the answer.
  3. Use Load sample to see 2+3*4 worked through — multiplication happens before addition.

Worked example

With the sample 2+3*4, the result is 14, not 20: multiplication binds tighter than addition, so 3×4 = 12, then 2 + 12 = 14. Try sqrt(16) for 4, and sin(30) for 0.5 — thirty degrees has a sine of exactly one half. Parentheses override the order: (2+3)*4 = 20.

What this tool does not do / Limits

This calculator uses a hand-written parser, not the browser's code evaluator, so an expression is arithmetic only — it cannot run code. Percent (%) here means “divide by 100” (50% = 0.5), not modulo. Factorials are limited to whole numbers 0–170, beyond which the result exceeds what a standard number can hold. Results are shown at full double precision, so 0.1 + 0.2 reads 0.30000000000000004 — that is how binary floating-point arithmetic works, not a bug in this page.

Frequently asked questions

Why does 2+3*4 equal 14 and not 20?

Because of the order of operations: powers and roots first, then multiplication and division, then addition and subtraction. Parentheses override it.

Are angles in degrees or radians?

Degrees, stated on the page. sin(30) is 0.5 in degrees; in radians it would be about -0.988.

Why is there no eval in this tool?

Evaluating typed text as code would be a security risk. The parser here only understands numbers, operators and the listed functions, so typed text can never run code.

Related tools