🧮

Scientific Calculator

Full-featured scientific calculator with trigonometry, logarithms, and more. Supports keyboard input.

0

Keyboard input supported · Angles in degrees

About this tool

Last updated:

An online scientific calculator with keyboard input

This scientific calculator handles everyday arithmetic and the common scientific functions: sine, cosine, tangent, base-10 and natural logarithms, square root, squares, powers, factorials, and the constants π and e. You can click the buttons or type on your keyboard.

How to use it

  1. Click the buttons, or type digits and + - * / ^ ! ( ) on your keyboard.
  2. Function buttons such as sin, log and √ add an opening bracket. Type the value, then close it with ). A missing final bracket is closed for you.
  3. Press = or Enter to get the result.
  4. Use ⌫ or Backspace to delete, and C or Escape to clear everything.

Buttons and functions

ButtonMeaning
sin, cos, tanTrigonometry, with the angle in degrees
log, lnLog base 10 and natural log
√, x², xʸSquare root, square and power
n!Factorial, for whole numbers 0 to 170
π, ePi and Euler's number
+/−Flips the sign of a number or wraps the whole expression in a minus

How it works

The expression is read by a small parser, not by JavaScript eval. It follows the usual order of operations: brackets, then powers and factorials, then multiplication and division, then addition and subtraction. Powers are right-associative, so 2^3^2 is 2^9. Writing 2π or 3sin(30) without a × sign also works. Results are rounded to 12 significant digits. Everything runs in your browser.

Assumptions and limits

  • Angles are always in degrees. There is no radian or gradian switch.
  • There are no inverse trig functions (sin⁻¹ and so on), no memory keys and no history.
  • Invalid input, division by zero, tan(90) and factorials above 170 show "Error".
  • Factorial only accepts non-negative whole numbers.
  • Keyboard shortcuts are paused while you are typing in another text field on the page.

Frequently asked questions

Does it use degrees or radians?

Degrees. For example sin(30) returns 0.5. To work in radians, convert first by multiplying by 180 and dividing by π.

Why does -2^2 give -4?

The minus sign applies after the power, so it is read as -(2^2). To square negative two, write (-2)^2 or (-2)².

What is the largest factorial I can calculate?

170!. Anything larger overflows and the display shows Error.

More to explore

Related Calculators

Browse all tools from the same category.

Showing 1-2 of 29