Scientific Calculator

Full-featured scientific calculator with trigonometry, calculus, statistics, matrix and vector operations, financial functions, bitwise operations, and more. Supports direct expression typing and history.

Type expressions directly — e.g. sin(45), log(100), sqrt(2), derivative(x^3, x), mean([1,2,3])  [Syntax Help and Examples]
Arithmetic

2+3, 10/3, 2^8, 5!, abs(-7)

Trigonometry

sin(45), cos(60), tan(30), asin(0.5), sinh(1)

Logarithms

log(100), ln(e), log2(8)

Powers & Roots

sqrt(2), cbrt(27), nthRoot(16,4), 2^10

Constants

pi, e, i (imaginary unit)

Calculus

derivative(x^3+2x, x)
integral(x^2, x), integral(x^2, x, 0, 1)
sum(k^2, k, 1, 10), sum([1,2,3,4,5])
prod(k, k, 1, 5), prod([1,2,3,4,5])

Statistics

mean([1,2,3]), median([1,2,3]), std([1,2,3]), variance([1,2,3])
mode([1,2,2,3]), zscore(85,75,10)

Matrix

det([[1,2],[3,4]]), inv([[1,2],[3,4]]), transpose([[1,2],[3,4]])
eigs([[1,2],[3,4]])

Financial

NPV(0.1, [-1000,300,400,500]), IRR([-1000,300,400,500])
PMT(0.05/12, 360, 250000), PV(0.05/12, 360, -1342)
FV(0.07/12, 120, -250, -10000)

Bitwise

0xFF AND 0x0F, a OR b, a XOR b, NOT 0xFF
1 << 8, 256 >> 4, 17 MOD 5

Utility

gcd(12,18), lcm(4,6), floor(3.7), ceil(3.2), round(3.456,2)
nCr(10,3), nPr(10,3)

Vectors

[1,2,3] + [4,5,6], [1,2,3] - [4,5,6]
dot([1,2,3], [4,5,6]), cross([1,0,0], [0,1,0])
norm([3,4]), 3 * [1,2,3]

History

Scientific Calculator Help

How to Use

Start typing an expression directly into the display, you don't need to click buttons first. The calculator auto-focuses on page load so you can begin calculating immediately. Press Enter or = to evaluate. You can also click the on-screen buttons to build expressions.

Click [Syntax Help and Examples] below the display to expand a quick reference of all supported functions and syntax.

Keyboard Shortcuts
KeyAction
Enter or =Evaluate expression
BackspaceDelete last character
EscapeClear all (AC)
^Exponent
!Factorial
pInsert π (pi)
eInsert Euler's number e
sInsert sin(
cInsert cos(
tInsert tan(
Ctrl+ZUndo last edit
Ctrl+CCopy result to clipboard
Ctrl+VPaste expression from clipboard
/ Cycle through calculation history
Ctrl+ClickClick history item to insert expression instead of result

The s, c, and t shortcuts only work when the expression is blank. The p and e shortcuts work at the start of input or after an operator or digit.

Mode Bar
  • DEG / RAD: Switches between degree and radian mode for trigonometric functions. Default is DEG.

  • DEC / HEX / BIN / OCT: Changes the display base for results. Integers are shown with the appropriate prefix (0x, 0b, 0o). Fractional parts are noted as truncated.

  • 2nd: Toggles alternate functions: x² → x³, √x → ³√x, log → log2, Σ → Π, 10ˣ → 2ˣ, det → dot, inv → cross, transpose → norm.

  • INV: Toggles inverse trigonometry: sin → asin, cos → acos, tan → atan.

  • HYP: Toggles hyperbolic variants: sin → sinh, cos → cosh, tan → tanh.

  • INV + HYP combined gives asinh, acosh, atanh.

Supported Features
  • Trigonometry: sin, cos, tan and their inverses (asin, acos, atan) and hyperbolic variants (sinh, cosh, tanh). Switch between degree and radian modes.

  • Logarithms: Natural logarithm (log/ln), base-10 logarithm (log10), and base-2 logarithm (log2).

  • Powers & Roots: Squares, cubes, arbitrary powers, square root, cube root, and nth root.

  • Calculus: Symbolic derivatives derivative(x^3, x), integrals integral(x^2, x), definite integrals integral(x^2, x, 0, 1), and summation sum(k^2, k, 1, 10).

  • Statistics: Mean, median, mode, standard deviation, variance, z-scores, quartiles, and combinatorics (nCr, nPr).

  • Matrix Operations: Determinant, inverse, transpose, eigenvalues, and rank for matrices up to 4×4. Enter matrices as [[1,2],[3,4]].

  • Vector Operations: Addition, subtraction, dot product dot, cross product cross, magnitude norm, and scalar multiplication. Enter vectors as [1,2,3].

  • Financial: Net Present Value (NPV), Internal Rate of Return IRR, Payment PMT, Present Value PV, and Future Value FV.

  • Programmer: Bitwise AND, OR, XOR, NOT, left/right shift, and modulo. Supports HEX, BIN, OCT display modes.

  • Complex Numbers: Full support for complex arithmetic using the imaginary unit i. Example: (2+3i) * (4-i).

Calculation History

Your calculation history is saved automatically in your browser's local storage (localStorage) and persists across page reloads and browser restarts. Up to 50 entries are stored, and the oldest are removed when the limit is reached. All data stays on your device, nothing is sent to any server.

  • Click any history entry to insert its result into the current expression. Ctrl+Click inserts the expression instead of the result.

  • Use ↑ / ↓ arrow keys to cycle through past expressions (like a terminal).

  • Export: Copies all history to your clipboard as text.

  • Clear: Permanently deletes all saved history from your browser.

Memory Register

A single memory register is available via the M+, M−, MR, and MC buttons. The memory register is not saved across page reloads.

  • M+: Adds the current result to memory.

  • M−: Subtracts the current result from memory.

  • MR: Recalls the memory value into the expression.

  • MC: Clears the memory register to zero.

Related Tools