Scientific Calculator
Trigonometry in degrees, radians or gradians, logarithms, powers, roots and factorials, with the correct order of operations.
Uses standard double-precision arithmetic: results are shown to about 15 significant digits. Type with your keyboard or tap the keys.
History
No calculations yet. History is kept for this visit only and is never saved.
Free Online Scientific Calculator
Our Scientific Calculator handles everything from everyday sums to trigonometry, logarithms, powers, roots and factorials. It follows the standard mathematical order of operations, works in degrees, radians or gradians, and keeps a history of your calculations for as long as the page is open. Everything runs in your browser.
How to Use the Scientific Calculator
- Enter your calculation. Type with your keyboard or tap the keys. The display shows the whole expression, so you can check and edit it before you calculate.
- Press = or Enter. The result stays hidden until you calculate.
- Choose Deg, Rad or Grad before using sin, cos, tan or their inverses. Deg is the default.
- Open Functions for trigonometry, logarithms, constants, powers and roots, and More for hyperbolic functions, memory and the sign key. Tap 2nd to switch sin, cos and tan to their inverses.
- Keep going. After a result, tap an operator to continue from it (the result becomes Ans), or start typing to begin a new calculation. Tap any item in History to reload it.
Keyboard Entry
- Digits, decimal point, + - * / and ^ for powers, ( ) for brackets, ! for factorial and % for percent.
- Function names can be typed in full, for example sin(30), sqrt(16), log(100), ln(e), asin(0.5). Type pi for pi and e for the constant e.
- Scientific notation can be typed with e or E attached to the number, for example 1.5e3 or 1.5E3. A standalone e is the constant e, so write 2*e for 2 times e.
- Enter calculates, Escape clears the display and Backspace deletes.
Keys and Functions
| Key | What it does | Example |
|---|---|---|
| sin, cos, tan | Sine, cosine and tangent in the selected angle unit | sin(30) = 0.5 in Deg mode |
| 2nd, then sin, cos or tan | Inverse sine, cosine and tangent, answered in the selected angle unit | sin⁻¹(0.5) = 30 in Deg mode |
| sinh, cosh, tanh (More) | Hyperbolic functions. They do not use angle units | cosh(0) = 1 |
| log | Logarithm to base 10 | log(1000) = 3 |
| ln | Natural logarithm (base e) | ln(e) = 1 |
| √ and ∛ | Square root and cube root. A cube root of a negative number is allowed | √16 = 4 and ∛(−8) = −2 |
| y√x | The y-th root. Type the root degree first, then the key, then the number | 4y√81 = 3 |
| x², x³, xy | Powers | 2^10 = 1024 |
| 10x and ex | Ten or e raised to a power. Type the power, then close the bracket | 10^(2) = 100 |
| 1/x | Reciprocal (the number to the power of −1) | 4^(−1) = 0.25 |
| n! | Factorial of a whole number from 0 to 170 | 5! = 120 |
| % | Divides the number before it by 100 | 50% = 0.5 |
| π and e | The constants pi and e | π is about 3.14159265358979 |
| Ans | The last result you calculated | Ans × 2 doubles the last answer |
| EE | Scientific notation: times ten to the power | 1.5E3 = 1500 |
| ± (More) | Changes the sign of the whole expression | |
| MS, M+, M−, MR, MC (More) | Memory: store, add, subtract, recall and clear. MS, M+ and M− use the current result |
Order of Operations
The calculator evaluates the whole expression using the usual mathematical rules, not step by step in the order you press keys. This is the order it follows:
| Priority | Operation | Direction |
|---|---|---|
| 1 | Brackets and function inputs, such as sin(30) | Innermost first |
| 2 | Factorial (!) and percent (%) | Left to right |
| 3 | Powers and y-th roots (^ and y√) | Right to left, so 2^3^2 = 2^9 = 512 |
| 4 | Negative sign | After powers, so −2^2 = −4 |
| 5 | Multiplication, division and implicit multiplication such as 2π | Left to right |
| 6 | Addition and subtraction | Left to right |
Implicit multiplication works before a bracket, a constant or a function, so 2π, 3(4+1) and 2sin(30) all work. Two numbers side by side, such as 2 3, show a missing operator message instead of being multiplied.
Worked Examples
- 2 + 3 × 4^2 = 50, because the power and multiplication are done before the addition.
- −2^2 = −4, but (−2)^2 = 4.
- sin(30) + cos(60) = 1 in Deg mode.
- 5! / (3! × 2!) = 10.
- log(1000) + ln(e) = 4.
Degrees, Radians and Gradians
| Unit | Full turn | Right angle |
|---|---|---|
| Degrees (Deg) | 360 | 90 |
| Radians (Rad) | 2π (about 6.2832) | π/2 (about 1.5708) |
| Gradians (Grad) | 400 | 100 |
Exact multiples of 30 and 45 degrees, and the matching radian and gradian values, return exact results, so sin(180) is 0, cos(60) is 0.5 and tan(45) is 1. Angles that differ from these by only a tiny rounding amount (about one part in a trillion) are treated as exact. Tangent shows an error at angles where it is undefined, such as 90 degrees.
Accuracy and Limits
The calculator uses standard double-precision floating-point numbers, so results are shown to about 15 significant digits. Very large or very small results switch to scientific notation, such as 1.5E20 or 2E-7. Factorials work for whole numbers from 0 to 170, and results too large for the number format show an error. Zero to the power zero and division by zero show an error rather than a value. This is a general-purpose calculator, so check anything critical, such as engineering or safety work, with your own method.
Frequently Asked Questions
Does this scientific calculator follow the order of operations?
Yes. It works out brackets first, then factorials and percentages, then powers and roots (right to left), then the negative sign, then multiplication and division, then addition and subtraction. Because the negative sign comes after powers, -2^2 gives -4, and because powers stack from the right, 2^3^2 gives 512.
How do I switch between degrees, radians and gradians?
Use the Deg, Rad and Grad buttons above the display. Deg is the default. The setting applies to sin, cos, tan and their inverses. The hyperbolic functions sinh, cosh and tanh do not use angle units. If a result is showing when you change the setting, it is recalculated in the new unit.
Why does tan(90) show an error?
Tangent is undefined at 90 degrees and at every 90 degrees plus a multiple of 180 degrees, and at the matching radian and gradian values. The calculator shows an error instead of a very large number. Exact multiples of common angles are handled directly, so sin(180) returns exactly 0 in Deg mode and sin(pi) returns 0 in Rad mode.
How accurate is the calculator?
It uses standard double-precision floating-point arithmetic, which holds roughly 15 to 17 significant digits internally. Results are shown to about 15 significant digits, so rounding noise such as 0.1 + 0.2 = 0.30000000000000004 is tidied to 0.3. Very large or very small answers switch to scientific notation, for example 1.5E20. Treat any digits beyond the fifteenth as approximate.
How does the percent key work?
The percent key divides the number before it by 100, so 50% is 0.5 and 200 times 15% is 30. It does not add or subtract the percentage the way some basic calculators do, so 200 + 10% gives 200.1. For percentage increases, decreases and percentage-of questions, use the Percentage Calculator.
What is the largest factorial I can calculate?
170! is the largest, at about 7.26E306. Factorials need a whole number from 0 upwards. 171! is too large for standard double-precision numbers, and decimals or negative numbers show an error.
How do I enter numbers in scientific notation?
Tap EE after a number, then type the exponent. For example 1.5 EE 3 enters 1.5E3, which is 1500. When typing, both e and E work as the exponent marker when attached directly to a number, so 1e-15 and 1E-15 both mean 0.000000000000001. A standalone e is the constant e, which is about 2.718, so 2*e and 2 e both mean 2 times e. An exponent marker with no digits after it, such as 1e or 1e+, shows an error.
Can I leave brackets open?
Yes. Any brackets still open at the end of a calculation are closed for you when you press equals, so sin(30 is treated as sin(30). A closing bracket with no matching opening bracket shows an error.
Is my calculation history saved?
No. History lasts only while the page is open. It is not stored on your device, and Clear History removes it straight away. Calculations run in your browser and are not uploaded.