How to calculate an expression
Enter one numeric expression in Expression, choose the settings that apply, then select Calculate or press Enter.
- Type an expression or use the on-screen keypad. The keypad inserts its token at the current cursor position.
- Choose Degrees, Radians, or Gradians for trigonometric calculations.
- Set Significant figures from 1 to 15.
- Select Calculate. The result shows the displayed value, angle mode, precision, and a Parsed expression.
The parsed expression is a normalized readback of the parser's abstract syntax tree, with operator grouping made explicit. If you change the angle mode, the current result is hidden; calculate again to show a result using the new mode.
Supported calculations and controls
- Operators and notation:
+ - * / ^, parentheses, trailing%, factorial!, implicit multiplication such as2piand3(2+1), and scientific notation such as6.022e23. - Roots and logarithms:
sqrt(x),cbrt(x),root(x, n),ln(x),log(x),log2(x), andlogb(x, base). - Trigonometric functions:
sin,cos,tan,sec,csc,cot, and their inverse formsasin,acos,atan,asec,acsc, andacot. - Other functions:
sinh,cosh,tanh,asinh,acosh,atanh,exp,abs,ceil,floor,round,sign, andmod(a, b). - Constants and operations:
pi,e,ansfor the previous result,nCr(n, r), andnPr(n, r).
Angle mode affects trigonometric and inverse trigonometric functions. Hyperbolic functions do not use the selected angle unit.
Use calculation history and Copy result
Each successful calculation is stored in this browser's localStorage. The history keeps the most recent 50 successful calculations. Select a history entry to load its original expression into Expression; it does not calculate automatically, so select Calculate or press Enter.
Select Copy result to copy a multi-line report containing Input, Parsed as, Angle mode, Precision, and Result. Select Clear history to remove the saved entries in this browser.
Limits and error cases
- Enter one expression at a time. The expression can contain up to 300 characters.
- The calculator reports errors for empty or malformed input, unbalanced parentheses, unsupported names or symbols, wrong function arguments, and division by zero.
- Logarithms require valid inputs.
ln,log, andlog2require a positive value;logb(x, base)also requires a positive base other than1. - Even roots of negative numbers are invalid. Factorials require non-negative whole numbers and reject inputs above 170.
- Some trigonometric inputs can be outside a function's domain or produce an undefined result. Non-finite overflow results are also rejected.
- This fixed parser evaluates numeric expressions. It does not solve for variables, simplify symbolic algebra, or execute arbitrary code.
Privacy and calculation storage
The calculator parses and evaluates expressions locally in the browser. Successful calculation history is stored in this browser with localStorage and can be removed with Clear history.
Frequently Asked Questions
What can this scientific calculator evaluate?
It evaluates numeric expressions combining arithmetic (+ - * / ^), parentheses, roots (sqrt, cbrt, root), logarithms (ln, log, log2, logb), trigonometric, inverse trigonometric and hyperbolic functions, exp, abs, ceil, floor, round, sign, mod, nCr, nPr, the constants pi and e, percentages, factorials, and scientific notation.
Does it solve equations or execute code?
No. It only evaluates a single numeric expression you type using a fixed, safe expression parser - it does not solve for an unknown variable, manipulate symbolic algebra, or execute arbitrary code. For solving equations, use the Algebra Calculator; for shapes and measurements, use the Geometry Calculator; for data analysis, use the Statistics Calculator.
How does the angle mode work?
Choose Degrees, Radians, or Gradians before evaluating. The setting applies to every trigonometric and inverse trigonometric function in the expression: sin, cos, tan and their reciprocals take an angle in the selected unit, and asin, acos, atan and their reciprocals return an angle in that unit.
How does significant figures affect the result?
The significant figures setting (1 to 15) controls how the final numeric result is rounded for display. Very small or very large results are shown in scientific notation once they fall outside a normal display range. The underlying calculation always uses full floating-point precision - only the displayed result is rounded.