2026-08-07 10 min

Scientific Calculator

Online scientific calculator with trig, inverse trig, hyperbolic, logarithmic, exponential, power, root, factorial, percent, modulo, memory, and history — with Rad/Deg modes and Auto/Sci/Eng display.

Calculator

Expression & Modes

Expression
Angle Mode
Display

Scientific Keypad

RAD | AUTO
0
Results update automatically
Results update live as you type
Status:Radians · AUTOEnter an expressionM = 0

Scientific Result Summary

Expression—
Result0
ModeRadians · AUTO
Memory0

Function Values at x

FunctionValue
sin(x)0.7071
cos(x)0.7071
sin²(x) + cos²(x)1
√|x|0.8862
ln(|x|+1)0.5796

Results

Normal

Result

0

Enter an expression or press the keys

Numeric Value

—

Raw double-precision value before display formatting

Angle Mode

Radians

Trig inputs are interpreted in this unit

Display Mode

AUTO

Auto, scientific, or engineering notation

Memory (M)

0

Stored value: M+ adds, M- subtracts, MR recalls

History Entries

0

Up to 10 recent calculations are kept

sin(x)

0.7071

Sine of the current result

√|x|

0.8862

Square root of the magnitude

Expressions evaluate in IEEE-754 double precision with standard PEMDAS precedence. Trig follows the selected Rad/Deg mode, % divides by 100, and Error signals undefined math rather than a guess.

Visualizations

Function Values at x (magnitudes)

0.7|sin x|
0.7|cos x|
0.9√|x|
0.9∛|x|
0.3log₁₀(|x|+1)

Trig Identity: sin²x vs cos²x

sin²x50%
cos²x50%

Magnitude of Result

|x| capped at 1000.8

Result vs 10

|x|0.8

Formula

Every keystroke builds an expression string. On evaluation the calculator rewrites display symbols to math calls, balances parentheses, binds trig to the selected angle mode, evaluates with standard precedence, and formats the double-precision result.

PEMDAS: (parentheses) → powers/roots → × ÷ → + −, with sin/cos/tan in Rad or Deg

Alternative Form

Deg→Rad: x_rad = x_deg × π/180; ln↔exp: ln(eˣ) = x; log₁₀(10ˣ) = x; sin²x + cos²x = 1

Variables

SymbolNameUnitDescription
xExpression valuenumberThe evaluated numeric result of the whole expression
θAngle inputrad | degInterpreted in the selected Rad/Deg mode
eEuler's number≈2.71828Base of ln and exp; continuous-growth constant
πPi≈3.14159Circle constant; 2π radians = 360°
n!FactorialcountProduct 1·2·…·n with 0! = 1
MMemorynumberStored register behind M+, M−, MR, MC

Explanation

A scientific calculator is an expression evaluator with a function table. Symbols are syntax sugar over Math.sin, Math.log, Math.sqrt, and friends; the angle mode only changes the trig rows of that table, and the display mode only changes the final formatting.

Derivation

sin_deg(x) = Math.sin(x·π/180); asin_deg(y) = Math.asin(y)·180/π; log(x) = ln(x)/ln(10); exp(x) = eˣ; x^(1/2) = √x; x^(1/3) = ∛x; n% = n/100; n! = 1·2·…·n; sin²x + cos²x = 1.

Step-by-Step Calculation

Follow each step to understand how the result is calculated from your inputs.

Step 1

Normalize display symbols into JavaScript math calls.

π→Math.PI, √→Math.sqrt, ^→**, ×→*, ÷→/, %→(÷100), n!→factorial(n)
Input:sin(30)+log(100)
Normalized:sin(30)+log(100)
Intermediate: sin(30)+log(100)
Result: Expression is now valid evaluable code
Step 2

Balance parentheses so every opened group closes.

append ")" × (open − close)
Open groups:2
Unmatched closers:0
Intermediate: Balanced form: sin(30)+log(100)
Result: No dangling open parenthesis remains
Step 3

Resolve the angle mode for every trig call.

Deg: sin(x) = Math.sin(x·π/180); Rad: sin(x) = Math.sin(x)
Mode:Degrees
π/180:0.0174533
Intermediate: Degree inputs scaled by π/180
Result: Mode = DEG
Step 4

Dispatch named functions (sin, log, sqrt, factorial, mod, randint).

ln = Math.log, log = Math.log10, exp = Math.exp, √ = Math.sqrt
Expression:sin(30)+log(100)
Intermediate: sin/log/sqrt/factorial resolved through the context table
Result: All names bound to implementations
Step 5

Evaluate with standard precedence (PEMDAS): parentheses, powers, ×/÷, +/−.

(…) → xʸ → × ÷ → + −
Expression:sin(30)+log(100)
Intermediate: Evaluated value = 2.5
Result: Numeric result = 2.5
Step 6

Format the raw value for the selected display mode.

Auto ⇄ Sci (a×10ⁿ) ⇄ Eng (exponent multiple of 3)
Mode:AUTO
Raw:2.5
Intermediate: formatNum(2.5, auto)
Result: Displayed = 2.5
Final Answer
0

Worked Examples

See how the calculator works with different scenarios.

Scenario

Evaluate 2+3×4²/(10−2) exactly as typed.

Inputs

Expression:2+3×4²/(10−2)
Mode:Rad/Auto

Calculation

4² = 16 3×16 = 48 10−2 = 8 48/8 = 6 2+6 = 8

Result

8

Interpretation

Powers beat multiplication, parentheses beat everything. The calculator applies PEMDAS automatically, so no manual grouping is needed beyond the (10−2) term.

Understanding Your Result

Your Result: Result: 0

Typical range: sin/cos outputs always fall in [−1, 1]; sin²+cos² is exactly 1; factorial grows past 10! = 3,628,800 and overflows to Infinity near 171!. Values beyond ~1e15 switch to scientific display automatically.

What This Means

The Result is the double-precision value of your expression after symbol rewriting, angle-mode binding, and PEMDAS evaluation; the formatted text is that value rendered in Auto, Sci, or Eng notation.

Why It Matters

One wrong mode — degrees instead of radians, or a missing parenthesis — silently moves every downstream digit. Seeing the normalized pipeline and the unit-circle position makes such slips visible before they propagate.

Professional Interpretation

Treat the display as a 10-significant-digit window onto a 64-bit float: fine for engineering checks, but pair it with interval or exact arithmetic when cancellation or ill-conditioned trig near asymptotes matters.

Recommendations

  • •Confirm Rad vs Deg before any trig key
  • •Wrap denominators and exponents in parentheses
  • •Use Sci/Eng mode when magnitudes pass 1e6 or 1e−4
  • •Park intermediate values in M instead of retyping
  • •Re-run edge inputs (0, negatives, huge powers) deliberately
  • •Read Error as a domain signal, not a bug

Educational Content

Introduction

This scientific calculator evaluates typed mathematical expressions using the same precedence rules you learned for hand calculation, extended with a function table for trigonometry, logarithms, exponentials, roots, factorials, and statistics helpers.

Concept Explanation

An expression is a string that compiles to nested function calls. Rewriting (π→Math.PI, √→sqrt, ^→**) plus parenthesis balancing produces valid code; binding trig to Rad/Deg fixes the meaning of angles; evaluation reduces the tree bottom-up; formatting renders the float.

Applications

▸Solving triangle geometry with sin, cos, tan and their inverses
▸Evaluating log-scale quantities: pH, decibels, Richter magnitude
▸Pricing exponential growth: compound interest, populations, decay
▸Counting arrangements with factorials, permutations, combinations
▸Converting units and scales with powers, roots, and Sci/Eng notation
▸Checking homework and lab arithmetic with history and Ans chaining

Benefits

  • •One line replaces pages of intermediate hand arithmetic
  • •Rad/Deg toggle removes the most common trig error class
  • •History plus Ans makes multi-step derivations auditable
  • •Sci/Eng notation keeps extreme magnitudes readable
  • •Memory registers hold constants across expressions

Limitations

  • •64-bit floats round: 0.1+0.2 displays 0.30000000000000004-class artifacts at full precision
  • •% is unary (÷100), not the classic add-tax/discount postfix
  • •No symbolic algebra: it evaluates numbers, not equations or integrals
  • •Random output is pseudo-random, unsuitable for cryptography

Best Practices

  • •Start trig work by stating the angle mode out loud
  • •Parenthesize every exponent and denominator
  • •Use Ans and M instead of copying rounded displays
  • •Prefer Eng notation for circuit and lab values
  • •Keep a history trail for anything you will defend later

Common Misconceptions

Myth: The calculator "knows" degrees or radians automatically.
Truth: It applies whichever mode is selected to every trig call. sin(30) is 0.5 in Deg and −0.988 in Rad — same keys, different contract.
Myth: More displayed digits means more accuracy.
Truth: Display digits are formatting; the value underneath is a 64-bit float with about 15–17 significant decimal digits, and subtraction can cancel most of them away.
Myth: % adds tax like a shop till.
Truth: Here % means ÷100, so 100+10% is 100.1. For tax use 100*(1+10%) instead.
Myth: Error means the calculator is broken.
Truth: Error reports undefined math — division by zero, log of a negative, sqrt of a negative — exactly where hand calculation would also stop.

Practical Tips

  • •Press Enter to evaluate; Backspace fixes one key, Escape restarts
  • •Set Rad/Deg before typing any trig, not after
  • •Type 10**x for antilog and e**x via exp(x) for growth
  • •Chain with Ans instead of retyping long decimals
  • •Bank constants (π multiples, rates) in M with M+
  • •Use Sci mode to compare magnitudes at a glance
  • •Auto-close lets you skip trailing ))) — but count them in long nests

Common Mistakes

Trig answers look wrong by a lot
You are in the wrong angle mode. Toggle Rad/Deg and re-evaluate; sin(30°) = 0.5 but sin(30 rad) ≈ −0.988.
Missing or extra parentheses
Wrap each function argument and denominator: log(100)+2 differs from log(100+2). Let auto-close handle trailing ends only.
Using % like a till (100+10% ≠ 110)
Write growth explicitly: 100*(1+10%) = 110, since % here means ÷100.
Two operators in a row
Expressions like 5*/3 are syntax errors. Insert the missing operand or parenthesis, then press =.
Copying rounded displays into the next step
Use Ans or M to carry full precision forward instead of retyping what you see.

Assumptions

This calculator makes the following assumptions to provide estimates:

Double-Precision Arithmetic: All operations use IEEE-754 64-bit floats, matching JavaScript Math.
Principal Branches: Inverse trig returns principal values: asin in [−π/2, π/2], acos in [0, π].
Unary Percent: A trailing % divides its number by 100 wherever it appears.
Non-Negative Remainder: mod(a,b) returns values in [0, b) even for negative a.
Auto-Closed Groups: Unmatched open parentheses are closed at evaluation time.

Limitations

Be aware of these limitations when using this calculator:

No Symbolic Math: Equations, derivatives, and integrals are not solved; only numeric expressions evaluate.
Float Rounding: Irrationals and repeating decimals are approximated; cancellation can amplify error.
Single-Line Scope: No variables or multi-line programs; memory plus history is the whole state.
Pseudo-Random Only: randint is deterministic PRNG output, not suitable for security or lotteries.

Frequently Asked Questions

Answers to common questions about this calculator.

What is a scientific calculator?
A scientific calculator performs operations beyond basic arithmetic: trigonometry (sin, cos, tan), logarithms (ln, log), exponentials, powers, roots, factorials, and memory functions. It is the standard tool for mathematics, physics, engineering, and chemistry.
How do sin, cos, and tan work?
In a right triangle, sin = opposite/hypotenuse, cos = adjacent/hypotenuse, and tan = opposite/adjacent. The numeric result depends on the angle mode: in Deg mode sin(90) = 1, while in Rad mode sin(π/2) = 1.
What is the difference between radians and degrees?
A full circle is 360 degrees or 2π radians, so one radian is about 57.3 degrees. Use Deg for geometry and navigation, and Rad for calculus, physics, and most programming contexts. Toggle Rad/Deg above the keypad.
What is the difference between ln and log?
ln is the natural logarithm with base e (≈2.71828) and log is the common logarithm with base 10. Convert with log(x) = ln(x) / ln(10). This calculator provides both, plus exp(x) = eˣ as the inverse of ln.
What is the exponential function (exp)?
exp(x) computes eˣ, the inverse of the natural logarithm. It models continuous growth and decay such as compound interest, population growth, and radioactive decay. Try 1000*exp(0.05*10) for 10 years at 5% continuous growth.
What is factorial (n!)?
n! is the product of all positive integers from 1 to n; for example 5! = 120, and by definition 0! = 1. Factorials count permutations and combinations. Type a number followed by ! and press =.
How do memory functions (M+, M-, MR, MC) work?
M+ adds the current result to memory, M- subtracts it, MR recalls the stored value into the expression, and MC clears memory to zero. Use memory to accumulate totals across multi-step calculations.
How do I use parentheses?
Parentheses force evaluation order: (3+4)*5 = 35, while 3+4*5 = 23. You can nest them, and this calculator auto-closes any unmatched open parenthesis when you press =.
What is scientific notation?
Scientific notation writes numbers as a × 10ⁿ with 1 ≤ |a| < 10, e.g. 2.998e8 for the speed of light. Select Sci display mode to always show results this way.
What is engineering notation?
Engineering notation is like scientific notation but exponents are always multiples of 3, matching prefixes such as milli (10⁻³), kilo (10³), and mega (10⁶). Select Eng display mode for it.
What is the order of operations (PEMDAS)?
Parentheses first, then exponents and roots, then multiplication and division left to right, then addition and subtraction. So 2+3*4² = 2+3*16 = 50.
How do I calculate powers and roots?
Use x², x³, or xʸ (**) for powers, √x for square root, ∛x via **(1/3), and y√x via **(1/y). Fractional exponents are roots: 16^(1/4) = 2.
What are hyperbolic functions (sinh, cosh, tanh)?
Hyperbolic functions are circle-function analogs built from exponentials: sinh(x) = (eˣ−e⁻ˣ)/2 and cosh(x) = (eˣ+e⁻ˣ)/2. They model hanging cables (catenaries), relativity, and heat transfer. Inverse forms asinh, acosh, atanh are included.
What does the % button do?
Here % is a unary operator that divides by 100, so 15% means 0.15 and 200*15% = 30. It is the fastest way to take percentages of a value.
What is the modulo operation?
mod(a,b) returns the non-negative remainder of a divided by b; mod(17,5) = 2. It wraps values into ranges and is used in calendars, cryptography, and programming.
What is the RND button?
RND inserts randint(1,100), a pseudo-random integer from 1 to 100. Edit the bounds for any range, e.g. randint(1,6) simulates a die. Output is statistically random but not cryptographically secure.
Can I use my keyboard?
Yes. Type digits, +, -, *, /, (, ), and . directly. Enter evaluates, Backspace deletes the last character (CE), and Escape clears everything (AC).
How does the history panel work?
Every completed calculation is stored with its expression and result, up to the 10 most recent. Use Clear to reset it, and Ans to insert the last result into a new expression.
Why do I get an Error?
Error means the expression is invalid or mathematically undefined: division by zero, square root or log of a negative number (or log of zero), factorial of a negative number, or malformed syntax such as two operators in a row.
What does Infinity mean?
Infinity appears when a result overflows the representable range, e.g. dividing a nonzero number by zero. It signals unbounded growth rather than an ordinary number.
What is the difference between floor, ceil, and round?
floor rounds down (floor(3.7) = 3, floor(−3.7) = −4), ceil rounds up (ceil(3.2) = 4), and round goes to the nearest integer with .5 rounding up (round(3.5) = 4).
What is Euler's number (e)?
e ≈ 2.718281828459045 is the base of natural logarithms. The derivative of eˣ is eˣ, which is why e governs continuous growth, compound interest (A = Peʳᵗ), and the normal distribution.
What is pi (π)?
π ≈ 3.141592653589793 is the ratio of a circle's circumference to its diameter. Area = πr², circumference = 2πr, and 2π radians = 360°. Press the π key to insert it.
How do inverse trig functions work?
sin⁻¹, cos⁻¹, and tan⁻¹ return the angle for a given ratio: sin⁻¹(0.5) = 30° in Deg mode or π/6 in Rad mode. Outputs follow principal ranges: sin⁻¹ in [−90°,90°], cos⁻¹ in [0°,180°].
What does the ± (negate) button do?
± flips the sign of the trailing number, e.g. turning 5 into −5. It is the quick way to enter negative numbers mid-expression.
What is the difference between CE and AC?
CE deletes the last character for small corrections; AC clears the whole expression and result to start over.

Related Calculators

Explore more calculators related to this topic.

Related Guides

Deepen your understanding with these educational resources.

Glossary

Technical terms used in mortgage calculations explained in plain language.

Expression
A typed string of numbers, operators, functions, and parentheses that evaluates to one value.
PEMDAS
Precedence order: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction.
Radian
Angle unit with 2π per circle; the native unit of calculus and programming trig.
Degree
Angle unit with 360 per circle; standard for geometry and navigation.
Logarithm
The exponent a base needs to reach a value; ln uses e, log uses 10.
Factorial
n! = 1·2·…·n with 0! = 1; counts orderings of n distinct items.
Scientific notation
a×10ⁿ form with 1 ≤ |a| < 10 for extreme magnitudes.
Engineering notation
Scientific notation with exponents restricted to multiples of 3.
Memory register
A stored number manipulated by M+, M−, MR, and MC.
Ans
Shorthand inserting the most recent result into the next expression.

Authoritative References

Trusted sources and standards referenced by this calculator.

Applicable Standards

IEEE 754 double-precision floating-point arithmeticNIST DLMF function definitions for trig, log, and hyperbolic functions

Was This Calculator Helpful?

Page Information

Last Updated:

2026-08-07

Version:

2.0.0

License:

Free to use for educational and professional purposes.