Scientific Calculator
Evaluate complex mathematical expressions with a full-featured scientific calculator. Includes trigonometry, logarithms, exponents, factorials, parentheses, and constants — all evaluated safely in your browser with no data sent anywhere.
Scientific Calculator
Trig functions use radians. Use pi/180 to convert degrees. Examples: 2+3*4, sin(pi/2), log(1000), 5!, 2^10.
What is a Scientific Calculator?
A scientific calculator is a calculator designed to handle far more than the four basic arithmetic operations. In addition to adding, subtracting, multiplying, and dividing, it can evaluate trigonometric functions such as sine, cosine, and tangent; logarithmic and exponential functions; powers and roots; factorials; and complex expressions involving parentheses and the proper order of operations. The first pocket scientific calculators appeared in the early 1970s and quickly replaced slide rules in engineering, physics, and mathematics classrooms around the world.
Today, scientific calculators are as likely to live in a browser tab as on a desk. The key advantage of a digital scientific calculator is that it accepts expressions in their full written form — for example, 2 + 3 * sin(pi/4) — rather than requiring you to press buttons in a rigid sequence the way an old hardware calculator did. This makes them ideal for exploring mathematical ideas, verifying homework, and prototyping formulas before coding them into a spreadsheet or program.
Our scientific calculator evaluates every expression entirely in your browser. Nothing you type is ever transmitted to a server, which means it works offline once the page has loaded and your calculations remain completely private. The underlying parser is a hand-written recursive descent evaluator, not the JavaScript eval function, so only mathematical operations and the supported functions can be executed — there is no way for input to run arbitrary code.
The Order of Operations
Unary minus binds tighter than multiplication; postfix factorial binds tightest.
Evaluate 2 + 3 * 4 ^ 2 - sqrt(16)
- Exponent: 4 ^ 2 = 16 →
2 + 3 * 16 - sqrt(16) - Square root: sqrt(16) = 4 →
2 + 3 * 16 - 4 - Multiply: 3 * 16 = 48 →
2 + 48 - 4 - Add and subtract left to right: 2 + 48 = 50, then 50 − 4 = 46
How to Use
- Build an expression by clicking the buttons, or type directly into the display field.
- Use parentheses
(and)to group sub-expressions and override default precedence. - Use
^for powers,sqrt(for square root,log(for base-10 log, andln(for natural log. - Insert constants
piandewith their dedicated buttons, or type them. - Click = Evaluate to compute the result. Errors such as unmatched parentheses are shown beneath the display.
Supported Functions and Operators
+ − * / % ^ for add, subtract, multiply, divide, modulo, and power operations.sin cos tan in radians. Use pi/180 to convert degrees before applying these functions.log(x) base-10 logarithm, ln(x) natural logarithm, and sqrt(x) square root.pi ≈ 3.14159, e ≈ 2.71828, and postfix n! factorial up to 170!