Scientific Calculator

Type a full expression — powers, roots, trig, logarithms, factorials — and get the answer, with correct order of operations and your choice of degrees or radians.

Result

—

About this calculator

Most calculator apps make you press one operation at a time, losing the thread of anything longer than two steps. This one takes the whole expression at once — parentheses, powers, functions and all — and applies the proper order of operations, so what you type is exactly the math you mean. It is the calculator for homework, lab work, engineering estimates and checking what a spreadsheet formula is really doing.

Supported: + − × ÷, powers (^), remainder (%), parentheses, implicit multiplication (2π, 3(2+1)), factorials (!), the trig functions sin cos tan and their inverses (in degrees or radians), hyperbolics, sqrt and cbrt, log (base 10), ln, log2, exp, abs, floor, ceil, round, and the constants pi, e and tau. Expressions are evaluated by a purpose-built parser in your browser — nothing is sent anywhere.

How to use it

  1. Type the expression exactly as you would write it: for example (3+4)*5, sqrt(2)/2, or log(1000).
  2. Choose degrees or radians before using trig functions — the classic source of "wrong" answers.
  3. Press Calculate (or change anything) to evaluate. Errors like division by zero are reported, not hidden.

The formula

Order of operations: parentheses → functions → factorials → powers → × ÷ % → + −

This is the standard mathematical convention (PEMDAS/BODMAS, with powers evaluated right-to-left: 2^3^2 means 2^(3^2) = 512). Unary minus binds looser than powers, so -2^2 = −4, while (-2)^2 = 4 — write the parentheses when in doubt.

Worked example

Try sin(30) + sqrt(16) * 2^3 in degrees: sin(30) = 0.5, sqrt(16) = 4, 2^3 = 8, so 0.5 + 4 × 8 = 32.5. Or 5! = 120, log(1000) = 3, ln(e^2) = 2, and 2pi ≈ 6.28318530718 via implicit multiplication. In radians, sin(pi/2) = 1.

Frequently asked questions

Why is my trig answer "wrong"? (sin of 90 is not 1)

Almost always the angle mode. In degrees, sin(90) = 1; in radians, sin(90) means sin of 90 radians ≈ 0.894, and the innocent-looking sin(30) gives −0.988 instead of 0.5. Check the mode selector matches the units your problem uses — this is the single most common scientific-calculator mistake, in classrooms and in code alike.

What does the % operator do here?

It is the remainder (modulo) operator, as in most programming languages: 10 % 3 = 1. It is not a percentage key — for percentages ("take 15% of 200"), use our Percentage Calculator, or write 200*15/100.

How are factorials of non-integers handled?

Through the gamma function, the standard extension of the factorial: x! = Γ(x+1). That is why 0.5! ≈ 0.8862 (it equals √π/2). Integer factorials up to 170 are computed exactly as products; beyond that the result overflows the calculator's number range and is reported as too large.

Is it safe to type expressions here?

Yes. The calculator runs a hand-written parser that understands only numbers, the listed functions and operators — it cannot execute code, and your expression never leaves your browser. (This is also why arbitrary names are rejected as "unknown" rather than evaluated.)