Scientific Calculator

Full scientific calculator with trig, logarithms, exponents, factorials, and memory keys. Works entirely in your browser.

0

Keyboard: digits, operators, Enter (=), Backspace, Escape (clear)

About Sci Calculator

An on-screen scientific calculator with an expression display, keypad, and full keyboard support. Covers the operations found on a physical scientific calculator: arithmetic, exponents, trig (degrees or radians), inverse trig, natural and base-10 logarithms, square root, absolute value, factorial, percent, and the constants pi and e. Memory keys (M+, M-, MR, MC) let you store intermediate values without writing them down.

A scientific calculator extends the four operations of basic arithmetic with a set of mathematical functions that appear in physics, engineering, statistics, and coursework. The most common additions are the trigonometric functions (sine, cosine, tangent) and their inverses, logarithms in natural and base-10 form, exponentiation with arbitrary bases, and the factorial operator used in combinatorics and probability.

This calculator evaluates full expressions before showing a result, so you can type an expression like sin(45)^2 + cos(45)^2 and see 1 in a single step rather than working through intermediate values. The parser uses a standard shunting-yard algorithm to respect operator precedence: exponentiation binds tighter than multiplication and division, which bind tighter than addition and subtraction. Parentheses override any precedence rule. The calculation runs entirely in your browser using no external servers or network calls.

The angle mode toggle (DEG or RAD) applies to all trig functions and inverse trig results in that session. Your chosen mode is saved between visits. The memory bank (M+, M-, MR, MC) mirrors what physical scientific calculators provide: store a subtotal, accumulate additions or subtractions to it, and recall it later without re-entering the number.

How to use the Sci Calculator
  1. 1

    Type or click your expression

    Use the on-screen keypad or your keyboard to enter a full expression such as 2^10 or sin(30)+cos(60). The expression appears in the display as you type.

  2. 2

    Set the angle mode if needed

    Toggle DEG or RAD before entering trig functions. In DEG mode sin(30) returns 0.5; in RAD mode it expects the argument in radians. Your choice is remembered.

  3. 3

    Press equals or Enter to evaluate

    The result appears on the display. You can then continue with an operator (the result becomes the first operand) or press a digit key to start a new expression.

Common use cases

Physics and engineering coursework

Evaluate expressions like F = m * a or compute sin(theta) during problem sets without switching to a dedicated app.

Trigonometry and angles

Toggle between degrees and radians to match the units in a problem. Inverse trig functions convert ratios back to angles.

Combinatorics and probability

Use the factorial key to calculate permutations and combinations, such as 10! / (3! * 7!) for C(10,3).

Logarithms and exponentials

Compute natural and base-10 logs for decibel conversions, pH calculations, or exponential growth problems using ln and log keys.

Frequently asked questions
Does this calculator use eval or send expressions to a server?

No. Expressions are parsed by a tokenizer and shunting-yard algorithm built into the page. No eval, no Function constructor, and no network requests. Your input never leaves your browser.

What does the percent key (%) do?

It divides the preceding value by 100 as a postfix operator. Typing 75% gives 0.75, and 200*15% gives 30. It is a shorthand for /100 attached to the preceding term.

How does right-associative exponentiation work?

2^3^2 is evaluated as 2^(3^2) = 2^9 = 512, not (2^3)^2 = 64. This matches standard mathematical convention where stacked exponents are evaluated from right to left.

What happens with invalid inputs like 1/0 or sqrt(-1)?

Division by zero returns Infinity (shown as Infinity on the display). Square root of a negative number returns NaN, which is shown as Error. Both are caught before rendering so no raw JavaScript values appear.

Is my data stored or synced anywhere?

Only your angle mode preference (DEG or RAD) is saved locally in your browser via localStorage. The expression you type and the memory register are not saved and reset when you close the page.

calculator