Scientific Calculator
Last Updated:
A free online scientific calculator with degrees, radians and grad, inverse trig, logarithms, powers, roots, factorials, memory and history. Type or tap, and see how your expression was read.
Quick answer: Type or tap an expression and press =. The calculator follows the order of operations, works in degrees, radians or grad, and shows how it read what you typed. Mode matters: sin(90) is 1 in DEG and about 0.893996663601 in RAD. 0.1 + 0.2 shows 0.3, and a calculation with no real answer, such as √(−4) or log(0), gets a plain explanation instead of an error code.
Scientific calculator online
Keys for sin, cos, tan, log and the roots open a bracket for you. A bracket left open at the end is closed for you.
Enter your figures above to see your result.
Result
—
History
📐 Key Scientific Calculator Functions
sin/cos/tan = trigonometric functions (use DEG, RAD or GRAD). log = log base 10, and log(x, b) uses base b. ln = natural log (base e). x² = square. √x = square root. xʸ = power. EXP or E = times 10 to the power, so 6.022E23 = 6.022 × 10²³. n! = factorial. π = 3.14159..., e = 2.71828...
How to Use the Scientific Calculator
Type or tap your expression
Click the Expression box and type with your keyboard, or tap the keys. Use + − × ÷ or the keyboard symbols + - * /, and ^ for a power.
Pick the angle unit
Choose DEG, RAD or GRAD before you use sin, cos or tan. DEG is for angles in degrees, RAD for radians.
Use brackets and functions
Function keys open a bracket for you, such as sin(. Enter the value, then close it with ). Brackets left open at the end are closed for you.
Press = or Enter
The result also updates as you type once the expression is complete. Press = or Enter to add it to the history and to Ans. A line shows how the calculator read your expression, so you can check the order of operations.
Read the extra results
Scientific notation, a fraction, degrees minutes seconds and the full-precision value show up beside it when they apply to your result.
Reuse your answers
Ans inserts the last result. MS, M+, M− and MR use the memory. Tap a line in the history list to bring an earlier expression back.
A scientific calculator extends basic arithmetic with functions used in school math, science and engineering. This one works with your keyboard as well as the keys, shows how it read your expression, and gives a plain-English message when a calculation has no real answer. Everything runs in your browser. Nothing you type is sent anywhere.
Every function key and what it does
The table lists each function key with something you can type to try it. Every result in it was worked out by the calculator on this page.
| Key | What it does | Type | Result |
|---|---|---|---|
| sin, cos, tan | Trig ratios of an angle, in the unit you picked | sin(30) | 0.5 |
| sin⁻¹, cos⁻¹, tan⁻¹ | The angle that has that ratio | sin⁻¹(0.5) | 30 |
| log | Logarithm base 10, or any base with a second value | log(1000) | 3 |
| log₂ | Logarithm base 2 | log2(1024) | 10 |
| ln | Natural logarithm, base e | ln(10) | 2.30258509299 |
| 10ˣ and eˣ | The antilogarithms of log and ln | e^2 | 7.38905609893 |
| x², x³, xʸ | Square, cube and any power | 2^10 | 1024 |
| √ and ⁿ√ | Square root, and the nth root of a number | root(32, 5) | 2 |
| 1/x | Reciprocal, written as a power of −1 | 4^(-1) | 0.25 |
| n! | Factorial of a whole number | 10! | 3628800 |
| nPr and nCr | Permutations and combinations | nCr(52, 5) | 2598960 |
| EXP | Times ten to a power | 6.022E23 × 2 | 1.2044E24 |
| |x| and mod | Absolute value, and the remainder after division | mod(17, 5) | 2 |
| % | Divides the number before it by 100 | 200 × 10% | 20 |
| π and e | The constants 3.14159... and 2.71828... | 2π | 6.28318530718 |
DEG, RAD or GRAD: which angle mode should you use?
Use DEG when the angle is written in degrees, which covers most geometry and everyday triangles. Use RAD for calculus, physics and anything written with π. GRAD (gradians) is rare, and you only need it if your course or job says so. The angle mode changes sin, cos, tan and their inverses. It changes nothing else.
| Unit | Full turn | Right angle | Use it for |
|---|---|---|---|
| DEG | 360 | 90 | The unit most people learn first. Use it when the angle is written with a degree sign |
| RAD | 2π, which is 6.28318530718 | π ÷ 2, which is 1.57079632679 | Calculus, physics and most programming. Angles written with π |
| GRAD | 400 | 100 | Rare. Use it only if your course or job says so |
A radian is the angle at the center of a circle that cuts off an arc as long as the radius (MathWorld, Radian). That is why one radian is about 57.3° and a half turn is π radians. To convert by hand, multiply degrees by π ÷ 180 to get radians, and multiply radians by 180 ÷ π to get degrees.
Worked example: the same number in two modes
Calculate sin(30). In DEG mode the answer is 0.5, the standard value for a 30° angle. In RAD mode the calculator treats 30 as 30 radians, which is almost five full turns, and the answer is -0.988031624093. The same keys give two very different numbers, and neither is an error. This is the most common reason a trig answer is wrong, so look at the unit before you press =.
The degree symbol gets around the problem. Type sin(30°) and the calculator converts 30° into the current unit first, so the answer is 0.5 in DEG, RAD or GRAD. Try it with the RAD button selected.
Sin, cos and tan, and how to use the inverse keys
In a right triangle, sin is opposite ÷ hypotenuse, cos is adjacent ÷ hypotenuse and tan is opposite ÷ adjacent. SOH-CAH-TOA is the way most people remember it. Here are the values you meet most often, in DEG mode.
| Angle | sin | cos | tan |
|---|---|---|---|
| 0° | 0 | 1 | 0 |
| 30° | 0.5 | 0.866025403784 | 0.57735026919 |
| 45° | 0.707106781187 | 0.707106781187 | 1 |
| 60° | 0.866025403784 | 0.5 | 1.73205080757 |
| 90° | 1 | 0 | undefined |
Tan of 90° has no value, because tan is sin ÷ cos and cos(90°) is 0. The calculator says so instead of printing a huge number. In DEG mode the quarter-turn angles are handled exactly, so sin(180) is 0, not 1.2246E-16, and cos(90) is 0, not 6.123E-17. GRAD does the same at 100, 200 and 300.
The inverse keys go the other way. sin⁻¹, cos⁻¹ and tan⁻¹ take a ratio and give back an angle. sin⁻¹(0.5) = 30 and cos⁻¹(0.5) = 60 in DEG mode, and tan⁻¹(1) = 45. In RAD mode tan⁻¹(1) is 0.785398163397. MathWorld notes that sin⁻¹ is the notation common in North America and on pocket calculators for the inverse function (MathWorld, Inverse Sine), so it is not 1 ÷ sin. If you want 1 ÷ sin(30), type 1 ÷ sin(30).
By the usual convention, the answer from an inverse key is the principal value. sin⁻¹ and tan⁻¹ give an angle from −90° to 90°, and cos⁻¹ gives an angle from 0° to 180°. If your triangle has an angle outside that range, work out the reference angle first.
A trig example you can check
A 50 ft ladder leans at 30° to the ground. Its horizontal reach is 50 × cos(30°). Type 50cos(30) in DEG mode and you get 43.3012701892. The 50 is multiplied by cos(30) automatically.
Order of operations: how this calculator reads your expression
Brackets come first, then powers and roots, then multiplication and division from left to right, then addition and subtraction from left to right. The US teaches this as PEMDAS. The UK and Australia say BODMAS, and Canada says BEDMAS. They are the same order.
The line How it was read above the result writes your expression back with every operation bracketed. If you typed 3 + 4 × 2, it shows 3 + (4 × 2). When your answer looks wrong, that line usually shows why.
| You type | Result | Why |
|---|---|---|
| 3 + 4 × 2 | 11 | Multiplication before addition |
| (3 + 4) × 2 | 14 | Brackets first |
| −3 ^ 2 | -9 | The power binds tighter than the minus |
| (−3) ^ 2 | 9 | The brackets make the −3 the base |
| 2 ^ 3 ^ 2 | 512 | Powers stack from the right, 2^(3^2) |
| 6 ÷ 2(1 + 2) | 9 | Left to right, then the implied multiplication |
| 100 + 10% | 100.1 | % divides by 100, so this is 100 + 0.1 |
| 100 + 100 × 10% | 110 | Ten percent of 100, added to 100 |
Two rules catch people out. First, a minus in front of a power applies after the power, so −3^2 is −9. Put brackets around the base for 9. Second, the percent key only divides by 100. 200 × 10% is 20, and 100 + 10% is 100.1. To add ten percent to 100, type 100 + 100 × 10%. A number placed next to a bracket or a function, like 2(3) or 3sin(30), is multiplied.
Logarithms: log, ln and any base
A logarithm asks what power gives you a number. log(1000) = 3 because 10 to the power 3 is 1000. ln is the same idea with the base e, about 2.71828, so ln(e) = 1 and ln(10) = 2.30258509299. For any other base, give the base as a second value: log(8, 2) = 3, and the log₂ key does base 2 for you. The base change works like this: log base b of x equals ln(x) ÷ ln(b).
The opposite of a logarithm is the antilog. To undo log, raise 10 to the answer with the 10ˣ key. To undo ln, use eˣ. 10^3 = 1000 and e^2 = 7.38905609893.
Logs only exist for positive numbers. log(0) and log(−5) give a message and no result, which is correct, since no power of 10 equals 0 or a negative number. A quick way to see the idea is log(0.0000001) = -7.
Powers, roots, exponents and scientific notation
Type ^ for a power: 2^10 = 1024. The x² and x³ keys add ^2 and ^3 for you. The xʸ key adds the ^ and you type the exponent. Negative and fractional exponents work, so 2^-3 = 0.125 and 2^0.5 = 1.41421356237. √ takes a square root, ∛ (type it) a cube root, and root(number, n) any other root: root(27, 3) = 3 and root(32, 5) = 2. A negative number has real odd roots, so root(−8, 3) = −2, but not even ones.
Powers stack from the right, so 2^3^2 is 2^(3^2) = 512, not (2^3)^2 = 64.
Scientific notation and the EXP key
Scientific notation writes a number as a value between 1 and 10 times a power of ten (MathWorld, Scientific Notation). Tap EXP, or type E, to enter it: 6.022E23 is 6.022 × 10²³. The Avogadro constant is exactly 6.022 140 76 × 10²³ per mole (NIST CODATA 2022), so 6.022E23 is that value rounded to four digits. Typed as 6.022E23 × 2 it gives 1.2044E24. Every result also appears in scientific notation in its own result, and very large or very small results switch to it on the main display: the calculator does this below 0.000001 and from 1E12 up. Read 1.5E3 as 1,500, never as 1.5 times 3.
If you type 2E and stop, the calculator asks for the exponent. A lowercase e on its own is the number e, so 2e is 2 × 2.71828.
Factorials, permutations and combinations
The factorial n! multiplies every whole number from 1 up to n, and 0! is defined as 1 (MathWorld, Factorial). 5! = 120 and 10! = 3628800. Factorials grow quickly. 20! is 2.43290200818E18, and 170! is 7.25741561531E306, the biggest one that fits in this calculator. 171! is too large and gives a message.
nPr counts the ordered ways to pick r items from n, and nCr counts the unordered ways. nPr(10, 3) = 720 and nCr(10, 3) = 120. A five-card poker hand from a 52-card deck is nCr(52, 5) = 2,598,960. Both keys take two values separated by a comma, with r no bigger than n.
Memory, Ans and history
Ans inserts your last answer, so you can carry a result into the next calculation: after 12 ÷ 5, typing Ans × 3 gives 7.2. MS stores the result of the expression in the box (or your last answer if the box is empty), M+ adds it to memory and M− subtracts it. MR puts the memory value into the box and MC clears it. A line under the keys says what the memory holds. The history list under the result keeps your last 10 calculations, and tapping one loads it back so you can edit it.
Fractions and degrees, minutes, seconds
Type a fraction as a division. When the result is exactly a fraction with a denominator up to 10,000, an extra result shows it: 3 ÷ 8 shows 3/8, 2.75 shows 11/4, and 1 ÷ 3 shows 1/3 even though its decimal never ends. The calculator will not invent a fraction for a number like π. For adding, subtracting and simplifying fractions with the working shown, the Fraction Calculator is the better tool.
Results also appear as degrees, minutes and seconds when that makes sense. 12.3456 shows as 12° 20′ 44.16″. To go the other way, enter the parts as a sum: 30 + 15 ÷ 60 + 9 ÷ 3600 is 30° 15′ 9″ as a decimal.
Why 0.1 + 0.2 shows 0.3 and what Full precision means
This calculator stores each number as a 64-bit floating-point value, the same format JavaScript uses (MDN, Number). It is a binary format, and 0.1 and 0.2 have no exact binary form. The sum comes out as 0.30000000000000004. The main display rounds to 12 significant digits, so you see 0.3. When the stored value does not match what is on the display, a Full precision result shows the stored value, so nothing is hidden. Type 4.35 × 100 and the display says 435 while the stored value is 434.99999999999994.
For money and other exact decimals, round the answer to the cents you need. For long chains of arithmetic, keep brackets and work in as few steps as possible, because every step can add a tiny error.
| What | Limit | Note |
|---|---|---|
| Digits shown | 12 significant digits | The stored number keeps about 15 to 17 |
| Largest number | About 1.7976931348623157E308 | Anything bigger gives a message |
| Largest factorial | 170! | 171! is too big |
| Exact whole numbers | Up to 9,007,199,254,740,991 (2^53 − 1) | Beyond that a whole number may be rounded |
| Exact factorials | Up to 22! | 22! is bigger than 2^53 but has many factors of 2, so it still fits exactly. Larger ones are rounded |
| nPr and nCr | n up to 100,000 | r from 0 up to n. Exact up to n = 1,000; beyond that rounded |
| History | The last 10 calculations | Clear history empties it |
| Memory | One value | MC empties it, and so does Clear & Start Over |
Error messages and what to do about them
When a calculation has no real answer, the calculator says why and clears the result. It does not show a result when there is no real answer. These are the cases you will meet.
| Error | Typical cause | What to do |
|---|---|---|
| Cannot divide by zero | 1 ÷ 0, 0 ÷ 0, mod(7, 0), or 0 to a negative power | Enter a divisor that is not 0 |
| Not a real number | √(−4), root(−4, 2), (−8)^0.5 | Use a positive value, or an odd root such as root(−8, 3), which is −2 |
| Needs a positive number | log(0), log(−5), ln(0) | Enter a value above zero |
| Needs a value from −1 to 1 | sin⁻¹(2), cos⁻¹(1.5) | A sine or cosine is never bigger than 1 |
| Tangent is undefined | tan(90) and tan(270) in DEG, tan(π ÷ 2) in RAD | tan = sin ÷ cos, and cos is 0 there |
| Factorial needs a whole number | (−1)!, 2.5! | Use 0, 1, 2, 3 and so on, up to 170 |
| Result too large | 10^400, 171!, nPr(1000, 500) | The result is beyond about 1.8 × 10^308 |
| 0^0 is not defined | 0^0 | Handhelds and textbooks differ on this one, so the calculator will not guess |
| Two numbers in a row | 2 3 | Add an operator, such as 2 × 3 |
| Bracket problems | sin(30 reads fine, 2 + 3) does not | A missing ) at the end is added for you. An extra ) is an error |
Using it for school, physics, chemistry and growth problems
Algebra and GCSE or high school math. Work in DEG for triangles, use the brackets to keep each step clear, and check the How it was read line against your working. The memory and Ans keys save retyping a long result.
Trigonometry. Pick the angle unit first, then use sin, cos and tan for a side and sin⁻¹, cos⁻¹ and tan⁻¹ for an angle. The ladder example above shows the pattern.
Physics. RAD is the usual choice for angular motion and waves. An object dropped from rest falls a distance d = g × t² ÷ 2. With g taken as 9.8 m/s² and t = 2.5 s, typing 9.8 × 2.5^2 ÷ 2 gives 30.625 meters, ignoring air resistance (our arithmetic).
Chemistry. Use EXP for very large and small values, and log or ln for logarithmic scales. Typing log(0.0000001) shows how a power of ten becomes a whole number.
Exponents and growth. A balance of 5,000 growing 5% a year for 10 years is 5000 × 1.05^10 = 8144.47313389. For loans and savings plans, the finance calculators do the full work.
Exams. Exam boards and teachers set their own rules on calculators, and many only allow approved handheld models. This page is for homework, checking your work and everyday use. Check the rules for your exam before you rely on any website.
What this calculator does not do
It is a scientific calculator, so it does one expression at a time and returns a number. It does not do statistics, matrices, complex numbers, equation solving, base conversion (binary, hex), unit conversion or graphs. It uses algebraic entry, so you type the expression the way you write it, rather than the postfix style used by RPN calculators. If you want a unit change, use the Unit Converter, and for percentage questions the Percentage Calculator shows its working.
Common scientific calculator mistakes
- Using the wrong angle unit for trig. Look at DEG, RAD or GRAD before pressing =.
- Forgetting that −3^2 is −9. Write (−3)^2 for 9.
- Reading 1.5E3 as 1.5 times 3. It means 1,500.
- Dividing by a sum without brackets. For 5 ÷ (2 + 3) type the brackets, or you get 5 ÷ 2 + 3.
- Using the percent key as a percent-of function. It only divides by 100.
- Treating sin⁻¹ as 1 ÷ sin. It is the inverse function.
- Rounding too early. Keep the full result in Ans or memory until the last step.
Frequently Asked Questions
Sources & Methodology
The functions use standard definitions and the 64-bit floating-point numbers that JavaScript provides. Results are rounded to 12 significant digits for display. Every worked example on this page was run through the calculator itself. Reference reading: