Skip to content

Scientific Calculator

Runs 100% in your browser — nothing is uploaded, nothing is stored.

Trigonometry, logs, powers and factorials. Everything computes locally — no data sent.

0

How this scientific calculator works

Unlike a basic calculator, this one parses a full mathematical expression you type — operators, parentheses, functions and powers — and evaluates it in the correct order. It uses a small built-in parser rather than JavaScript’s eval, which keeps it safe and predictable. Supported functions include sin, cos, tan, log (base 10), ln (natural log), sqrt, exp and abs, plus constants pi and e.

Trigonometry is computed in whatever mode you select. Powers use the ^ symbol, and factorials use !, so 5! returns 120.

Common uses

  • Schoolwork — algebra, geometry and pre-calculus without a physical calculator.
  • Engineering — quick checks of formulas involving powers and roots.
  • Science labs — logarithms and exponential growth or decay.
  • Everyday math — anything beyond add, subtract, multiply, divide.

Frequently asked questions

In what unit are trig functions calculated?
You choose degrees or radians with the mode toggle; the wrong mode is the most common source of “wrong” answers.

What is the order of operations?
Standard math precedence applies: parentheses first, then powers and factorials, then multiplication and division, then addition and subtraction.

Can I use parentheses freely?
Yes. Nest them as deeply as you need; the parser matches them from the inside out.

Why not just use a phone calculator?
Most phone calculators can’t handle typed expressions with functions and nested parentheses, which this one does.

What happens if I make a typo?
The parser reports an error rather than guessing, so an unbalanced parenthesis or an unknown function name is flagged instead of silently returning a wrong answer.

What is the difference between log and ln?
log is base 10 (the common logarithm) while ln is base e (the natural logarithm). They are related by a constant factor, but textbooks and calculators use each for different problems, so pick the one your work expects.

Functions and what they expect

Function Meaning Watch out for
sin, cos, tanTrigonometric ratiosDegrees or radians must be set correctly
asin, acos, atanInverse trigonometricResult returned in the current mode
logBase 10 logarithmUndefined at zero and below
lnNatural logarithm, base eUndefined at zero and below
xyPowerNegative base with fractional exponent is complex
√Square rootNegative input is not a real number
n!FactorialGrows extremely fast; overflows quickly
e, πConstantsInserted at full precision

More questions, answered

How do I switch between degrees and radians?
Use the DEG/RAD toggle. This is the most common source of wrong trigonometric answers: sin(30) is 0.5 in degrees and about −0.988 in radians.
Why can I not take the log of a negative number?
Because no power of ten produces a negative result. Logarithms are only defined for positive inputs, so the calculator reports an error rather than returning a meaningless number.
What does an overflow error mean?
The result exceeded the largest number the calculator can represent. Factorials above about 170! will do this, because the value grows faster than floating point precision allows.
Does this use degrees or radians by default?
Degrees, because that is what most everyday use expects. Switch to radians for calculus and physics work, where radians are the natural unit.
How many significant figures should I keep?
Match the precision of your input. Carrying ten decimals from a measurement accurate to two is false precision, and it makes a result harder to read, not better.
Why does 0.1 + 0.2 not give exactly 0.3?
Because binary floating point cannot represent those decimals exactly. The calculator rounds the display, but the underlying value is very slightly off. Every digital calculator has this property.
Can I reuse a previous result?
Yes. The answer carries forward so you can chain operations without retyping, and the history shows the steps you have taken.

Related tools

Scroll to Top