Scientific Calculator

A full scientific calculator supporting trigonometry, logarithms, exponents, and factorials. Type a whole expression or use the keypad, and switch between degrees and radians.

 
0

Result

0

Trigonometry in degrees

Supported: + − × ÷ % ^ ! ( ), sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, ln, log, log2, sqrt, cbrt, abs, exp, floor, ceil, round, pi, e.

Order of operations

This calculator follows standard mathematical precedence rather than evaluating left to right, which is why it gives 14 for 2+3*4 rather than 20. Multiplication and division bind more tightly than addition and subtraction, and exponentiation binds more tightly still.

Two details are worth knowing because calculators disagree on them. Exponentiation here is right-associative, so 2^3^2 evaluates as 2^(3^2) = 512, matching mathematical convention. And unary minus binds more loosely than exponentiation, so -2^2 gives -4, the same as -(2^2). If you want the square of negative two, write (-2)^2.

Precedence, highest first
LevelOperationExample
1Parentheses(2 + 3) × 4 = 20
2Functions and factorialssin(30), 5! = 120
3Exponents, right to left2^3^2 = 2^9 = 512
4Unary minus−2^2 = −4
5Multiply, divide, modulo, left to right8 ÷ 2 × 3 = 12
6Add and subtract, left to right2 + 3 × 4 = 14

Supported functions

Type function names directly followed by a parenthesis. Trigonometric functions respect the degrees or radians setting; the inverse functions return values in the same mode.

Functions and operators
NameMeaningExample
sin, cos, tanTrigonometric ratios of an anglesin(30) = 0.5 in degree mode
asin, acos, atanInverse trigonometry; returns an angleatan(1) = 45 in degree mode
sinh, cosh, tanhHyperbolic functionscosh(0) = 1
lnNatural logarithm, base eln(e) = 1
log, log10Logarithm base 10log(1000) = 3
log2Logarithm base 2log2(1024) = 10
sqrt, cbrtSquare and cube rootcbrt(27) = 3
expe raised to a powerexp(2) = 7.389056
abs, signAbsolute value; sign of a numberabs(−4.2) = 4.2
floor, ceil, roundRound down, up, or to nearestceil(2.1) = 3
x!Factorial (postfix)6! = 720
^Power2^10 = 1024
%Modulo (remainder)17 % 5 = 2

Degrees versus radians

This is the single most common source of wrong trigonometric answers. Degrees divide a full turn into 360 parts and are typical in geometry, surveying, and everyday use. Radians measure angle as arc length over radius, giving 2π for a full turn, and are required in calculus because the derivative of sin(x) is cos(x) only when x is in radians.

Check the mode before trusting a trig result. sin(90) is 1 in degrees but approximately 0.894 in radians — both are correct answers to different questions. Convert with degrees = radians × 180/π.

Exact values at the common angles
AngleRadianssincostan
00 = 0.00001 = 1.00000 = 0.0000
30°0.1667π1/2 = 0.5000√3/2 = 0.8660√3/3 = 0.5774
45°0.25π√2/2 = 0.7071√2/2 = 0.70711 = 1.0000
60°0.3333π√3/2 = 0.86601/2 = 0.5000√3 = 1.7321
90°0.5π1 = 1.00000 = 0.0000undefined

Constants

Two constants are built in and can be typed by name: pi (or the symbol π) and e. The others below are here for reference; enter them as expressions, for instance sqrt(2) or (1+sqrt(5))/2.

Mathematical constants
ConstantValueWhat it is
π (pi)3.14159265…Ratio of a circle's circumference to its diameter
e2.71828183…Base of natural logarithms; limit of (1 + 1/n)^n
√21.41421356…Diagonal of a unit square
φ (golden ratio)1.61803399…(1 + √5) ÷ 2

Implicit multiplication and other shortcuts

The parser accepts implicit multiplication, so 2(3+4), 2pi, and 3sin(45) all work as written. This is convenient but can be ambiguous in hand-written notation, so when precedence matters, parentheses are always clearer than relying on a convention.

The keyboard works anywhere on the page: digits and operators type, Enter evaluates, Escape clears, and letters spell function names. The result of each calculation is stored and can be reused with the Ans key, which is useful for chaining a sequence of operations without retyping intermediate values.

Frequently asked questions

How do I switch between degrees and radians?

Use the Degrees checkbox below the input. When checked, trigonometric functions take arguments in degrees and inverse functions return degrees. Unchecked, everything uses radians, which is what calculus requires.

Why does 2+3*4 give 14 and not 20?

Because of standard order of operations: multiplication is performed before addition, so 3*4 = 12 is calculated first, then added to 2. To force addition first, write (2+3)*4, which gives 20.

What does -2^2 evaluate to?

Negative four. Exponentiation binds more tightly than unary minus, so the expression is read as -(2^2) = -4. To square negative two, write (-2)^2, which gives 4. This convention matches standard mathematical notation.

How do I calculate a root other than a square root?

Use a fractional exponent. The nth root of x is x^(1/n), so the fifth root of 32 is 32^(1/5) = 2. There are also dedicated sqrt and cbrt functions for square and cube roots.

What is e, and why does it matter?

Euler's number, about 2.71828, is the base of the natural logarithm and the growth rate at which a quantity's rate of increase equals its current size. It appears wherever growth compounds continuously — interest, population, radioactive decay — and it is what makes the derivative of e^x equal to e^x itself.

Is my calculation sent to a server?

No. Everything is evaluated in your browser by a parser built for arithmetic only, and nothing is transmitted or stored. The parser cannot execute code, so expressions are safe to share as text.

Last reviewed . Results are estimates for informational purposes only.