Skip to content
Processing locally — files never leave your device

Scientific Calculator Online

A scientific calculator that handles trig (sin, cos, tan), logs, exponents, square roots, factorials, and parentheses-grouped expressions.

Bloggers — embed this widget for free

Add this tool to your own site with one line of HTML. Free forever — just keep the small credit link.

How to use Scientific Calculator

  1. Type a full expression in the input box, or tap the on-screen keys to build it.
  2. Insert constants with the π and e keys, and functions like sin, cos, tan, ln, log, and √.
  3. Group operations with parentheses and use ^ for powers and n! for factorials.
  4. Press = to evaluate; the result appears below the keypad.
  5. Press C to clear everything or ⌫ to delete the last character.

Scientific calculator: functions, syntax, and gotchas

A scientific calculator goes beyond the four basic operations to handle trigonometry, logarithms, exponents, roots, and factorials. This one accepts typed expressions as well as an on-screen keypad, so you can enter a whole formula at once. Below is a reference for the supported functions, the syntax it expects, and the quirks worth knowing before you trust a result.

Supported functions and constants

  • Trigonometry: sin, cos, tan and their inverses asin, acos, atan (arguments in radians).
  • Logarithms: log (base 10), log2 (base 2), log10, and ln (natural, base e).
  • Roots and powers: sqrt, cbrt, exp, and the ^ operator for any exponent.
  • Rounding and sign: abs, floor, ceil, round, sign.
  • Constants: π (3.14159…) and e (2.71828…), available as keys or by typing pi and e.
  • Factorial: n! for non-negative integers.

Writing expressions correctly

The calculator reads a normal infix expression, so you can type something like 2*sin(π/4) + sqrt(16) in one go. A few rules keep results correct:

  • Always close every parenthesis you open; unbalanced brackets cause an error.
  • Multiplication must be explicit: write 2*π, not .
  • Use ^ for powers (3^4 = 81) and the √ key for roots (sqrt(2) ≈ 1.414).

Radians vs degrees

This is the single most common source of wrong trig answers. The functions operate in radians, where a full circle is 2π. If your angle is in degrees, convert it first by multiplying by π ÷ 180. So the sine of a 45-degree angle is sin(45 * π / 180), which returns about 0.707, not sin(45), which interprets 45 as radians.

Order of operations

The evaluator follows standard precedence: parentheses, then exponents, then multiplication and division, then addition and subtraction. 2 + 3 * 4is 14, not 20. When in doubt, add parentheses — they never change a correct expression and they prevent surprises.

Floating-point precision

Like virtually all digital calculators, this tool uses binary floating-point numbers. Most results are exact to many digits, but a few decimals (such as 0.1 + 0.2) show a tiny trailing error because they cannot be represented exactly in binary. For everyday math this is invisible; for precise work, round the answer to the number of decimal places you actually need.

Related tools

Frequently asked questions

Are the trig functions in radians or degrees?
Radians. sin, cos, and tan expect their argument in radians, which is the standard for the underlying math engine. To work in degrees, multiply by π ÷ 180 first — for example sin(30 × π / 180) gives sin(30°) = 0.5.
What is the difference between log and ln?
On this calculator "log" is the base-10 (common) logarithm and "ln" is the natural logarithm, base e ≈ 2.718. So log(1000) = 3 because 10³ = 1000, while ln(e) = 1.
How do I raise a number to a power?
Use the ^ key. 2^10 evaluates to 1024. For square roots use the √ key (sqrt), and for cube roots type cbrt(27), which gives 3.
How do factorials work here?
Type a non-negative whole number followed by ! — for example 5! evaluates to 120 (5 × 4 × 3 × 2 × 1). Factorials of negative or fractional numbers are undefined and return an error.
What order of operations does it follow?
Standard mathematical precedence (PEMDAS/BODMAS): parentheses first, then exponents, then multiplication and division, then addition and subtraction. Use parentheses whenever you want to override the default order.
Is anything sent to a server?
No. The expression is parsed and evaluated entirely in your browser. Nothing you type is uploaded, so the calculator works offline and keeps your data private.
Why do I get a slightly imprecise decimal sometimes?
Calculators that use binary floating-point arithmetic can produce tiny rounding artefacts, such as 0.1 + 0.2 showing as 0.30000000000000004. This is normal for digital computation; round the result to the precision you need.

More tools you might find useful in the same flow.

Built by Muhammad Tahir · About