Scientific Calculator
Evaluate an arithmetic or scientific expression with parentheses, powers, roots, logarithms and trigonometry in degrees or radians.
Calculator arithmetic runs locally in your browser and does not require an API.
The interactive calculator loads here when JavaScript is enabled.
How to use Scientific Calculator
Type an expression or use the keypad. Multiplication must be explicit, such as 2*(3+4). Functions need parentheses, such as sqrt(9) or sin(90). Choose DEG or RAD before using trigonometry.
Formula and method
Precedence is parentheses/functions, postfix ! and %, right-associative powers, unary signs, multiplication/division, then addition/subtraction. Thus −2^2 means −(2^2), while (−2)^2 gives 4.
Understanding the results
DEG uses degrees for trig input and inverse-trig output; RAD uses radians. Supported functions include sqrt, sin/cos/tan, asin/acos/atan, ln, log10, exp, pow10, square, inv, abs and factorial. Percent always divides by 100; results use floating-point arithmetic.
Worked example
In DEG mode, sin(90) + sqrt(9) × 2 = 1 + 3 × 2 = 7. Parentheses or a different angle mode can change an expression’s meaning.
Results use JavaScript floating-point arithmetic and are displayed with up to 15 significant digits. Domain errors, division by zero and nonfinite results are reported.
Frequently asked questions
Does 100 + 10% add ten percent of 100?
No. Percent is a postfix division by 100, so this expression gives 100.1.
How are chained powers evaluated?
Powers associate to the right: 2^3^2 means 2^(3^2), which gives 512.
Are all mathematical functions supported?
No. Use the listed functions and explicit multiplication. Domain errors and nonfinite results are reported.
What are the factorial limits?
Factorials require whole numbers from 0 to 170; negative or fractional factorials are unsupported.