Scientific Calculator

Solve arithmetic, trigonometry (radians), base-10 logarithms, square roots, and nested parentheses locally using a safe expression parser.

Evaluated result0

Supported functions and syntax

Function / OperatorMeaningExample
sin(x), cos(x), tan(x)Trigonometric functions (radians)sin(0) = 0
log(x)Base-10 logarithm (x > 0)log(100) = 2
sqrt(x)Square root (x ≥ 0)sqrt(144) = 12
( )Grouping with standard operator precedence(2 + 3) * 4 = 20

Formula and worked example

Standard PEMDAS / BODMAS order: Parentheses → Functions → Multiplication & Division → Addition & Subtraction

Evaluating sqrt(144) + log(100) computes 12 + 2 = 14, and 2 + 3 * 4 respects multiplication precedence to return 14.

How to use this calculator

  1. Click keypad buttons or type directly into the expression field.
  2. Always close parentheses after sin(, cos(, tan(, log(, or sqrt(.
  3. Press "=" or Enter to evaluate the expression cleanly.

Limitations and assumptions

Trigonometric functions accept angles in radians rather than degrees. To convert degrees to radians, multiply degrees by 3.14159265 / 180 inside the function call.

Frequently asked questions

Do sin, cos, and tan use degrees or radians?

They use radians, matching standard JavaScript and scientific programming libraries.

What base does log() use?

log(x) calculates the common base-10 logarithm (log₁₀).