Scientific Calculator

About this calculator

This Scientific Calculator evaluates full expressions with the correct order of operations, including sine, cosine and tangent (and their inverses) in degrees or radians, natural and common logarithms, powers, roots, factorials, percentages and the constants π and e.

Click the keys or type on your keyboard. Press = to see the result, then share it or keep going with Ans.

0
DEG

Tip: you can also type with your keyboard. Enter evaluates, Backspace deletes, Esc clears.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How to use the scientific calculator

Build an expression exactly as you would write it on paper, then press =. The display shows what you typed; after you press equals, the small line above the result keeps the full expression so you can check it. Functions such as sin(, ln( and √( open a parenthesis for you. You can close it with ), or simply press = and any open parentheses are closed automatically.

  • Deg / Rad: chooses whether trigonometric functions read angles in degrees or radians. The current mode is shown under the display. Degrees is the default.
  • sin-1, cos-1, tan-1: inverse functions. They return an angle in the selected mode.
  • xy: raises the number before it to the power that follows, for example 2^10.
  • x2, x3, 1/x: apply to the number or parenthesized group just before them.
  • y√x: the root key. Type the radicand first, then the key, then the index: 27 ʸ√ 3 is the cube root of 27, which is 3.
  • ex and 10x: exponentials with base e and base 10.
  • ln and log: natural logarithm (base e) and common logarithm (base 10).
  • n!: factorial of a whole number, so 5! is 120.
  • %: divides the value before it by 100, so 25% is 0.25 and 200×15% is 30.
  • EXP: enters a power of ten in scientific notation. 3EXP8 appears as 3E8 and means 3 × 108.
  • Ans: the last result. Pressing an operator right after = continues from the previous answer automatically.
  • M+, M−, MR: add the current value to memory, subtract it from memory, and recall the stored value into the expression.
  • RND: inserts a random number between 0 and 1.
  • ±, Back, AC: change the sign of the last number, delete the last entry, and clear everything.

Order of operations

The calculator follows the standard precedence rules taught in algebra, often remembered as PEMDAS:

  1. Parentheses are evaluated first, from the innermost outward.
  2. Functions (sin, log, √ and so on) apply to the value right after them.
  3. Exponents and roots come next. Powers group from the right, so 2^3^2 is 29 = 512, not 82.
  4. A leading minus sign is applied after the power, so −2^2 is −4. Write (−2)^2 to get 4.
  5. Multiplication and division are done from left to right.
  6. Addition and subtraction are done last, also left to right.

Implied multiplication works too: 2π, 3(4+1) and (1+2)(3+4) all multiply.

3 + 4 × 2 ÷ (1 − 5)^2 = 3 + 8 ÷ 16 = 3.5

Worked examples

You typeModeResultWhy
sin(30)Deg0.5The sine of 30 degrees is exactly one half.
cos(π)Rad−1π radians is 180 degrees.
tan⁻¹(1)Deg45The angle whose tangent is 1.
log(1000)either3103 = 1,000.
ln(e^(2))either2ln and ex undo each other.
5!either1205 × 4 × 3 × 2 × 1.
2^10either1024Ten factors of 2.
√(2)either1.4142135624Shown with a 12 digit budget: 10 decimals here.

Degrees versus radians

A full circle is 360 degrees or 2π radians, so one radian is about 57.2958 degrees. Most school geometry problems use degrees, while calculus, physics and most programming languages use radians. If sin(90) gives 0.89399666360056 instead of 1, the calculator is in radian mode; switch to Deg. To convert by hand, multiply degrees by π/180 to get radians, or multiply radians by 180/π to get degrees.

Precision and scientific notation

Results are computed in double-precision floating point (about 15 to 16 significant digits) and displayed with a 12 digit budget: the whole-number part plus up to 11 minus that many decimals (so 1 ÷ 3 shows 0.3333333333 and 123456.789 ÷ 7 shows 17636.684143). This hides tiny binary rounding errors such as 0.1 + 0.2 = 0.30000000000000004. Whole numbers below 1021 are shown in full, so 2^64 shows 18446744073709552000. Larger or very small results switch to scientific notation with 9 decimals, for example 2^70 shows as 1.18059162e+21. Factorials are defined for whole numbers up to 170; anything larger exceeds the floating point range. Operations with no real answer, such as the square root of a negative number, the logarithm of zero, or division by zero, show Error.

Common logarithm and exponent identities

  • log(a × b) = log(a) + log(b)
  • log(an) = n × log(a)
  • logb(x) = ln(x) ÷ ln(b), so the base-2 log of 8 is ln(8)÷ln(2) = 3
  • am × an = am+n and (am)n = amn
  • sin²θ + cos²θ = 1 for every angle θ

Frequently asked questions

How do I switch between degrees and radians?
Press Deg or Rad in the top row of function keys. The active mode is highlighted and shown under the display. It only affects sin, cos, tan and their inverses.
Why does sin(90) not equal 1?
The calculator is in radian mode, so it is computing the sine of 90 radians (about 0.894). Switch to Deg and sin(90) returns 1.
Does this calculator follow the order of operations?
Yes. Parentheses come first, then functions, powers and roots, then multiplication and division, then addition and subtraction. For example, 2 + 3 × 4 = 14.
How do I enter scientific notation?
Type the mantissa, press EXP, then type the power of ten. 6.022 EXP 23 means 6.022 × 1023.
Can I type instead of clicking?
Yes. Digits, + − * / ^ ( ) ! and % work from the keyboard. Enter evaluates, Backspace deletes the last entry and Esc clears.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.