Skip to content

Scientific Calculator

Free online scientific calculator: trig in degrees or radians, logs, powers, roots and factorials, with 64-digit precision, keyboard input and a shareable link.

Calculator Details

Result:1027.5See results ↓

Type or tap an expression: + − × ÷ ^ ! %, brackets, sin cos tan, log (base 10), ln, sqrt, pi, e. Enter adds the result to the history; Escape clears.

Angle unit

Your Results

Result: 1027.5

Result

1027.5

2 ^ 10 + sqrt(144) / 3 - sin(30) =

Details

More digits (32 significant)

Hidden

The display shows 15 significant digits

Angle unit

Degrees (DEG)

Used by the trig functions in this expression

How This Calculator Works

How the Calculator Reads Your Expression

The expression is parsed into a tree using the standard order of operations: brackets, then factorial, then powers (right to left), then percent, then × and ÷ (left to right), then + and − (left to right). Each step is evaluated in 64-digit decimal arithmetic and the answer is rounded to 15 significant digits.

You typed: 2^10 + sqrt(144) / 3 - sin(30)

Read as: 2 ^ 10 + sqrt(144) / 3 - sin(30)

Result: 1027.5 (angles in degrees)

Functions used: sqrt, sin. In degree mode the angle is converted with x × π ÷ 180 before sin, cos or tan, and inverse functions convert back with × 180 ÷ π.

Multiplication can be implied: 2pi is read as 2 * pi and 3(4 + 1) as 3 * (4 + 1). A minus sign in front of a power applies after it, so -2^2 is −(2²) = −4.

Frequently Asked Questions

In what order does the calculator work out an expression?

Brackets first, then factorials, then powers (^), then percentages, then multiplication and division from left to right, then addition and subtraction from left to right. So 2^3! is 2^6 = 64 and 2^10% is 1024 ÷ 100 = 10.24. Implied multiplication counts as ordinary multiplication, so 6/2(1+2) is (6 ÷ 2) × 3 = 9. Powers are right-associative, so 2^3^2 means 2^(3^2) = 512, and a minus sign in front of a power applies after the power, so -2^2 = -4. Type (-2)^2 if you mean 4. Spreadsheets such as Excel read -2^2 as 4, which is a common source of different answers.

Is log base 10 or the natural logarithm?

log(x) is the common logarithm (base 10), as on Casio, TI and Windows calculators, so log(1000) = 3. ln(x) is the natural logarithm (base e), so ln(e) = 1. For any other base type log(x, b): log(8, 2) = 3. log2(x) is a shortcut for base 2.

Should I use degrees or radians?

Use degrees for everyday geometry, surveying and most school triangle problems (a right angle is 90°). Use radians for calculus, physics formulas and anything involving angular frequency (a right angle is π/2 ≈ 1.5708). The setting changes how sin, cos and tan read their input and how sin⁻¹, cos⁻¹ and tan⁻¹ give their answer; nothing else is affected. sin(30) is 0.5 in degrees but about −0.988 in radians.

Why is tan(90°) an error instead of a huge number?

tan x = sin x ÷ cos x, and cos 90° is exactly 0, so tan 90° is undefined: the value grows without limit as the angle approaches 90° from either side, positive on one side and negative on the other. The calculator recognises exact multiples of 90° in degree mode and reports them as undefined, and in radian mode it does the same when cos x is zero to 50 decimal places (for example tan(pi/2)).

How accurate are the results?

Every step is calculated with 64 significant digits of decimal precision, then the answer is rounded to 15 significant digits for display (32 under "More digits"). Because the arithmetic is decimal rather than binary, 0.1 + 0.2 gives exactly 0.3, not 0.30000000000000004. Irrational results such as √2 or π are still rounded, so they are correct to the digits shown.

What does the % key do?

A number followed by % is divided by 100, so 50% is 0.5 and 50% * 200 = 100. Straight after + or −, a percentage is taken of the number before it, as on hand-held calculators: 100 + 10% = 110 and 100 − 10% = 90 (type 100 + 10/100 if you mean 100.1). Between two numbers, a % b (or a mod b) is the remainder after division, so 10 % 3 = 1. For percentage change, discounts and "what percent is x of y", the percentage calculator is easier.

How large a factorial can it calculate?

Up to 1000!, which has 2,568 digits; the result is shown in scientific notation (100! ≈ 9.33262154439442e+157). Factorials are defined for whole numbers 0 and up (0! = 1), so 3.5! gives an error; the gamma function that extends factorials to fractions is not included.

Can I type an expression with the keyboard?

Yes. Type into the expression box using + - * / ^ ! % and brackets, function names such as sin, sqrt or ln, and pi or e. Pasted symbols ×, ÷, −, π and √ are understood too, and 2pi or 3(4 + 1) multiply without a * sign. Press Enter to add the result to the history list, and Escape to clear the box. Every change updates the link, so Share sends the same expression and angle unit.

Why do I get "not a real number"?

The calculator works with real numbers only. The square root of a negative number, the logarithm of zero or a negative number, and sin⁻¹ or cos⁻¹ of a value outside −1 to 1 have no real answer, so they are reported as errors with a short explanation rather than as complex numbers.

Included: + − × ÷, powers, roots, factorials up to 1000!, percent and remainder, sin/cos/tan and their inverses in degrees or radians, hyperbolic functions, log (base 10), ln, log base b, π and e, with 64-digit decimal arithmetic (mathjs BigNumber) and a 15-digit display.

Left out: complex numbers, the gamma function (fractional factorials), variables and memory registers, matrices, units and statistics (see the matrix and standard deviation calculators). History is kept for this visit only.

Scientific Calculator: Order of Operations, Trig Modes and Precision

By FindMySum · Last reviewed

A scientific calculator does more than add and multiply. It reads a whole expression at once, applies the order of operations, and adds the functions that school and work maths rely on: powers and roots, logarithms, trigonometry, factorials and the constants π and e. This article explains how the calculator reads what you type, the two angle modes, the log and ln buttons, and the precision behind each answer, using the calculator's default expression as a worked example.

Order of operations

An expression such as 2^10 + sqrt(144) / 3 - sin(30) is not worked out left to right. The calculator builds a tree from it using the standard precedence rules, from highest to lowest:

PriorityOperationExample
1Brackets and function callssqrt(144), (1 + 2)
2Factorial5! = 120, 2^3! = 2^6 = 64
3Powers, right to left2^3^2 = 2^9 = 512
4Unary minus-2^2 = −4
5Percent50% = 0.5, 2^10% = 10.24; straight after + or −, a percentage of the number before it: 100 + 10% = 110
6Multiplication, division, remainder, left to right (implied multiplication too)12 / 3 * 2 = 8, 6/2(1+2) = 9
7Addition and subtraction, left to right10 - 4 + 1 = 7

Two rows trip people up. Powers group from the right, so a tower of exponents is evaluated from the top down, which is the convention in algebra textbooks. And a leading minus sign applies after the power: -2^2 means −(2²) = −4. Spreadsheets disagree here; Excel evaluates -2^2 as 4 because it applies the sign first. If you mean the square of negative two, type (-2)^2.

The calculator also understands implied multiplication, so 2pi is 2 × π and 3(4 + 1) is 15. In the "how it's calculated" panel you can see the expression rewritten with every multiplication made explicit, which is the quickest way to check that it was read the way you intended.

Worked example: the default expression

The calculator opens with 2^10 + sqrt(144) / 3 - sin(30) in degree mode. Following the table:

  1. Function calls first: sqrt(144) = 12 and sin(30°) = 0.5.
  2. The power: 2^10 = 1024.
  3. Division: 12 / 3 = 4.
  4. Addition and subtraction from left to right: 1024 + 4 − 0.5 = 1027.5.

Switch the angle unit to radians and only one step changes: sin(30) now means the sine of 30 radians, about −0.988, so the result becomes roughly 1028.988. That one switch is behind most "my calculator is wrong" moments in trigonometry homework.

Degrees and radians

A full turn is 360 degrees or 2π radians, so one degree is π/180 radians, the exact factor given in the NIST Guide to the SI. Degrees are natural for geometry, navigation and construction. Radians are the unit in which calculus works: the derivative of sin x is cos x only when x is in radians, and formulas for arc length, angular velocity and oscillations assume radians.

In degree mode the calculator multiplies the angle by π/180 before taking sin, cos or tan, and the inverse functions multiply their answer by 180/π. Exact multiples of 90° are treated exactly, so sin 180° is 0 and tan 90° is reported as undefined, rather than a tiny or enormous number left over from rounding π. In radian mode, results smaller than 10⁻⁵⁰ from sin, cos or tan of an ordinary angle are treated as zero for the same reason: sin(pi) would otherwise show about 3 × 10⁻⁶⁴.

log, ln and other bases

Hand-held calculators label two logarithm keys, and this calculator follows them. log is the common logarithm, base 10, so log(1000) = 3. ln is the natural logarithm, base e, so ln(e) = 1. Any other base can be written with a second argument, log(x, b), which the calculator evaluates as ln(x) ÷ ln(b): log(8, 2) = 3. The NIST Digital Library of Mathematical Functions defines all three in its chapter on elementary functions, along with the identities that connect them.

Logarithms are defined only for positive numbers, so log(0) and ln(-5) are reported as errors. The same applies to the square root of a negative number and to sin⁻¹ or cos⁻¹ of a value outside the range −1 to 1: they have no real-number answer, and the calculator does not switch to complex numbers.

Precision: why 0.1 + 0.2 is 0.3 here

Most software stores numbers in binary floating point, which cannot represent 0.1 exactly. That is why a browser console reports 0.1 + 0.2 as 0.30000000000000004. This calculator evaluates every step in decimal arithmetic with 64 significant digits, through the BigNumber mode of the math.js library, and rounds only the final answer to 15 significant digits. Decimal inputs therefore stay exact, and irrational results such as √2 = 1.4142135623731 are correct to every digit shown. The 32-digit view is there when you need to compare against a table or check a rounding boundary.

Factorials are computed exactly up to 1000!, a number with 2,568 digits, and shown in scientific notation once they pass about 21 digits. Fractional factorials such as 3.5! need the gamma function, which is not included.

Typing expressions quickly

The keypad is there for touch screens, but the expression box accepts everything from a physical keyboard. Use * for ×, / for ÷ and ^ for powers. Pasted symbols ×, ÷, −, π and √ are converted automatically. Press Enter to add the current result to the history list and Escape to clear the box. Because every change is written to the page address, Share produces a link that opens the same expression in the same angle mode for whoever receives it.

More questions

Why does my phone calculator give a different answer for 6 ÷ 2(1 + 2)?

Because the expression is ambiguous and calculators resolve it differently. This calculator treats implied multiplication like an ordinary ×, working left to right with division, so 6 ÷ 2(1 + 2) = 6 ÷ 2 × 3 = 9. Some older hand-held models give implied multiplication a higher priority and return 1. Mathematicians avoid the question by writing 6 ÷ (2(1 + 2)) or (6 ÷ 2)(1 + 2), and you should too whenever an answer matters.

How do I enter a number in scientific notation?

Type the mantissa, the letter e and the exponent with no spaces: 6.022e23 is 6.022 × 10²³ and 1.6e-19 is 1.6 × 10⁻¹⁹. Be careful not to confuse this with the constant e: 2e3 is 2000, while 2 * e^3 is about 40.17. Very large and very small answers are shown the same way, so 100! appears as 9.33262154439442e+157.

How do I take a root other than a square or cube root?

Use nthRoot(x, n) or a fractional power. The fourth root of 81 is nthRoot(81, 4) or 81^(1/4), both 3. Put the fraction in brackets: 81^1/4 means (81^1) ÷ 4 = 20.25. nthRoot also handles odd roots of negative numbers, so nthRoot(-27, 3) is −3, while (-27)^(1/3) is reported as not a real number.

Can I convert between degrees and radians with this calculator?

Yes, with the conversion factor. Degrees to radians is x × pi / 180, so 45 * pi / 180 = 0.785398163397448. Radians to degrees is x × 180 / pi, so 1 * 180 / pi = 57.2957795130823. The angle-unit switch does not change these lines, because no trig function is involved; it only changes how sin, cos and tan and their inverses read and return angles.

What is the difference between sin⁻¹ and 1/sin?

sin⁻¹(x), written asin(x), is the inverse function: the angle whose sine is x, so asin(0.5) is 30° in degree mode. 1/sin(x) is the reciprocal, called the cosecant, so 1/sin(30) is 2. The superscript −1 means inverse function here, not a power, which is a frequent mix-up in homework.

Does the calculator remember my previous answers?

Pressing = or Enter adds the expression and its result to a history list for the current visit; select an entry to load it again. The list is not saved anywhere and disappears when you leave the page. To keep a calculation, use Share: the link holds the expression and the angle unit, so opening it later reproduces the result.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy