Skip to content

Scientific Calculator

Type an expression and press Enter, or tap the keypad. Functions need parentheses, like sin(30) or log(100). Angles use the mode below.

Angle mode:

Result

Try:

Recent calculations

    Your recent calculations will appear here. Tap one to run it again.

    This tool provides results for general guidance only, not professional advice. Answers are rounded to 10 decimal places for display and are computed with standard double-precision arithmetic, so the last digits of a long calculation can carry small rounding differences. Check important results against a second source before relying on them.
    Quick answer: This scientific calculator evaluates trig, logarithms, powers, roots, and factorials in degrees or radians. Type an expression like sin(30)+2^10 and press Enter, or tap the keypad buttons. It follows the standard order of operations, so 2+3*4 gives 14, and it explains any error in plain words.

    Last reviewed: 20 November 2026. Reviewed every 180 days; next review due 19 May 2027.

    How to use the Scientific Calculator

    A scientific calculator evaluates expressions that mix arithmetic with trigonometry, logarithms, powers, roots, and factorials. This one works in your browser: type an expression, press Enter, and the answer appears below the keypad. It follows the standard order of operations, so 2+3*4 gives 14, not 20, and it keeps a short history of your recent calculations so you can run one again with a tap. Angles can be entered in degrees or radians, and the mode buttons switch between the two at any time. Every function takes its input in parentheses, like sin(30) or log(100), and the keypad inserts the opening parenthesis for you.

    1. Check the angle mode first. Degrees is the default mode, which suits most school and everyday work. If your angles are in radians, tap Radians before you calculate. The mode changes the answer completely: sin(4) is 0.0698 in degrees and -0.7568 in radians, so a wrong mode gives a wrong answer with no warning. The result box always names the mode it used.
    2. Type the expression. Click the box and type, using * for multiply, / for divide, ^ for powers, and ! for factorials. Parentheses group parts of the expression: (2+3)*4 is 20, while 2+3*4 is 14. You can also type pi and e for the two built-in constants, and write numbers in scientific notation, like 1e3 for 1,000.
    3. Or tap the keypad. Every button inserts its symbol where the cursor sits. Function buttons insert the name and an opening parenthesis, so tapping sin( then 30 then ) gives sin(30). The back button deletes one character at a time, and C clears the whole box.
    4. Press Enter or tap =. The result appears in the result box with the expression beside it. While you type, the calculator also evaluates live: a valid expression shows its answer as you type, and an unfinished expression shows nothing until you press Enter, when any error is explained in plain words.
    5. Use Ans for the last answer. The Ans button inserts your most recent result into the expression, so you can chain calculations without retyping long decimals. If the last result was 0.57735, tapping Ans then * then 10 gives 5.7735.
    6. Reuse a calculation from history. The last eight calculations appear under the keypad. Tap one to load it back into the box and run it again, in the angle mode it was first calculated in.
    7. Read an error message as a hint. If something is wrong, the calculator says what it is: a missing parenthesis, a division by zero, a square root of a negative number, or a logarithm of a number that is not positive. Fix the part it names and try again. The section on common mistakes below covers the errors people hit most often.

    How it works

    This calculator evaluates your expression in three steps. First it reads the text and splits it into tokens: numbers, function names, operators, and parentheses. Then it works through those tokens with a small parser that understands the order of operations, so parentheses come first, then powers, then multiplication and division, then addition and subtraction. Finally it computes the value with the same arithmetic your browser uses for any web page, and shows the result to 10 decimal places. It never runs your input as code: the expression is read as mathematics only, token by token, which is why a stray letter produces a clear error instead of a strange result.

    How the calculator reads your expression

    The parser is a recursive descent parser, which means it works through the expression from the outside in, one rule at a time. An expression is a sum of terms. A term is a product of factors. A factor can carry a minus sign, a power, a factorial, or a percent sign. The smallest pieces are numbers, the constants pi and e, function calls like sin(30), and parenthesized expressions like (2+3). Because each rule only handles its own level, the order of operations falls out of the structure itself: a term inside a sum is always finished before the sum is, so multiplication always happens before addition, and a power inside a factor is always finished before the factor is multiplied.

    Two conveniences are built into that structure. The first is implicit multiplication: when a number sits directly in front of a parenthesis, a constant, or a function, the calculator multiplies them, so 2(3+4) is 14, 2pi is 6.283185, and 3sqrt(16) is 12. The second is that powers group to the right: 2^3^2 means 2 raised to the power 3^2, which is 2^9, which is 512. That matches the usual mathematical convention for stacked exponents. A minus sign in front of a power applies after the power is worked out, so -2^2 is -4, while (-2)^2 is 4. If you want the negative number squared, put it in parentheses.

    Order of operations

    The order of operations is the agreement that makes an expression mean one thing and not another. Without it, 4+3*2 could be 14, by adding first, or 10, by multiplying first. The rule, as the LibreTexts textbook states it, is: evaluate expressions in grouping symbols first, innermost first; then exponents; then multiplication and division, working left to right; then addition and subtraction, working left to right. In the United States the usual memory aid is PEMDAS: Parentheses, Exponents, Multiplication and Division, Addition and Subtraction.

    Two parts of that rule trip people up. First, multiplication does not come before division, and addition does not come before subtraction: each pair shares one level and is worked left to right. So 54/9*2 is 12, because the division comes first as you read left to right, and 17-8+2 is 11, because the subtraction comes first. Second, parentheses outrank everything, including exponents: 2*(3+4)^2 is 98, because 3+4 is worked out first to give 7, then 7^2 is 49, then 2 times 49 is 98. If you are ever unsure, add parentheses: they cost nothing and they make the meaning obvious to anyone reading the expression later.

    Worked example 1: parentheses change the answer

    Take the expression 2+3*4. There are no parentheses and no exponents, so the rule goes straight to multiplication: 3*4 is 12, then 2+12 is 14. Now put parentheses around the addition: (2+3)*4. The parentheses come first, so 2+3 is 5, then 5*4 is 20. The same four numbers and the same two operations give two different answers, and the parentheses are the only difference.

    A longer example shows every level at once: 12+2*(3+2*5)^2. Inside the parentheses, multiplication comes before addition, so 2*5 is 10 and 3+10 is 13. The exponent comes next: 13^2 is 169. Then the multiplication: 2*169 is 338. Then the addition: 12+338 is 350. The LibreTexts textbook works this exact expression and gets 350, and the calculator agrees. Try it yourself: type 12+2*(3+2*5)^2 and press Enter.

    Worked example 2: a right triangle

    Trigonometry turns an angle and one side of a right triangle into the other sides. The LibreTexts textbook works an example with a 30 degree angle and an opposite side of 7. The tangent of an angle is the opposite side divided by the adjacent side, so tan(30) equals 7 divided by the adjacent side, which rearranges to 7 divided by tan(30). In degrees mode, type 7/tan(30) and the calculator gives 12.124355653, which rounds to 12.1, the textbook's answer. The sine of an angle is the opposite side divided by the hypotenuse, so sin(30) equals 7 divided by the hypotenuse, which rearranges to 7 divided by sin(30). Type 7/sin(30) and the calculator gives exactly 14, because sin(30) is exactly 0.5 and 7 divided by 0.5 is 14.

    The same triangle works in radians if you convert the angle first: 30 degrees is pi/6 radians, so in radians mode 7/tan(pi/6) gives the same 12.124355653. That is a good self-check when you are learning radians: pick an angle you know in degrees, convert it, and confirm that both modes give the same side lengths. If they do not agree, one of the two entries has the wrong mode or the wrong conversion.

    Worked example 3: logarithms and powers

    A logarithm asks a question about exponents: log(1000) asks what power of 10 gives 1,000, and the answer is 3, because 10^3 is 1,000. The natural log asks the same question with base e: ln(2) is 0.693147, because e raised to 0.693147 is 2. The LibreTexts textbook evaluates log(321) as approximately 2.5065, which you can check by typing log(321) here. It also notes that log(123) is approximately 2.0899. Both answers sit between 2 and 3, which makes sense: 321 and 123 both sit between 100 and 1,000, so their base-10 logarithms must sit between log(100), which is 2, and log(1000), which is 3.

    Powers show up wherever something grows by a fixed factor. One thousand dollars growing at 5 percent a year for 10 years is 1000*(1+0.05)^10, which is 1,628.89: the power does the repeated multiplication in one step. If you want the full picture of that growth, with year-by-year balances and monthly contributions, our Compound Interest Calculator runs the same exponent math with a proper schedule. The same power law runs loan payments too: our Loan Calculator uses (1+r)^n to turn a rate and a term into a monthly payment.

    Degrees versus radians

    Degrees and radians are two ways to measure the same angle. A full circle is 360 degrees, and it is also 2pi radians, because the circumference of a circle is 2pi times its radius. Divide both sides by two and you get the fact to remember: pi radians equals 180 degrees. To convert degrees to radians, multiply by pi/180. To convert radians to degrees, multiply by 180/pi. So 18 degrees is pi/10 radians, pi/9 radians is 20 degrees, and one radian is about 57.3 degrees. The LibreTexts textbook on radian measure works all three of those conversions as examples.

    Degrees are the everyday unit: school geometry, navigation, and construction all use them. Radians are the natural unit in higher mathematics and physics, because they tie the angle directly to the arc it cuts on a circle of radius 1: a radian is the angle that cuts an arc exactly as long as the radius. That is why calculus and most programming languages work in radians, and why a textbook problem that mentions pi in the angle, like sin(pi/6), is almost always a radians problem. The calculator defaults to degrees, because that is what most people expect, and the Radians button is one tap away. For converting between other kinds of units, our Unit Converter covers length, weight, temperature, and more.

    The classic mistake is entering a degrees angle while the calculator is in radians mode, or the other way around. The LibreTexts textbook gives a vivid example: sin(4 degrees) is 0.0698, while sin(4 radians) is -0.7568. The two answers do not even have the same sign. Before any trigonometry, glance at the mode buttons and confirm the active one matches your problem. If an answer looks wildly wrong, the mode is the first thing to check.

    What your result means

    The result box shows three things: the answer in large type, the expression it came from, and the angle mode that was used. The answer is displayed to 10 decimal places, which is enough to see the value clearly without a wall of digits. The full value is kept behind the scenes, so if you tap Ans, the chained calculation uses the unrounded number, not the rounded display. Very large and very small answers switch to exponential notation: 1e15 means 1 followed by 15 zeros, and 1e-9 means 0.000000001. That keeps the display readable when the answer would otherwise run off the screen.

    A result can look slightly off for a good reason: computers store decimals in binary, and some ordinary decimals have no exact binary form. The famous case is 0.1+0.2, which a computer stores as 0.30000000000000004. This calculator rounds the display to 10 decimal places, so you see 0.3, but the tiny leftover is still there underneath, and it can show up in long chains of arithmetic. If a result differs from a textbook answer in the last decimal place or two, that is almost always the cause, not a mistake in the math. For money or measurements where the last cent matters, round the final answer yourself to the precision your problem needs.

    An error message is the calculator telling you which rule the expression broke. Division by zero has no answer in ordinary arithmetic, so 1/0 stops with a message instead of a number. A square root of a negative number is not a real number, so sqrt(-1) stops too; cube roots are different, and cbrt(-8) gives -2, because (-2)^3 is -8. Logarithms are only defined for positive numbers, because no power of 10 or e is ever zero or negative, so log(0) and ln(-5) both stop. Factorials are only defined for whole numbers from 0 to 170: 171! is larger than the biggest number this kind of arithmetic can hold, about 1.8 times 10 to the power 308, so the calculator refuses it rather than returning infinity. Mismatched parentheses stop the calculation as well, because the calculator cannot tell where the grouped part was meant to end.

    Function reference

    Every function takes one input in parentheses. Trigonometric functions read the angle in the active mode, and the inverse trigonometric functions return an angle in the active mode. The table below lists each function, what it does, and an example value you can check against the calculator.

    FunctionWhat it doesExample
    sin(x)Sine of the angle xsin(30) is 0.5 in degrees
    cos(x)Cosine of the angle xcos(60) is 0.5 in degrees
    tan(x)Tangent of the angle xtan(45) is 1 in degrees
    asin(x)Angle whose sine is x, from -1 to 1asin(0.5) is 30 in degrees
    acos(x)Angle whose cosine is x, from -1 to 1acos(0) is 90 in degrees
    atan(x)Angle whose tangent is xatan(1) is 45 in degrees
    log(x)Base-10 logarithm of x, for x above 0log(100) is 2
    ln(x)Natural logarithm of x, base e, for x above 0ln(e) is 1
    sqrt(x)Square root of x, for x at or above 0sqrt(144) is 12
    cbrt(x)Cube root of x, works for negative x toocbrt(-8) is -2
    exp(x)e raised to the power xexp(2) is 7.389056
    abs(x)Absolute value of x, the size without the signabs(-7) is 7
    fact(x) or x!Factorial of a whole number from 0 to 1705! is 120, and 0! is 1
    x^yx raised to the power y2^10 is 1024
    x%x divided by 10050% is 0.5, and 200*10% is 20
    piThe constant pi, about 3.1415932*pi is 6.283185
    eThe constant e, about 2.718282ln(e) is 1

    A few aliases work as well: log10 means the same as log, arcsin means the same as asin, arccos means the same as acos, and arctan means the same as atan. The percent sign is a postfix operator, so it divides the number in front of it by 100: 25% on its own is 0.25, and 200*25% is 50. That is the calculator's whole percent rule, and it is simpler than the percent key on some handheld calculators, which changes meaning depending on the operation before it. If you want a percent of a number, write it as a multiplication, like 200*15%. For percentage problems with a dedicated tool, our Percentage Calculator handles percent of, percent change, and reverse percentages directly.

    The two constants deserve a note. Pi is the ratio of a circle's circumference to its diameter, about 3.1415926535, and e is the base of the natural logarithm, about 2.7182818284. Both are irrational, so their decimals never end or repeat, and the calculator carries them to the full precision of its arithmetic, about 15 to 17 significant digits. Typing pi is more accurate than typing 3.14, and typing e is more accurate than typing 2.72, so use the names whenever the constant appears.

    Common mistakes to avoid

    Forgetting the angle mode. This is the most common scientific calculator mistake, and the hardest to spot, because the answer looks plausible. Sin(4) is 0.0698 in degrees and -0.7568 in radians. If your problem gives angles in degrees, use degrees mode. If it gives angles as multiples of pi, like pi/6, use radians mode. Check the mode before you start, and check the result box afterwards: it names the mode it used.

    Leaving out parentheses around a function input. Every function needs its input in parentheses: sin(30), not sin 30. Without them the calculator cannot tell where the input ends, and it asks you to add them. The keypad always inserts the opening parenthesis for you, so this mostly happens when typing by hand.

    Mixing up log and ln. Log is the base-10 logarithm and ln is the natural logarithm with base e. Log(100) is 2, because 10^2 is 100, while ln(100) is 4.605170, because e^4.605170 is 100. The two functions agree only at one input, x equals 1, where both give 0. If your answer is off by a factor of about 2.3, you probably used the wrong one: ln(x) equals log(x) times ln(10), and ln(10) is 2.302585.

    Reading a percent as a whole number. On this calculator 10% means 0.1, not 10. To take 10 percent off 200, write 200-200*10%, which is 180, or 200*90%, which is also 180. Writing 200-10% gives 199.9, because 10% on its own is 0.1 and 200 minus 0.1 is 199.9. That is correct arithmetic for what was typed, but it is rarely what was meant.

    Writing a negative base with a fractional power. The expression (-8)^(1/3) has no real answer in the calculator's arithmetic, because a fractional power is computed through logarithms, and logarithms of negative numbers do not exist. The cube root of -8 is -2, but the way to get it is cbrt(-8), not (-8)^(1/3). The same applies to any negative base with a fractional exponent: use the root function instead.

    Treating factorials as if they distribute. A factorial does not split across addition: (2+3)! is 5!, which is 120, while 2!+3! is 2+6, which is 8, and 2!*3! is 2*6, which is 12. The LibreTexts textbook warns about exactly this error. Always work out the inside of the parentheses first, then take the factorial of the result.

    Forgetting that powers group to the right. The expression 2^3^2 is 512, not 64, because it means 2^(3^2), which is 2^9. If you mean (2^3)^2, which is 8^2, which is 64, write the parentheses. Stacked exponents are rare in everyday problems, but when they appear, the grouping decides the answer by a factor of eight.

    Trusting a long decimal too far. The calculator shows 10 decimal places, but the last few digits of a long chain of arithmetic can carry rounding noise from binary storage. For a final answer, round to the precision your problem asks for: two decimals for money, three or four for most measurements, and no more than the least precise input deserves. A result of 12.124355653 from sides measured to one decimal place is honestly 12.1.

    Frequently asked questions

    How do I use a scientific calculator online?

    Type an expression into the box and press Enter, or tap the keypad buttons. Use * for multiply, / for divide, ^ for powers, and ! for factorials, and put function inputs in parentheses, like sin(30) or log(100). Check the angle mode first: degrees is the default, and the Radians button switches to radians. The result appears below the keypad with the expression beside it, and the Ans button inserts the last answer into your next expression.

    What is the difference between degrees and radians?

    They are two units for the same angle. A full circle is 360 degrees and also 2pi radians, so pi radians equals 180 degrees. To convert degrees to radians, multiply by pi/180; to convert radians to degrees, multiply by 180/pi. One radian is about 57.3 degrees. Degrees are the everyday unit, while radians are the natural unit in higher mathematics, because a radian is the angle that cuts an arc exactly as long as the radius. The mode matters: sin(4) is 0.0698 in degrees and -0.7568 in radians.

    Why does sin(30) give 0.5?

    In a right triangle, the sine of an angle is the length of the opposite side divided by the length of the hypotenuse. In a 30-60-90 triangle the side opposite the 30 degree angle is exactly half the hypotenuse, so the ratio is 1/2, which is 0.5. The same triangle gives cos(60) as 0.5, because the side adjacent to the 60 degree angle is also half the hypotenuse, and tan(45) as 1, because the two legs of a 45-45-90 triangle are equal. These three values are the standard special angles, and they are worth memorizing.

    What is the difference between log and ln?

    Log is the base-10 logarithm and ln is the natural logarithm with base e, about 2.718282. Log(100) is 2, because 10^2 is 100, while ln(100) is 4.605170, because e^4.605170 is 100. Both ask the same question, what power of the base gives this number, with different bases. They agree only at 1, where both give 0, and they are related by ln(x) equals log(x) times ln(10), where ln(10) is 2.302585. Base-10 logs suit scales like the Richter scale for earthquakes, while natural logs suit growth and decay.

    Why is 0 factorial equal to 1?

    By definition: 0! is defined as 1, and the definition keeps the rest of mathematics consistent. The factorial counts the ways to arrange n objects, and there is exactly one way to arrange nothing. It also keeps the recurrence n! equals n times (n-1)! working at n equals 1, since 1! equals 1 times 0!, which gives 0! equals 1. Without that definition, formulas in combinations, probability, and power series would all need special cases for zero. The calculator follows the same definition, so 0! gives 1.

    What order does the calculator follow?

    It follows the standard order of operations: parentheses first, innermost first, then exponents, then multiplication and division working left to right, then addition and subtraction working left to right. So 2+3*4 is 14, (2+3)*4 is 20, and 54/9*2 is 12, because the division comes before the multiplication as you read left to right. Powers group to the right, so 2^3^2 is 512, which is 2^9. A minus sign in front of a power applies after the power, so -2^2 is -4, while (-2)^2 is 4.

    Why does the calculator refuse some expressions?

    Some expressions have no answer in real-number arithmetic, and the calculator says so instead of guessing. Division by zero is undefined, so 1/0 stops with a message. The square root of a negative number is not a real number, so sqrt(-1) stops, although cbrt(-8) gives -2. Logarithms need a positive input, because no power of 10 or e is ever zero or negative, so log(0) and ln(-5) stop. Factorials need a whole number from 0 to 170, because 171! is larger than the biggest number this arithmetic can hold. Mismatched parentheses stop the calculation too, because the grouping is ambiguous.

    Can this calculator graph functions or solve equations?

    No. This calculator evaluates expressions: you give it numbers and functions, and it gives back one value. It does not draw graphs, solve equations for an unknown, or do calculus. If you need to solve for x, rearrange the equation by hand first and use this calculator for the arithmetic. If you need a graph, a graphing tool or a spreadsheet chart is the right choice. Keeping the scope narrow is deliberate: one tool that evaluates expressions correctly beats a tool that tries to do everything and gets the details wrong.

    Sources

    • LibreTexts: Right Triangle Trigonometry — sine, cosine, and tangent as ratios of the sides of a right triangle, the SohCahToa memory aid, the special angles 30, 45, and 60 degrees, and the worked triangle example with tan(30) giving an adjacent side of about 12.1 and sin(30) giving a hypotenuse of 14. Accessed 20 November 2026.
    • LibreTexts: Radian Measure — 360 degrees equals 2pi radians, pi radians equals 180 degrees, the conversion factors pi/180 and 180/pi, one radian is about 57.3 degrees, and the warning example sin(4 degrees) is 0.0698 while sin(4 radians) is -0.7568. Published 15 April 2021, updated 6 July 2021. Accessed 20 November 2026.
    • LibreTexts: Logarithmic Functions — a logarithm is the exponent to which the base must be raised, the common log has base 10 and the natural log has base e, logarithms are only defined for positive numbers, log(1000) is 3, log(321) is about 2.5065, log(123) is about 2.0899, and the Richter scale is a base-ten logarithmic scale. Accessed 20 November 2026.
    • LibreTexts: Factorials — n! is the product of the whole numbers from n down to 1, 0! is defined as 1, 5! is 120, 4! is 24, 7! is 5040, and factorials do not distribute over addition: (2+3)! is 120 while 2!+3! is 8. Published 25 December 2024, updated 18 November 2026. Accessed 20 November 2026.
    • LibreTexts: Order of Operations — grouping symbols first, then exponents, then multiplication and division left to right, then addition and subtraction left to right, the PEMDAS memory aid, and the worked examples 4+3*2 is 10, 54/9*2 is 12, and 12+2*(3+2*5)^2 is 350. Accessed 20 November 2026.
    • Wikipedia: List of mathematical constants — pi is 3.14159 26535 89793, the ratio of a circle's circumference to its diameter; e is 2.71828 18284 59045, the base of the natural logarithm; the square root of 2 is 1.41421 35623; and the natural logarithm of 2 is 0.69314 71805. Accessed 20 November 2026.