Ttooleras
🧮

Scientific Calculator

Math & Numbers

Free online scientific calculator with trigonometric, logarithmic, exponential, and statistical functions for science, engineering, and math.. Free, private — all processing in your browser.

Keyboard: 0-9, +−×÷^!(), Enter, Esc, ⌫
 
0

Operator precedence follows the usual order: exponent (^) first, then multiply and divide, then add and subtract. Parentheses override precedence. Trigonometric functions respect the DEG/RAD toggle; inverse trig functions return angles in the same mode. Factorial (!) requires a non-negative integer up to 170. Division by zero, square root of a negative, and out-of-domain inverse trig inputs produce an error.

Advertisement

Type a whole expression and hit equals — this respects order of operations, so 2 + 3 × 4 gives 14, not 20. That sounds obvious, but a lot of on-screen calculators evaluate as you go and get it wrong. This one reads the entire expression, parses it properly, and only then computes, so parentheses, exponents, and precedence all behave the way they do on paper.

It covers the usual scientific set: trig and inverse trig (with a DEG/RAD switch), natural and base-10 logs, square and cube roots, powers, e^x and 10^x, absolute value, factorial, and the constants π and e. There's memory (MC/MR/M+/M−) and a running history of your last calculations so you can glance back at what you entered.

You can click the buttons or just type — the full keyboard works, including Enter to evaluate, Escape to clear, and Backspace to delete. Degree mode is the default, which is what most people want for everyday trig; flip to RAD when you're doing calculus or working in radians.

Scientific Calculator — examples

Trigonometric

Simple trig.

Input
sin(30°)
Output
0.5 (using degree mode)

Logarithm

Common log.

Input
log(1000)
Output
3 (10^3 = 1000)

Power

Exponent.

Input
2^10
Output
1024

Factorial

Combinatorics.

Input
10!
Output
3628800 (10 × 9 × 8... × 1)

Complex expression

Order of operations.

Input
2 + 3 × sqrt(16) / 2
Output
2 + 3 × 4 / 2 = 2 + 6 = 8

Where this helps

Math and education

  • Homework: Trigonometry, algebra, calculus problems.
  • Test prep: SAT math, GRE quantitative, various exams.
  • Problem solving: Any math beyond basic arithmetic.

Science and engineering

  • Physics: Velocity, acceleration, force, energy calculations.
  • Engineering: Structural, electrical, thermal calculations.
  • Chemistry: Molarity, pH, reaction calculations.

Finance

  • Interest calculations: Basic compound interest, percentage.
  • Statistics: Mean, standard deviation of data.
  • Probability: Combinations, factorials for probability math.

How to use the Scientific Calculator

  1. 1

    Enter expression

    Use buttons or keyboard for number and operator input.

  2. 2

    Use functions

    sin, cos, log, sqrt, etc. with parentheses for arguments.

  3. 3

    Select mode

    Degrees or radians for trigonometric functions.

  4. 4

    Calculate

    Press = or Enter for result.

  5. 5

    Use memory

    M+, M-, MR, MC for storing values.

Scientific Calculator — key features

Trigonometric functions

sin, cos, tan, inverse and hyperbolic. Radians or degrees.

Logarithms

log (base 10), ln (natural), custom base.

Exponents and roots

x^y, square root, cube root, nth root.

Constants

π (pi), e, and other common math constants.

Factorial

n! for combinatorics.

Parentheses

Group expressions for correct precedence.

Memory

Store and recall values.

History

Previous calculations accessible.

Under the hood

Expressions are tokenized and converted to Reverse Polish Notation with the shunting-yard algorithm, then evaluated on a stack. That's what enforces correct precedence and associativity: exponentiation is right-associative (2^3^2 = 512), unary minus sits between multiplication and exponent (so −2^2 = −4 and 3×−5 = −15), and parentheses group as expected. It deliberately does not use JavaScript's eval() — partly for safety, partly because it needs operators JS doesn't have, like factorial and degree-mode trig.

Trig functions convert through radians internally; in DEG mode sin(30) returns exactly 0.5 rather than 0.988. Results are cleaned up to about 12 significant figures, which erases floating-point noise (sin(π) shows 0 instead of 1.2e-16) while keeping genuinely tiny values intact. Very large or very small magnitudes switch to exponential notation.

Domain errors are caught and shown rather than returning NaN: log and ln require positive input, asin/acos need a value in [−1, 1], sqrt needs a non-negative number, division by zero is flagged, and factorial requires a non-negative integer (values above 170! overflow to Infinity in double precision). Everything runs locally in your browser.

Common problems and solutions

Check DEG vs RAD before trig

Degree mode is the default. If sin, cos, or tan give unexpected results, you're probably in the wrong angle mode — the toggle is at the top. Calculus work usually wants RAD.

Unary minus and exponent precedence

By math convention −2^2 evaluates as −(2^2) = −4, not (−2)^2 = 4. If you want the squared negative, wrap it: (−2)^2. Use the ± button or parentheses to be explicit.

Domain limits raise an error, not a guess

log/ln of zero or a negative, asin/acos outside [−1, 1], and sqrt of a negative show an error message instead of NaN. That's intentional — it's telling you the input is out of range.

Factorial is integers only, capped at 170

Factorial needs a non-negative whole number. Anything above 170! exceeds the range of a double and returns Infinity, which is a hardware limit, not a bug.

Results are rounded to ~12 significant figures

Display precision is about 12 significant digits so floating-point artifacts don't show. For most work this is exact; for extreme-precision needs, a specialized arbitrary-precision tool is better.

Alternatives and comparisons

Against a phone's built-in calculator, the main difference is the visible expression line: you can see and edit the whole thing before evaluating, instead of trusting an invisible running total. Against a full computer-algebra system like Wolfram Alpha, this is intentionally simpler — no symbolic math, equation solving, units, or graphing. It computes numeric expressions, and does that part correctly.

Reach for a CAS when you need to solve for x, simplify algebra, or work with units. Use this for the common case: evaluating a real numeric expression with functions and precedence, quickly, with a history you can scroll back through.

Scientific Calculator — FAQ

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

Because it follows order of operations: multiplication happens before addition, so 3 × 4 = 12, then + 2 = 14. The calculator parses the full expression before computing, rather than evaluating left-to-right as you type.

How do I switch between degrees and radians?

Use the DEG/RAD toggle at the top. It affects all trig and inverse-trig functions. DEG is the default; in DEG mode sin(30) = 0.5, while in RAD mode sin(30) treats 30 as radians.

Does it support keyboard input?

Yes. Type digits and operators directly, press Enter or = to evaluate, Escape to clear, and Backspace to delete. Parentheses, ^, and ! all work from the keyboard too.

What's the difference between log and ln?

log is base-10 logarithm and ln is the natural logarithm (base e). Both require a positive input; giving zero or a negative shows a domain error.

Why does sin(180) show 0 instead of a tiny number?

In double-precision floating point, trig of round angles produces a minuscule value like 1.2e-16 due to rounding. The calculator cleans results to about 12 significant figures, so that noise displays as a clean 0.

Further reading

Advertisement

Related tools

All Math & Numbers

Learn more

Explore more tools

200+ free tools that run in your browser.

Browse all tools →