A keypad scientific calculator with brackets, powers and factorials, trig and inverse trig, logarithms, angle modes, memory keys and calculation history
Build an expression key by key, or type the formula directly; both styles can be mixed freely, just like a handheld calculator
Nested brackets, signs, right-associative powers and implicit multiplication are supported, so 2(3+4) and 2pi parse correctly
sin/cos/tan, asin/acos/atan, sqrt/cbrt/abs, ln/log/exp/fact, plus pi, e, phi and tau inserted with one tap
Switch with one tap: sin(30) gives 0.5 in DEG, while sin(pi/6) gives 0.5 in RAD; inverse trig results follow the active mode too
MC / MR / MS / M+ / M- plus the last 12 expressions in the sidebar; click any entry to load it back
Tokenizer → shunting-yard → RPN stack evaluation; division by zero, negative square roots and unbalanced brackets get clear messages, and nothing is uploaded
DEG is the default: sin(30) gives 0.5. Switch to RAD and use sin(pi/6) for the same 0.5. Set the mode before any angle work.
Build it with the keypad, or write 2^3+sqrt(16) directly. Function keys add the opening bracket; a trailing closing bracket is usually optional.
The result area previews as you type; pressing = or Enter saves the expression to history and stores the result as Ans for the next step.
Store an intermediate value with MS, add to it with M+, read it with MR; click a history row to load its expression again.
Enter trig, log, power and factorial expressions step by step, with history to review each line instead of recopying scratch work
Plug field measurements into bracketed formulas, keep intermediate values in memory, and switch to RAD for radian-based parameters
Verify operator precedence, unary minus and power associativity, or confirm the return value of a math function for a given input
Use powers for compounding factors, logs for growth multiples, and constants such as e and phi for ratio conversions
Flip between DEG and RAD to show how the same numeric input yields different trig values, far clearer than a static table
All computation happens in the browser with no network request, so it works offline and keeps your inputs private
The built-in eval executes arbitrary JavaScript, which is unsafe for user input and gives poor error messages. This tool tokenizes the string, converts it to reverse Polish notation with the shunting-yard algorithm, then evaluates it on a stack of numbers only.
Dijkstra shunting-yard algorithm converts infix to postfix notation using an operator stack: 3+4×2 becomes 3 4 2 × +. Postfix needs no brackets and evaluates linearly on a stack, naturally handling right-associative powers and unary minus.
DEG interprets input as degrees, RAD as radians, with 180° = π radians. Trig inputs are converted to radians before calling the math library, and inverse trig outputs are converted back, so asin(1) is 90 in DEG and 1.5708 in RAD.
When a number, constant or closing bracket is followed by an opening bracket, constant or function name, a multiplication sign is inserted: 2(3+4) = 14 and 3pi = 9.4248. A function name followed by ( stays a function call, so sin(30) still works.
tan(90°) is mathematically undefined and the tool returns a nearby finite float; sqrt(-1), ln(0), asin(2), division by zero and factorials above 170 produce explicit errors instead of Infinity or NaN.
| Item | Input | Result | Note |
|---|---|---|---|
| Pi | pi | 3.1415926536 | Tap the pi key |
| Euler's number | e | 2.7182818285 | ln(e) = 1 |
| Golden ratio | phi | 1.6180339887 | (1+√5)/2 |
| Full turn | tau | 6.2831853072 | 2π |
| Sine of 30 degrees | sin(30) | 0.5 | DEG mode |
| Default example | sin(30)+2^3 | 8.5 | Loaded on page open |
| Implicit multiply | 2(3+4) | 14 | Multiplication inserted |
| Factorial | fact(5) | 120 | 5! also works |