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

Type with your keyboard or tap the keys, then press Enter or =. Use ^ for powers, ! for factorial and E for scientific notation, such as 6.022E23
Angle unit for sin, cos, tan and their inverses

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

—

Scientific notation—

📐 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

1

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.

2

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.

3

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.

4

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.

5

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.

6

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.

Every function key, what it does and an example
KeyWhat it doesTypeResult
sin, cos, tanTrig ratios of an angle, in the unit you pickedsin(30)0.5
sin⁻¹, cos⁻¹, tan⁻¹The angle that has that ratiosin⁻¹(0.5)30
logLogarithm base 10, or any base with a second valuelog(1000)3
log₂Logarithm base 2log2(1024)10
lnNatural logarithm, base eln(10)2.30258509299
10ˣ and eˣThe antilogarithms of log and lne^27.38905609893
x², x³, xʸSquare, cube and any power2^101024
√ and ⁿ√Square root, and the nth root of a numberroot(32, 5)2
1/xReciprocal, written as a power of −14^(-1)0.25
n!Factorial of a whole number10!3628800
nPr and nCrPermutations and combinationsnCr(52, 5)2598960
EXPTimes ten to a power6.022E23 × 21.2044E24
|x| and modAbsolute value, and the remainder after divisionmod(17, 5)2
%Divides the number before it by 100200 × 10%20
π and eThe 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.

One full turn and one right angle in each angle unit
UnitFull turnRight angleUse it for
DEG36090The unit most people learn first. Use it when the angle is written with a degree sign
RAD2π, which is 6.28318530718π ÷ 2, which is 1.57079632679Calculus, physics and most programming. Angles written with π
GRAD400100Rare. 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.

Sine, cosine and tangent of common angles in DEG mode, as the calculator shows them
Anglesincostan
0°010
30°0.50.8660254037840.57735026919
45°0.7071067811870.7071067811871
60°0.8660254037840.51.73205080757
90°10undefined

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.

Typed expressions, the result and the rule that decides it
You typeResultWhy
3 + 4 × 211Multiplication before addition
(3 + 4) × 214Brackets first
−3 ^ 2-9The power binds tighter than the minus
(−3) ^ 29The brackets make the −3 the base
2 ^ 3 ^ 2512Powers stack from the right, 2^(3^2)
6 ÷ 2(1 + 2)9Left to right, then the implied multiplication
100 + 10%100.1% divides by 100, so this is 100 + 0.1
100 + 100 × 10%110Ten 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.

Limits of the calculator
WhatLimitNote
Digits shown12 significant digitsThe stored number keeps about 15 to 17
Largest numberAbout 1.7976931348623157E308Anything bigger gives a message
Largest factorial170!171! is too big
Exact whole numbersUp to 9,007,199,254,740,991 (2^53 − 1)Beyond that a whole number may be rounded
Exact factorialsUp 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 nCrn up to 100,000r from 0 up to n. Exact up to n = 1,000; beyond that rounded
HistoryThe last 10 calculationsClear history empties it
MemoryOne valueMC 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 messages, what causes them and how to fix them
ErrorTypical causeWhat to do
Cannot divide by zero1 ÷ 0, 0 ÷ 0, mod(7, 0), or 0 to a negative powerEnter a divisor that is not 0
Not a real number√(−4), root(−4, 2), (−8)^0.5Use a positive value, or an odd root such as root(−8, 3), which is −2
Needs a positive numberlog(0), log(−5), ln(0)Enter a value above zero
Needs a value from −1 to 1sin⁻¹(2), cos⁻¹(1.5)A sine or cosine is never bigger than 1
Tangent is undefinedtan(90) and tan(270) in DEG, tan(π ÷ 2) in RADtan = 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 large10^400, 171!, nPr(1000, 500)The result is beyond about 1.8 × 10^308
0^0 is not defined0^0Handhelds and textbooks differ on this one, so the calculator will not guess
Two numbers in a row2 3Add an operator, such as 2 × 3
Bracket problemssin(30 reads fine, 2 + 3) does notA 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.
⚠️ Disclaimer This calculator uses standard 64-bit floating-point arithmetic and shows 12 significant digits. It is for everyday, homework and reference use. For work that needs guaranteed accuracy, such as engineering sign-off or financial reporting, use dedicated software, and check your exam rules before using any online calculator in a test.

Frequently Asked Questions

Use DEG (degrees) for everyday geometry and when angles are given in degrees (90°, 180°, 360°). Use RAD (radians) for calculus and physics. Always check your mode before trig calculations. sin(90) in RAD gives approximately 0.893996663601, not 1.
Brackets first, then powers and roots, then multiplication and division left to right, then addition and subtraction left to right. The line above the result writes your expression back with every operation bracketed, so you can see the order the calculator used.
log is logarithm base 10. log(100) = 2. ln is the natural logarithm base e. ln(e) = 1. In calculus and physics, ln is more commonly used. In everyday calculations, log base 10 is standard.
PEMDAS: Parentheses, Exponents, Multiplication/Division (left to right), Addition/Subtraction (left to right). Example: 2 + 3 × 4² = 2 + 3 × 16 = 2 + 48 = 50 (not 80). The common mistake is doing addition before multiplication. BODMAS (UK and Australia) and BEDMAS (Canada) are equivalent systems with different acronyms.
In a right triangle: sin(θ) = opposite ÷ hypotenuse; cos(θ) = adjacent ÷ hypotenuse; tan(θ) = opposite ÷ adjacent (or sin ÷ cos). Memory aid: SOH-CAH-TOA. Use DEG mode for angles in degrees, RAD mode for radians (used in calculus). sin(90°) = 1, cos(0°) = 1, tan(45°) = 1.
Tap DEG, RAD or GRAD above the keys. The choice applies to sin, cos and tan, and to their inverses, whose answers come back in the unit you picked. The note under the result tells you which unit was used. You can also add the degree symbol to a number, so sin(30°) works in any mode.
Tap sin⁻¹, cos⁻¹ or tan⁻¹ and enter the ratio. sin⁻¹(0.5) = 30 in DEG mode and 0.523598775598 in RAD mode. sin⁻¹ means the inverse function, not 1 ÷ sin. Typing asin(0.5) or arcsin(0.5) works too. sin⁻¹ and cos⁻¹ only accept values from −1 to 1.
Use log with two values, the number first and the base second. log(8, 2) = 3 and log(243, 3) = 5. The log₂ key is a shortcut for base 2, so log2(1024) = 10. Without a base, log means base 10.
Use ^ or the xʸ key for powers: 2^10 = 1024. x² and x³ square and cube. √ is the square root, and root(27, 3) gives the cube root, 3. For scientific notation, tap EXP or type E: 6.022E23 means 6.022 × 10²³.
Computers store numbers in binary, and 0.1 and 0.2 cannot be stored exactly. The sum is really 0.30000000000000004. The calculator shows 12 significant digits, so you read 0.3. When the stored value differs from what is displayed, a Full precision result shows it.
The largest number is about 1.7976931348623157E308. Anything bigger gives a message instead of a wrong answer. The largest factorial is 170!, about 7.257E306, and 171! is too big. Factorials up to 22! are held exactly. Beyond that the stored result is rounded to about 15 to 17 digits, which does not change the 12 digits shown.
Neither has a real-number answer. √(−4) would need a number that squares to −4, and log(0) would need a power of 10 that equals 0. This calculator works with real numbers only, so it explains the problem in plain words and leaves the result empty. Complex numbers are not supported.
Division and multiplication have the same rank, so they go left to right. 6 ÷ 2 = 3, then 3 × (1 + 2) = 9. A number written right before a bracket, as in 2(1 + 2), is treated as multiplication. If you meant 6 ÷ (2(1 + 2)), type the extra brackets and you get 1. The line above the result shows (6 ÷ 2) × (1 + 2).
MS stores the current result, M+ adds it to memory and M− subtracts it. MR puts the memory value into your expression, and MC empties it. Ans inserts your last answer. The history list keeps your last 10 calculations, and tapping one brings it back into the box.
Type a fraction as a division, such as 3 ÷ 8. When the result is an exact fraction, a fraction result shows it, so 3 ÷ 8 shows 3/8 and 2.75 shows 11/4 with the mixed number 2 3/4. To add or simplify fractions step by step, use the Fraction Calculator.
It shows them. A result such as 12.3456 also appears as 12° 20′ 44.16″. To enter an angle, type the parts as a sum: 30 + 15 ÷ 60 + 9 ÷ 3600. It does not take the ° ′ ″ symbols as a minutes and seconds entry. The degree symbol only converts a number to the current angle unit.
It covers the everyday functions of a scientific calculator, but it does not do statistics, matrices, equation solving, complex numbers or graphs. Exams are set by the exam board or your teacher, and many only allow approved handheld models. Check the rules for your exam. Do not assume a website is allowed.
A scientific calculator. It works out single expressions and returns a number. A graphing calculator also plots functions and solves equations. If you need to plot a function, use a graphing tool.

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: