Scientific Calculator

Free online scientific calculator with sin, cos, tan, inverse trig, log, ln, square root and powers. Trig works in radians; see how to convert from degrees.

Scientific Calculator

Live Compute

This scientific calculator handles the maths a basic phone calculator can't: sine, cosine and tangent and their inverses, base-10 and natural logarithms, square roots, squares, any power, and the constants pi and e. It is useful for algebra and trigonometry homework, checking an engineering or physics formula, or working out a growth factor without opening a spreadsheet. Everything runs in your browser as you press the keys.

One thing to know before you start: the trigonometry keys work in radians, not degrees. If your textbook question says "sin 30 degrees", you must convert first. The worked example below shows exactly how.

How the keys work

The display has two lines. The small top line shows the expression you are building, and the large bottom line shows the number you are typing or the latest result.

  • Digits, decimal point and +/- enter a number. The +/- key flips the sign of the number on the display.
  • +, -, x and / add the current number and the operator to the expression. Press = to evaluate it. Multiplication and division are done before addition and subtraction, so 2 + 3 x 4 gives 14, not 20.
  • x^y raises the current number to a power: press 2, x^y, 10, = to get 1024.
  • sin, cos, tan, asin, acos, atan, log, ln, sqrt and x^2 act immediately on the number currently on the display and replace it with the result. log is base 10; ln is the natural log (base e).
  • pi and e put the constant on the display (3.141592653589793 and 2.718281828459045).
  • % divides the number on the display by 100, so 15 % becomes 0.15. To find 15% of 200, press 200, x, 15, %, = to get 30.
  • DEL removes the last digit, C clears only the current number, and AC clears everything including the expression.

Worked example: sin 30 degrees

Because the trig keys expect radians, convert degrees with radians = degrees x pi / 180:

  1. Press 3, 0, then x.
  2. Press pi, then /.
  3. Press 1, 8, 0, then =. The display shows 0.5235987755982988, which is 30 degrees in radians.
  4. Press sin. The display shows 0.49999999999999994.

The exact answer is 0.5. The tiny difference comes from how computers store decimal numbers (see the limits section below), so round to the precision you need. If you press 3, 0, sin straight away, you get -0.9880316240928618, which is the sine of 30 radians - a common mistake that gives a wrong answer on homework.

The same conversion works in reverse for inverse functions: asin, acos and atan return an angle in radians. Multiply the result by 180 and divide by pi to get degrees. For example, 0.5 then asin gives 0.5235987755982989, and 0.5235987755982989 x 180 / pi gives 30 (allowing for rounding).

More examples you can check

What you wantKey pressesResult
log of 10001000, log3
Natural log of ee, ln1
Square root of 22, sqrt1.4142135623730951
2 to the 10th power2, x^y, 10, =1024
Area of a circle, radius 55, x^2, x, pi, =78.53981633974483
Growth of 1.05 over 10 years1.05, x^y, 10, =1.628894626777442

Reading the result

  • Long decimals: the calculator shows the full double-precision value (about 15 to 17 significant digits). Round to what your question asks for, such as 3 significant figures or 2 decimal places.
  • NaN: means "not a number". You get it for impossible operations such as the square root of a negative number or asin of a value above 1.
  • Infinity: appears when you divide by zero.
  • Error: shows when the expression can't be evaluated, for example if it ends with an operator. Press AC and start again.
  • Very large numbers are shown in full or in exponential form such as 1e+21, which means 1 x 10^21.

Limits to know

  • No degree mode. All trig is in radians, as in JavaScript's built-in Math.sin. Use the conversion above.
  • Floating-point rounding. 0.1 + 0.2 shows 0.30000000000000004. This is normal for any program that uses binary floating point; it is not a calculation error worth worrying about for everyday work.
  • Functions act on one number at a time. To take the sine of a sum, work out the sum with = first, then press sin.
  • Brackets: for multi-step formulas, the most reliable approach is to calculate the inner part first, press =, and continue from that result.
  • Mouse or touch only. Typing on your keyboard does not enter numbers; click or tap the keys.
  • There is no memory, history, fraction mode, statistics or graphing. For homework that needs those, a handheld graphing calculator or spreadsheet is a better fit.

When another tool fits better

A scientific calculator is fastest for one-off formulas. If you repeat the same calculation with different numbers, a spreadsheet saves time. For everyday sums, some Toolspedia tools do the whole job in one step: the Percentage Calculator for percent change and "X is what percent of Y", the Number Base Converter for binary, octal and hex, and the Temperature Converter or Length Converter for unit conversions.

Frequently Asked Questions

Radians. The sin, cos and tan keys expect an angle in radians, and asin, acos and atan return radians. To use degrees, multiply by pi and divide by 180 first (30 x pi / 180 = 0.5236), then press sin.

Because 30 is treated as 30 radians, not 30 degrees. Convert 30 degrees to radians first (30 x pi / 180), then press sin to get about 0.5.

log is the base-10 logarithm (log of 1000 is 3). ln is the natural logarithm with base e, about 2.71828 (ln of e is 1).

Press 3, then x^y, then 4, then =. The result is 81. For squares you can also use the x^2 key, which acts on the number on the display immediately.

Computers store decimals in binary, and some decimal fractions can't be stored exactly. The error is tiny; round the result to the number of decimal places you need.