Free, privacy-first

Scientific Calculator

Last updated:

Work through formulas with trig, logs, powers, roots, constants, and angle-mode switching without leaving the browser.

Runs locally in your browser. No data leaves your device.

What this tool helps you answer

What this tool helps you answer

Parses and evaluates typed math expressions, including arithmetic, trigonometric functions, logarithms, exponentials, and physical constants, with configurable angle mode and decimal precision.

Input values

Results

How to read the results

Use the model, assumptions, metrics, and warnings together before acting on the output.

  • The result is displayed with the number of decimal places set in the precision field. The underlying computation always uses full 64-bit floating-point precision.
  • NaN (Not a Number) appears for mathematically undefined operations such as sqrt(-1), log(0), or asin(2). This is the correct output: the calculator is not broken.
  • Infinity appears when a computation exceeds numeric limits, such as 1/0 or a very large exponent. Check whether your expression is intended to produce a finite result.
  • Very small results near zero may appear in scientific notation depending on the precision setting.

Assumptions

  • Expression parser supports a bounded safe subset of arithmetic and scientific functions.
  • Angle mode affects trigonometric functions only.

Next step

Explore the next step

Work through formulas with trig, logs, powers, roots, constants, and angle-mode switching without leaving the browser.

Editorial review

How this page was built

This page combines the live tool, input guidance, worked examples, and operating limits so Scientific Calculator stays useful even before users interact with the calculator.

Reviewed by Klartext Tools against the current Scientific Calculator workflow on 2026-03-06.

Last updated:

Use with judgment

Assumptions

  • Expression parser supports a bounded safe subset of arithmetic and scientific functions.
  • Angle mode affects trigonometric functions only.

Page scope

What this page covers

  • How to use the Scientific Calculator
  • Sample inputs and scenarios
  • How to read the results
  • Use Cases
  • Best practices
  • Why this matters
  • What this tool does

Worked examples

Pythagorean theorem

Find the hypotenuse of a triangle with legs 3 and 4 using the expression sqrt(3^2 + 4^2).

Expression
sqrt(3^2 + 4^2)
Angle mode
Radians
Precision
4

Result: 5.0000: confirming the 3-4-5 right triangle.

Change 3 and 4 to any two leg lengths to find the hypotenuse for an arbitrary right triangle.

Trig identity verification

Confirm the Pythagorean trig identity sin²(x) + cos²(x) = 1 for x = π/4.

Expression
sin(pi/4)^2 + cos(pi/4)^2
Angle mode
Radians
Precision
6

Result: 1.000000: the identity holds for all values of x.

Try the same with x = pi/6, pi/3, or any angle to confirm the identity universally.

How to use the Scientific Calculator

Type a complete expression as you would write it on paper, then evaluate it with the calculate button.

  1. Type your expression

    Enter any valid math expression in the input field, for example: sin(pi/4)^2 + cos(pi/4)^2 or sqrt(3^2 + 4^2).

  2. Set the angle mode

    Choose Radians or Degrees. This only affects sin, cos, tan, asin, acos, and atan. All other functions are unaffected.

  3. Adjust decimal precision

    Set the number of decimal places shown in the result. The default is 6. For integer-expected results like log(1000), set precision to 0.

  4. Read and validate the result

    If the result shows NaN, the expression is mathematically undefined for the given inputs. If it shows Infinity, the result overflows. Both are correct outputs: review your expression for the intended operation.

Sample inputs and scenarios

Try these expressions to see how the calculator handles precedence, trig functions, and constants.

Pythagorean theorem

Find the hypotenuse of a triangle with legs 3 and 4 using the expression sqrt(3^2 + 4^2).

Sample inputs

Expression
sqrt(3^2 + 4^2)
Angle mode
Radians
Precision
4

Sample outcome: Result: 5.0000: confirming the 3-4-5 right triangle.

Change 3 and 4 to any two leg lengths to find the hypotenuse for an arbitrary right triangle.

Trig identity verification

Confirm the Pythagorean trig identity sin²(x) + cos²(x) = 1 for x = π/4.

Sample inputs

Expression
sin(pi/4)^2 + cos(pi/4)^2
Angle mode
Radians
Precision
6

Sample outcome: Result: 1.000000: the identity holds for all values of x.

Try the same with x = pi/6, pi/3, or any angle to confirm the identity universally.

Why this matters

Standard calculator apps evaluate expressions left to right and frequently produce wrong results for anything involving mixed operators or parentheses. A trustworthy expression evaluator that correctly handles operator precedence, includes standard math functions and physical constants, and switches cleanly between radians and degrees is the minimum requirement for technical work where a wrong answer is worse than no answer at all. This calculator is designed to be reliable and explicit about what it is computing so you can trust the output.

What this calculator does

This calculator parses a mathematical expression written as text, applies standard operator precedence rules, and returns a numeric result with configurable decimal precision. It supports arithmetic operators (+, −, *, /, ^), parentheses for grouping, common trigonometric functions, logarithms, exponentials, square roots, absolute value, rounding functions, and the constants pi, e, and tau. The angle mode setting switches trigonometric functions between radians and degrees without changing anything else.

How expression parsing works

The expression parser tokenizes the input string into numbers, operators, function names, and parentheses, then builds an abstract syntax tree that respects the standard PEMDAS order: Parentheses, Exponents, Multiplication and Division (left to right), Addition and Subtraction (left to right). Functions like sin and log are applied to their arguments after the inner expression is fully evaluated. This means sin(pi/4)^2 correctly evaluates as (sin(pi/4))² rather than sin((pi/4)²), following mathematical convention.

Supported functions and constants

  • Trigonometric: sin, cos, tan, asin, acos, atan (angle mode applies)
  • Logarithmic: log (base 10), ln (natural log), exp (e raised to a power)
  • Power and root: sqrt, pow(x,n), or the caret operator x^n
  • Rounding: abs, ceil, floor, round
  • Min / Max: min(a,b), max(a,b)
  • Constants: pi (3.14159…), e (2.71828…), tau (6.28318…)

Interpreting results

  • The result is displayed with the number of decimal places set in the precision field. The underlying computation always uses full 64-bit floating-point precision.
  • NaN (Not a Number) appears for mathematically undefined operations such as sqrt(-1), log(0), or asin(2). This is the correct output: the calculator is not broken.
  • Infinity appears when a computation exceeds numeric limits, such as 1/0 or a very large exponent. Check whether your expression is intended to produce a finite result.
  • Very small results near zero may appear in scientific notation depending on the precision setting.

Real-world scenarios

  • Unit conversion: convert 45 degrees to radians by typing 45 * pi / 180: result is 0.7854.
  • Trigonometric identity check: verify sin(pi/4)^2 + cos(pi/4)^2 equals 1.
  • Engineering formula: evaluate a compound expression like sqrt(3^2 + 4^2) to find the hypotenuse of a 3-4-5 triangle.
  • Logarithm and decibel work: compute log(1000) to confirm it equals 3, or use ln for natural growth calculations.

Edge cases

  • Division by zero: returns Infinity (or -Infinity for negative numerators), not an error. Use a conditional in your workflow if zero denominators are possible.
  • log(0) and log(negative): returns NaN. The logarithm function is only defined for positive numbers.
  • Very large exponents: 10^309 overflows to Infinity in standard 64-bit arithmetic.
  • Mismatched parentheses: the parser returns a syntax error: check that every opening parenthesis has a matching close.

Common mistakes when using this calculator

  • Entering 2+3*4 and expecting 20. The calculator correctly returns 14 by respecting multiplication-before-addition precedence. Use parentheses like (2+3)*4 if you need addition first.
  • Using trig functions without checking the angle mode. sin(90) in radians is not 1. It is approximately 0.894. Switch to degrees if your input is in degrees.
  • Expecting log(x) to be the natural logarithm. log() computes base-10 logarithm. Use ln() for the natural logarithm.

Use Cases

  • Estimate materials before purchasing to reduce project waste.
  • Compare scenarios on-site and adjust quantities in real time.
  • Create clearer project plans with transparent calculation logic.

Related math tools

Decision-support pages

Browse learn library

Tools & topics

Why this calculator stands out

  • Correct operator precedence
  • Radians / degrees toggle
  • Physical constants built in
  • Local computation

Frequently Asked Questions

What mathematical functions and constants are supported?
The calculator supports sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln (natural log), exp, abs, pow, ceil, floor, and round. Constants include pi, e, and tau. Write expressions using standard syntax like sqrt(2), sin(pi/4), or pow(2,10).
Does the angle mode affect all functions?
No: only the trigonometric functions sin, cos, tan, asin, acos, and atan are affected by the angle mode setting. All other functions work the same regardless of whether you choose radians or degrees.
How do I write exponentiation in the expression?
Use the caret symbol: x^2 for x squared, 2^10 for 2 to the tenth power. You can also use the pow() function: pow(2,10). Nested expressions like (x+1)^3 work with either syntax.
Why does my expression return NaN or Infinity?
NaN appears for mathematically undefined operations in real numbers: sqrt(-1), log(0), log(-1), or asin(2). Infinity appears when a result exceeds numeric limits, such as 1/0 or a very large exponent. Both are correct. They indicate the expression has no finite real-number answer for those inputs.
How does this differ from a phone calculator?
Phone calculators evaluate left-to-right without standard operator precedence, so 2+3*4 gives 20 on many apps instead of the mathematically correct 14. This calculator follows PEMDAS order, supports compound expressions with nested functions and constants, and shows exactly what it computed.
What does Scientific Calculator calculate compared with a basic scientific estimator?
Scientific Calculator focuses on work through formulas with trig, logs, powers, roots, constants, and angle-mode switching without leaving the browser. It is built for math & science tools workflows and returns reproducible results for the same inputs.
Which inputs affect scientific calculator results the most?
Start with Expression, Angle mode, Decimal precision. Small changes in those fields usually drive the biggest output shift, so compare at least two scenarios before deciding.
Is scientific calculator online useful for quick scenario planning?
Yes. Scientific Calculator is designed for fast what-if analysis, letting you test assumptions and compare outcomes directly in your browser session.

Cross-Category Recommendations

If the job spills into another category, these tools help with the next step.