Scientific Calculator

A calculator with functions, constants and a visible expression.

Scientific Calculator tool

0

History

Each result you confirm with = is kept here, and selecting one puts it back in the box.

About the Scientific Calculator

Homework, engineering checks and science lab calculations often need more than the four basic operations. This scientific calculator evaluates complete expressions as you type them, such as sin(30) + sqrt(16) * 2, with trigonometric functions in degrees or radians, logarithms, powers and roots, factorials and constants such as pi and e. Because the full expression stays visible, it is easy to spot and fix a typo instead of starting again. For everyday sums, the Online Calculator is simpler, and for exact fraction answers use the Fraction Calculator.

All the familiar scientific keys are present: the three trigonometric ratios with their inverse functions, both kinds of logarithm, exponents, roots, e to the power x, modulus, rounding helpers, factorials, plus pi and e themselves. Degrees and radians are chosen with a switch, and the active mode is printed next to the input so you never lose track of it, a common source of wrong answers in trigonometry, where sin(30) is 0.5 in degrees but about -0.99 in radians.

Input is handled by a small dedicated parser that breaks it into pieces, numbers, operators, brackets and function names, and arranges them into a tree. It never hands the text to JavaScript's own evaluator, which would treat anything typed in the box as program code. On a public website that matters: a calculator that runs arbitrary code would be a security hole rather than a convenience. Check whether angles are set to degrees or radians before using the trigonometric keys, because the wrong mode is the most common cause of a surprising answer.

How to use the Scientific Calculator

  1. Enter an expressionUse the on-screen keys or type it from your keyboard, function names such as sin, log and sqrt included.
  2. Set the angle modeChoose degrees or radians; the active mode is shown beside the input.
  3. Press equalsThe answer appears while your expression stays on screen.
  4. Reuse earlier workClick any entry in the history to bring it back into the input, ready to edit or run again.

Scientific Calculator features

  • Whole expressions with brackets and correct operator order
  • Trigonometry and inverse functions in degrees or radians
  • Logarithms, powers, roots and exponentials
  • Factorial, absolute value, rounding, floor and ceiling
  • Constants pi and e
  • ans key for reusing the previous result
  • Clickable history of past calculations
  • Safe parsing that never runs input as code

Common uses

  • Working through trigonometry homework
  • Checking a quick sum on a laptop without reaching for a phone or a desk calculator
  • Evaluating a formula with several layers of brackets
  • Working with angles in both degrees and radians
  • Calculating where seeing the whole expression helps catch mistakes

Using a scientific calculator well: order of operations, modes, notation and checks

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

A scientific calculator can evaluate long expressions with powers, roots, logarithms and trigonometric functions, but it only does exactly what it is told. Most wrong answers come from the order in which an expression is entered, the angle mode, or the way very large and very small numbers are written. This guide covers the habits that make results reliable, from brackets and negative signs to scientific notation, rounding and estimating before you calculate.

Order of operations

Calculators follow a fixed order: brackets first, then powers and roots, then multiplication and division from left to right, then addition and subtraction from left to right. People learn it as BODMAS, BIDMAS or PEMDAS depending on the country, but the rules are the same.

The order matters in expressions such as 2 + 3 × 4, which is 14, not 20. When in doubt, add brackets: they never hurt, and they make the intention clear to anyone reading your working.

Negative numbers and powers

The expression −3² is a frequent trap. By the usual rules, the power applies before the minus sign, so −3² equals −9. If you mean the square of negative three, write (−3)², which equals 9. The same applies to entering negative numbers into formulas: put them in brackets to be safe.

Ambiguous expressions

Expressions such as 6 ÷ 2(1 + 2) circulate online because people disagree about them. Under the strict left-to-right rule, the answer is 9; under the convention that implied multiplication binds more tightly, it is 1. Mathematicians avoid writing such expressions at all. Use brackets or a fraction bar to show exactly what you mean.

Degrees and radians

Trigonometric functions depend on the angle mode. In degree mode, sin(30) is 0.5; in radian mode, it is about −0.988. Before any trigonometry, check the mode indicator, usually shown as DEG or RAD. Physics and calculus problems often use radians, while geometry and surveying usually use degrees.

Scientific notation

Very large and very small numbers are entered with an exponent key, often labelled EXP or E. Avogadro's number, 6.022 × 10²³, is entered as 6.022E23. Typing 6.022 × 10 ^ 23 instead usually works but invites mistakes with brackets. Results may also be displayed in this form: 1.5E-7 means 0.00000015.

Tiny rounding errors

Calculators store numbers in binary with limited precision, so some results show tiny errors. The sine of π radians should be exactly 0, but many calculators show something like 1.2E-16. That is a rounding artefact, not a real value. Recognising these tiny leftovers stops you from treating them as meaningful.

A worked example: compound interest

To find the value of Rs 50,000 invested for 5 years at 12% a year compounded monthly, the formula is 50,000 × (1 + 0.12/12)^(12 × 5). Entered with brackets as 50000 × (1 + 0.12 ÷ 12) ^ (12 × 5), the result is about Rs 90,834.83.

Without the brackets around the exponent, a calculator might compute (1.01)^12 and then multiply by 5, giving a completely different answer. Building the expression in parts, and checking each part, avoids that kind of error.

A worked example: projectile range

A ball thrown at 20 metres per second at an angle of 30 degrees travels a horizontal distance of v² × sin(2θ) ÷ g on level ground, ignoring air resistance. With the calculator in degree mode, 20² × sin(60) ÷ 9.81 gives about 35.3 metres. In radian mode, the same keystrokes give a meaningless result, which is a good reminder to check the mode first.

Estimate before you calculate

A quick estimate catches entry errors. For 50,000 × 1.01^60, note that 1.01^60 is a little under 2, so the answer should be a little under 100,000. If the calculator shows 600,000 or 50,600, something was entered incorrectly. Estimating also helps with units: an answer in metres for a ball's flight that comes out at 3,500 is clearly wrong.

Memory and the previous answer

Most calculators store the last result as Ans, which can be used in the next calculation. Using Ans avoids retyping rounded values, which would introduce errors. For longer problems, store intermediate results in memory rather than writing down rounded figures and typing them back in.

Common mistakes

  • Leaving out brackets around fractions, exponents and negative numbers.
  • Using the wrong angle mode.
  • Retyping rounded intermediate values.
  • Treating tiny rounding artefacts as real values.

Related tools

For everyday sums, use Online Calculator. For powers, try Exponent Calculator, and for logs in any base, Logarithm Calculator.

Entering fractions

Many scientific calculators have a fraction key, often labelled a b/c, that enters and displays exact fractions such as 3/4 or 2 1/3 and keeps results as fractions where possible. Without it, wrap each fraction in brackets: (3 ÷ 4) + (2 ÷ 3). Leaving out the brackets in an expression such as 1 ÷ 2 × 3 gives 1.5, because the calculator divides first and then multiplies, which may not be what you meant.

Limits

Results are computed with standard double-precision arithmetic, accurate to about 15 significant digits. For exact symbolic work, use a computer algebra system.

Frequently asked questions

Does it respect the usual order of operations?

Yes. Brackets come first, then powers, then multiplication and division, then addition and subtraction. Nested brackets of any depth are resolved properly because the input becomes a tree before it is evaluated.

Should I use degrees or radians?

It depends on the problem. School geometry and most everyday angles use degrees, while calculus, physics formulas and programming nearly always use radians. Using the wrong mode gives a believable but wrong answer, so check the indicator.

Why not simply let JavaScript evaluate the expression?

Because JavaScript's evaluator would run anything typed as code, including malicious text someone sent you in a link. This calculator splits the input into numbers, operators and function names and evaluates only those.

What does the ans key do?

It stands for the result of your last calculation, so you can carry on from it, for example by typing ans times 2, without copying or retyping the number.

How accurate are the answers?

Internally it works with 64-bit floating point, good to roughly fifteen or sixteen significant figures. That is why 0.1 plus 0.2 is not stored as exactly 0.3 in any calculator built this way; the display is rounded to hide the tiny error.

How large a number can it handle?

Up to roughly 10 to the power of 308, beyond which the answer shows as infinity. Factorials grow extremely quickly, so anything larger than 170 factorial goes past that limit.