Scientific calculator
Evaluate arithmetic, powers, roots, logarithms and trigonometric functions with a safe local parser. Choose degrees or radians and review alternate number formats.
Supported scientific calculator syntax
| Type | Syntax | Example |
|---|---|---|
| Arithmetic | + − * /, parentheses and implicit multiplication | 2(3+4) |
| Powers and roots | ^, sqrt, cbrt and reciprocal through division | sqrt(81)+2^5 |
| Trigonometry | sin, cos, tan, asin, acos and atan | sin(30) in degree mode |
| Logarithms | log base 10, natural log ln, and exp | ln(e) |
| Other functions | abs, floor, ceil and round | abs(-7.5) |
| Constants and postfix | pi, e, ans, factorial ! and percent % | 5!+10% |
Exponentiation is right-associative: 2^3^2 means 2(3²). Unary minus follows standard precedence, so -2^2 equals −4. A postfix percent divides the preceding value by 100; therefore 200*10% equals 20.
How the calculation works
The calculator tokenizes the expression, inserts supported implicit multiplication, builds a syntax tree and evaluates that tree in the browser. It does not execute typed JavaScript. Degree mode converts trigonometric inputs to radians and converts inverse-trigonometric outputs back to degrees.
Scientific notation uses a power of ten. Engineering notation adjusts the exponent to a multiple of three. Both alternate formats are generated from the same unrounded binary floating-point result.
Checked examples
| Expression | Mode | Expected result |
|---|---|---|
| 2+3*4 | Either | 14 |
| 2^3^2 | Either | 512 |
| 5! | Either | 120 |
| sin(30) | Degrees | 0.5 |
| sin(pi/2) | Radians | 1 |
| log(1000)+ln(e) | Either | 4 |
| 2pi | Either | 2π ≈ 6.283185307 |
| 200*10% | Either | 20 |
Frequently asked questions
Does this calculator graph functions?
No. Use the Graphing Calculator to plot one or more functions, generate a table and estimate visible roots.
Can I switch between degrees and radians?
Yes. The angle selector affects trigonometric and inverse-trigonometric functions. Other operations are unchanged.
What does Ans mean?
ans inserts the latest successful result from the current page session. Reset clears the result, history and memory.
Is scientific notation input accepted?
Yes. Values such as 1.2e-6 are accepted. Use the dedicated Scientific Notation Calculator for exact decimal-string conversion and arithmetic with extremely large exponents.
Related tools: Graphing Calculator, Scientific Notation Calculator, Logarithm Calculator, Exponent Calculator and Square Root Calculator.