Scientific Calculator
A free online scientific calculator with trigonometry, logarithms, powers, roots, factorials and mathematical constants. Type an expression, choose degrees or radians for trigonometric functions, and get a precise result. Everything runs in your browser — no signup, no ads.
Enter an expression
Enter an expression and press Calculate.
How the scientific calculator works
The calculator parses your expression into a small syntax tree and evaluates
it using standard operator precedence. Trigonometric functions interpret their
arguments in the angle unit you select (degrees by default). Logarithms accept
an optional base, so log(8,2) returns 3.
| Syntax | Meaning |
|---|---|
sin(x), cos(x), tan(x) | Trigonometric functions (respect angle unit) |
asin(x), acos(x), atan(x) | Inverse trigonometric functions (result in current angle unit) |
sinh(x), cosh(x), tanh(x) | Hyperbolic functions |
ln(x) | Natural logarithm (base e) |
log10(x) | Base-10 logarithm |
log2(x) | Base-2 logarithm |
log(x, b) | Logarithm of x in base b |
sqrt(x) | Square root |
cbrt(x) | Cube root |
abs(x) | Absolute value |
exp(x) | e raised to the power x |
n! or fact(n) | Factorial |
pi or π | 3.14159265358979… |
e | 2.71828182845904… |
^ | Power (right-associative) |
+ - * / | Arithmetic operators |
( ) | Grouping |
Worked examples
Example 1 — Trigonometry in degrees
Expression: sin(30) + cos(60)
With angle mode set to Degrees: sin(30) = 0.5
and cos(60) = 0.5.
Result: 1
Example 2 — Logarithms with custom base
Expression: log(8, 2) + log10(1000)
log(8,2) = 3 because 2³ = 8, and log10(1000) = 3
because 10³ = 1000.
Result: 6
Example 3 — Compound expression
Expression: 5! / (2^3 + sqrt(16))
5! = 120, 2^3 = 8, sqrt(16) = 4.
So the denominator is 12, giving 120 / 12 = 10.
Result: 10
Degrees vs radians — why it matters
Trigonometric functions are defined mathematically on radians, but many
day-to-day calculations (surveying, navigation, engineering drawings) use
degrees. The result of sin(30) is 0.5 in degree
mode, but -0.988… if you mistakenly evaluate 30 radians.
Always check the angle unit indicator before trusting a trig result.
To convert manually: 1 radian = 180/π ≈ 57.2958 degrees, and 1 degree = π/180 ≈ 0.0174533 radians. The degrees and radians converter handles this conversion precisely.
Related calculators
Frequently asked questions
Use the Angle unit toggle above the Calculate button. The setting applies to sin, cos, tan and their inverses. Other functions are unaffected.
Factorials work up to 170! — beyond that the result exceeds the maximum representable double-precision number (about 1.8 × 10³⁰⁸). The calculator will show a clear error if you exceed the limit.
No — this calculator works with real numbers only. Operations such as sqrt(-1) or ln(-5) return an error rather than a complex result.
Results use IEEE-754 double-precision floating-point arithmetic (about 15 significant decimal digits). You can choose to display 6, 10 or 15 decimal places. The underlying calculation always uses full precision regardless of the display setting.
Both pi and π work. Similarly, e returns Euler's number (2.718…). The constants are case-sensitive — use lowercase.