Scientific Calculator

A scientific calculator with trigonometry, logarithms, powers, roots and factorials. Press the buttons or type a full expression and hit Enter.

This calculator handles the four basic operations plus trigonometric and inverse trigonometric functions, common and natural logarithms, square roots, powers, factorials, percent, absolute value and the constants π and e, all in a single expression field. Instead of pressing one operator at a time, you write the whole expression, for example2*(3+sin(30))^2, and press Enter, so you can see the order of operations and fix mistakes before you calculate. It suits schoolwork in maths and physics, quick engineering checks, compound-growth arithmetic and verifying angle conversions. The last five calculations are listed under the keypad, and the latest result can be copied to the clipboard.

What it can do

Order of operations and input rules

The calculator evaluates an expression in this order. Rows nearer the top bind more tightly.

RankOperationExample and result
1Parentheses, function arguments(2+3)*4 = 20
2! and % (postfix)3! = 6, 50% = 0.5
3Power ^ (right to left)2^3^2 = 2^9 = 512
4Unary minus−2^2 = −4 (the power is applied first)
5Multiplication *, division /8/2*3 = 12 (left to right)
6Addition +, subtraction −1+2*3 = 7

Implied multiplication is not recognised, so write 2*π instead of 2π and 3*(4+1) instead of 3(4+1). A function name must be followed by a parenthesis: sin(30) works but sin30 does not. The letter e is always Euler's number (2.718…), so scientific notation such as 2e3 is not available; write 2*10^3 instead.

DEG versus RAD, with reference values

180° equals π radians, so radians = degrees × π ÷ 180. The same input sin(30) gives 0.5 in DEG mode but about −0.988 in RAD mode, which makes checking the mode the single most important habit. The table below shows common angles, calculated at build time with the same rule the calculator uses (12 significant digits, and values smaller than 1e−10 shown as 0).

Angle (DEG)sincostan
0°010
30°0.50.8660254037840.57735026919
45°0.7071067811870.7071067811871
60°0.8660254037840.51.73205080757
90°10undefined
180°0-10

Inverse functions return degrees in DEG mode and radians in RAD mode: asin(0.5) gives 30 in DEG mode and about 0.5236 in RAD mode. The domain matters too: asin and acos only accept arguments from −1 to 1.

Factorial reference

n! is the product of the whole numbers from 1 to n, and 0! is defined as 1. It grows very quickly: 20! is about 2.4 × 10¹⁸, and 170! is the largest factorial this calculator can return, because 171! exceeds the biggest number a double-precision value can hold (about 1.8 × 10³⁰⁸).

nn!
01
11
22
36
424
5120
6720
75,040
840,320
9362,880
103,628,800
12479,001,600
151,307,674,368,000
202,432,902,008,176,640,000

The table lists exact integers, but the calculator rounds results to 12 significant digits, so 20! appears as 2432902008180000000 rather than 2432902008176640000. For exact counts of arrangements and selections, compute with smaller numbers or use a tool built for exact integers.

Worked examples, checked by calculation

How the expression is evaluated

The calculator does not use JavaScript's eval or a similar shortcut. It splits your text into numbers, names and operators, and then evaluates it with a small hand-written parser that only understands the functions listed above. Anything else, such as an unknown word or a stray symbol, is rejected with an error message. Everything runs locally in your browser; the expressions you type are never sent to a server.

Accuracy and limits

Common mistakes

Frequently Asked Questions

What is the difference between DEG and RAD?

DEG treats a full turn as 360 degrees. RAD treats a full turn as 2π, and is the unit most mathematics and engineering formulas assume. sin, cos, tan and their inverses give different results in each mode, so check the button at the top before you calculate.

Can I type an expression with my keyboard?

Yes. Click the field, type the expression and press Enter. Functions need parentheses, such as sin( or log(, and powers use the ^ symbol.

The display shows an error. What does it mean?

The expression is invalid or undefined: mismatched parentheses, a function without parentheses, a missing multiplication sign, division by zero and similar. The message on the line above the field names the problem.

What is the difference between log and ln?

log is the base-10 logarithm and ln is the natural logarithm with base e (about 2.71828). log(1000) = 3 and ln(e) = 1. For any base b, log base b of x equals ln(x) ÷ ln(b).

How are very large results shown?

Scientific notation such as 1e+21 cannot be typed back in, so the field shows the full digits instead. Results beyond about 1.8 × 10³⁰⁸ are reported as too large; factorials work up to 170!.

Related tools