Scientific Calculator
Free online scientific calculator. Type an expression or use the keys: trigonometry in degrees or radians, logarithms, powers, roots, factorials and scientific notation.
For example, type 2sin(30) + 3.2E5^2 and press = or Enter. The Reads as line shows how the expression was understood, the working lists every step, and the answer can be shown in normal, scientific or engineering notation.
Use the arrow keys to move between keys and Enter or Space to press one. You can also type straight into the expression.
Put a comma between two inputs: root(3, 27), logb(8, 2), nCr(5, 2).
Support ToolPrairie
Found our calculator helpful? Contributions are optional; no tax receipt is issued.
How to enter an expression
Type on your keyboard or tap the keys; both write into the same line, and the Reads as line shows how the calculator understood it.
- Use + - × ÷ or the keyboard keys + - * /. Use ^ for powers: 2^10 = 1024.
- Functions need parentheses: sin(30), log(1000), sqrt(2). √ and ∛ can also go straight before a number, as in √2. The keys add the opening parenthesis for you, and the closing parentheses you still need are shown in grey after the expression; you do not have to type them. As you type a function name, the rest of it appears in grey: press Tab or the right arrow to accept it.
- You can leave out × before a parenthesis, a constant or a function: 2π, 3(4 + 1) and 2sin(30) all multiply.
- Two-input functions use a comma: root(3, 27) = 3, logb(8, 2) = 3, nCr(5, 2) = 10.
- Press = or Enter to show the answer on the display and save it to History and to Ans. Pressing an operator next continues from the answer: after 2 + 3, × 2 gives 5×2 and EXP gives 5×10^. Click the answer to select it for copying; ⌫ (delete) brings back its expression. Ans always means the previous answer.
- M+ adds the current answer to memory, M− subtracts it, MR inserts M into the expression and MC sets memory back to 0. AC (all clear), or the Esc (Escape) key, clears the display, and Clear history empties History.
- The calculator works fully from the keyboard: type the expression, press Enter for =, Esc to clear the display, Tab to accept a suggested name and the up and down arrows to bring back earlier results. Press ? or choose Keyboard shortcuts for the full list.
- Choose Simple for the basic keys only, or Scientific (the default) for the function keys as well. Both views calculate the same way.
What the keys mean
Calculator keys use short names to fit. This is what each one stands for.
- sin, cos, tan: Sine, cosine and tangent of an angle.
- sin⁻¹, cos⁻¹, tan⁻¹: Inverse sine, cosine and tangent: the angle that has a given sine, cosine or tangent. Also written arcsin, arccos and arctan, and typed asin, acos and atan.
- sec, csc, cot: Secant, cosecant and cotangent: 1 ÷ cosine, 1 ÷ sine and cosine ÷ sine.
- sinh, cosh, tanh: Hyperbolic sine, cosine and tangent, used in engineering and physics. The keys with ⁻¹ give their inverses.
- π, e: Pi, about 3.14159, and Euler’s number, about 2.71828, the base of natural logarithms.
- x², x³, xʸ, 1/x: Square, cube, any power (typed ^) and the reciprocal, 1 divided by the value.
- √, ∛, ʸ√x: Square root, cube root and any root, typed sqrt(x), cbrt(x) and root(n, x).
- 10ˣ, eˣ: 10 or e raised to the power of the value.
- log, ln, log₂, logᵧx: Logarithms: the common logarithm (base 10), the natural logarithm (base e), base 2, and any base, typed logb(x, base).
- n!, nCr, nPr: Factorial, combinations (n choose r, when order does not matter) and permutations (ordered arrangements).
- mod, |x|: Modulo, the remainder after dividing, and absolute value, the value without its sign, typed abs(x).
- floor, ceil, round: Round down, round up (ceil is short for ceiling) and round to the nearest whole number.
- EXP: Exponent: enters E, which means "times ten to the power of", as in 3.2E5 = 3.2 × 10^5. Some calculators label this key EE.
- Ans: Answer: the result of your last calculation with = or Enter.
- MC, MR, M+, M−: Memory clear, memory recall, memory add (adds the answer to memory) and memory subtract.
- AC, ⌫, ±: All clear (clears the display), delete the last character or function name, and change the sign.
- DEG, RAD: Degrees and radians. The display shows which one the calculator uses to read angles.
- %: Percent. After + or −, it adds or takes away that percentage of the number before it: 80 + 15% = 92 and 80 − 15% = 68. Anywhere else it divides by 100: 15% × 80 = 12. To find what percent 12 is of 80, type 12 ÷ 80 × 100 = 15. For the percentage change from 80 to 92, type (92 − 80) ÷ 80 × 100 = 15.
Order of operations
The calculator works from the top of this list down. Operations on the same level go from left to right, except powers, which go from right to left.
- Parentheses, functions such as sin( ) and log( ), and roots √ ∛
- Factorial ! and percent %
- Powers ^, worked from right to left: 2^3^2 = 2^9 = 512
- A minus sign in front of a value: -2^2 = -(2^2) = -4, but (-2)^2 = 4
- Multiplication and division, including multiplication you leave out: 6 ÷ 2(1 + 2) = 3 × 3 = 9
- Addition and subtraction
Scientific notation and engineering notation
Scientific notation writes a number as a value of at least 1 and less than 10, times a power of ten: 320,000 = 3.2 × 10^5. To enter it, type E (or tap EXP) between the number and the power: 3.2E5. A negative power makes a small number: 4.5E-4 = 0.00045. Engineering notation uses powers that are multiples of 3, which match prefixes such as kilo (10^3) and micro (10^-6): 0.00045 = 450 × 10^-6.
To multiply, multiply the front numbers and add the powers: (3 × 10^8) × (2 × 10^-3) = 6 × 10^5. To divide, divide the front numbers and subtract the powers: (6 × 10^5) ÷ (2 × 10^2) = 3 × 10^3. To add or subtract, first rewrite both numbers with the same power: 4.5 × 10^6 + 3.2 × 10^5 = 4.5 × 10^6 + 0.32 × 10^6 = 4.82 × 10^6. The calculator does all three directly: type (3E8)×(2E-3).
Choose Normal, Scientific or Engineering under Format. Normal shows ordinary decimals and switches to a power of ten for answers of 10^12 or more, or smaller than 10^-6.
Trigonometry in degrees or radians
Choose Degrees or Radians before you calculate. A full turn is 360° or 2π radians, so radians = degrees × π ÷ 180 and degrees = radians × 180 ÷ π. For example, 30° = π/6 ≈ 0.523598775598 radians.
At the standard angles the calculator uses exact values: sin(30°) = 0.5, cos(90°) = 0 and sin(180°) = 0, with no tiny leftover such as 1.2 × 10^-16. The tangent of 90°, 270° and every odd multiple of 90° is undefined, so it shows an error instead of a huge number.
sec, csc and cot are the reciprocal functions: sec = 1 ÷ cos, csc = 1 ÷ sin and cot = cos ÷ sin. In degrees, sec(60) = 2, csc(30) = 2 and cot(45) = 1. Each is undefined where the value it divides by is 0: sec at 90° and 270°, csc and cot at 0° and 180°.
The inverse functions return one angle each: sin⁻¹ gives -90° to 90°, cos⁻¹ gives 0° to 180° and tan⁻¹ gives between -90° and 90°. For example, sin⁻¹(0.5) = 30°. To find a missing side or angle of a right triangle, use the Triangle Calculator.
Logarithms and exponentials
log is the common logarithm (base 10) and ln is the natural logarithm (base e ≈ 2.71828182846). log(1000) = 3 because 10^3 = 1000, and ln(e) = 1. For any other base use logb(x, base), which divides ln(x) by ln(base): logb(8, 2) = 3. The keys 10ˣ and eˣ undo log and ln: 10^log(5) = 5. log₂ is the base 2 logarithm, used for bits and doubling: log2(1024) = 10.
Powers and roots
x² and x³ square and cube the value before them, and xʸ raises it to any power: 1.5^4 = 5.0625. A negative power is a reciprocal: 2^-3 = 1/8 = 0.125. √ is the square root, ∛ the cube root and root(n, x) the nth root: root(4, 16) = 2. Odd roots of negative numbers are real: ∛(-8) = -2. Even roots of negative numbers, such as √(-4), are not real numbers, so they show an error.
Factorials, combinations and permutations
n! multiplies every whole number from 1 to n: 5! = 120, and 0! = 1. nCr(n, r) counts the ways to choose r items from n when order does not matter: nCr(52, 5) = 2,598,960 five-card hands. nPr(n, r) counts the ordered arrangements: nPr(5, 2) = 20.
Rounding and remainders
floor(x) rounds down to a whole number and ceil(x), the ceiling, rounds up: floor(2.7) = 2, ceil(2.1) = 3 and floor(-2.5) = -3. round(x) goes to the nearest whole number, with halves rounded away from zero: round(2.5) = 3 and round(-2.5) = -3. mod(a, b) is the remainder after dividing a by b: mod(17, 5) = 2. The remainder takes the sign of b, as in spreadsheets, so mod(-7, 3) = 2.
Precision and limits
Answers are shown rounded to 12 significant digits, so 0.1 + 0.2 shows 0.3 even though computers store it with a tiny binary error (0.30000000000000004). Ans, memory and later steps keep the full stored value. Values go up to about 1.8 × 10^308 and down to about 2.2 × 10^-308; beyond that you get a too large or too small message. Factorials go up to 170!, and nCr and nPr up to n = 1000. An expression can have up to 250 characters.
This calculator does not graph, solve equations, use complex numbers, give exact fractions, convert units, round to significant figures or run statistics. History, memory and Ans last for this visit only; a share link carries the expression, angle and format, not the history.
Scientific calculator questions
How do I enter scientific notation on a calculator?
Type the number, then E, then the power of ten: 3.2E5 means 3.2 × 10^5 = 320,000, and 6.02E23 means 6.02 × 10^23. On the keypad, tap EXP for the E. Writing 3.2×10^5 works too.
What does the E mean in an answer such as 1.204E24?
E stands for "times ten to the power of". 1.204E24 is 1.204 × 10^24: move the decimal point 24 places to the right to write it out in full. Copy answer copies answers in this E form so you can paste them back into the calculator or a spreadsheet.
How do I add, subtract, multiply and divide numbers in scientific notation?
Multiply: multiply the front numbers and add the powers, (3 × 10^8)(2 × 10^-3) = 6 × 10^5. Divide: divide the front numbers and subtract the powers, (6 × 10^5) ÷ (2 × 10^2) = 3 × 10^3. Add or subtract: give both the same power first, 4.5 × 10^6 + 0.32 × 10^6 = 4.82 × 10^6. Or type it directly, such as 4.5E6 + 3.2E5.
How do I change scientific notation to standard form?
Move the decimal point right by the power of ten, or left if the power is negative: 3.2 × 10^5 = 320,000 and 4.5 × 10^-4 = 0.00045. With Format set to Normal the calculator does this for any answer from 10^-6 up to just under 10^12.
What is engineering notation?
It is scientific notation with powers of ten that are multiples of 3, so the front number is at least 1 and less than 1,000: 12,345 = 12.345 × 10^3 and 0.00045 = 450 × 10^-6. These powers match metric prefixes such as kilo, mega, milli and micro. Choose Engineering under Format.
How do I switch between degrees and radians, and how do I convert between them?
Choose Degrees or Radians under the display. Degrees is the default. To convert, multiply degrees by π/180 for radians, or radians by 180/π for degrees: 90° = π/2 ≈ 1.57079632679 radians, and 1 radian ≈ 57.2957795131°. You can calculate a conversion directly, for example 90×π/180.
How do I find the sine, cosine or tangent of an angle?
Check that Degrees or Radians, under the display, matches your angle, then type sin(30), cos(60) or tan(45), or tap sin, cos or tan and type the angle. In degrees all three give 0.5, 0.5 and 1. A wrong angle setting is the most common reason for an unexpected answer: sin(30) in radians is -0.988031624093.
What do sin⁻¹, cos⁻¹ and tan⁻¹ give, and in what range?
They return the angle that has the given sine, cosine or tangent. sin⁻¹ gives an angle from -90° to 90°, cos⁻¹ from 0° to 180° and tan⁻¹ between -90° and 90°, or the same ranges in radians. sin⁻¹(0.5) = 30°, cos⁻¹(-1) = 180°. sin⁻¹ and cos⁻¹ only accept values from -1 to 1.
Why is sin 180° exactly 0 here, and why is tan 90° undefined?
Computers store π with a tiny rounding error, so a plain calculation of sin 180° gives about 1.2 × 10^-16 instead of 0. This calculator uses exact values at the standard angles, so you see 0. Tan 90° is sin 90° ÷ cos 90° = 1 ÷ 0, which has no value, so the calculator shows an error.
What is the difference between log and ln, and how do I use another base?
log is the common logarithm, to base 10, and ln is the natural logarithm, to base e (about 2.71828182846). log(100) = 2 because 10^2 = 100; ln(e^3) = 3. For another base, use logb(x, base): logb(8, 2) = 3 and logb(81, 3) = 4. Both need a number greater than 0.
How do I enter exponents and roots, such as x², xʸ, √ and the nth root?
Type ^ for any power: 5^2 = 25, 2^0.5 ≈ 1.41421356237, 10^-3 = 0.001. The x² and x³ keys add ^2 and ^3. Use √(x) for a square root, ∛(x) for a cube root and root(n, x) for any root: root(5, 32) = 2. A fractional power is also a root: 27^(1/3) = 3.
What order of operations does the calculator use, and why is -2² equal to -4?
Parentheses and functions first, then factorial and percent, then powers (right to left), then a leading minus sign, then multiplication and division, then addition and subtraction, each from left to right. The power comes before the minus sign, so -2^2 = -(2^2) = -4. Write (-2)^2 to square negative 2 and get 4. The Reads as line shows the grouping it used.
How does the % key work?
% after + or − adds or takes away a percentage of the number before it, as on most phone and desk calculators: 50 + 10% = 50 + 5 = 55 and 50 − 10% = 45. Anywhere else, % divides the value just before it by 100: 15% = 0.15, so 200 × 15% = 30. The Reads as line shows which one was used, as in 50 + 50 × 10%. For other percentage questions, use the Percentage Calculator.
How do factorials, nCr and nPr work, and what are the limits?
n! = 1 × 2 × … × n, for whole numbers from 0 to 170; 171! is larger than the biggest number the calculator can show. nCr(n, r) = n! ÷ (r!(n - r)!) and nPr(n, r) = n! ÷ (n - r)!, for whole numbers with 0 ≤ r ≤ n ≤ 1000: nCr(10, 3) = 120 and nPr(10, 3) = 720.