Scientific Calculator: Matrix, Complex, Solver & Calculus

Scientific Calculator

Type a whole expression, or tap the keys

DEG NORM M
0
Inserts logb(base, x) — e.g. logb(5, 125) = 3. Any base works, not just 10 or e.

More calculators

Pick one and it opens right here. The calculator above stays where it is, so nothing is lost while you use these.

Stored formula

Write a formula using letters as variables, for example A^2 + B. Store it once, then change only the numbers instead of retyping the whole thing. A letter you define wins over a constant with the same letter, so avoid e, c and g unless you mean to replace them.

Complex numbers

Angles here follow the DEG / RAD / GRAD setting above.

Matrix & vector

For vectors set the size to rows x 1 — the first column is used. Cross product needs 3 rows.

Equation solver

Fill in the number in front of each power, highest first. Complex roots are shown as a plus or minus bi.

Statistics

Derivative & integral

Both answers are worked out numerically rather than by algebra, so read the leading digits and not the last few. Sharp corners or breaks in the range will give misleading answers.

Binary / octal / hex converter

Whole numbers only. Division rounds down, the way integer division does.

This covers everyday conversion and whole-number arithmetic. For bitwise operations, two's complement and IEEE 754 breakdowns, the separate Number Base Converter tool goes further.

Random number

Last results

Constants

Tap one to drop it into the calculator.

History

Click any entry to reuse it. Session only — nothing is stored.

No calculations yet.

Expressions are evaluated with standard precedence: powers first and right-associative, so two to the power three to the power two is five hundred and twelve, then multiplication and division left to right, then addition and subtraction. A leading minus binds less tightly than a power, so minus two squared is minus four rather than four — the same convention mathematics and most scientific calculators use, and a common source of disagreement with simpler calculators. Trigonometric functions follow the selected angle mode, so check the badge on the display before trusting a result; a sine of thirty means something quite different in radians. Calculations use double-precision floating point, which is why very long decimal chains can show a tiny residue and why factorials stop being exact above about twenty and overflow past a hundred and seventy. The matrix, complex, solver, statistics and calculus tools are numerical rather than symbolic: roots are found by iteration and may miss solutions far from the guess or return only one of several, an inverse of a nearly singular matrix amplifies rounding error badly, and numerical differentiation and integration lose accuracy near discontinuities, sharp corners and poles. History and memory live only in this browser session and are not saved anywhere.


Scientific Calculator: Expressions, Trigonometry, Matrix, Complex Numbers, Solver, Statistics and Calculus

Most browser calculators quietly run your input through JavaScript’s own eval() function, which is fine until it isn’t, since that same function can be tricked into running things it shouldn’t and it also handles operator precedence in ways that don’t always match what a real scientific calculator should do. This scientific calculator online was built the other way round, a proper tokenizer reads your expression and a hand-written parser evaluates it with the actual mathematical rules, powers first and right-to-left, so two to the power three to the power two correctly comes out to five hundred and twelve, not sixty-four, then multiplication and division, then addition and subtraction, exactly the way your written formula reads. Beyond the everyday keypad, five advanced modes sit in a plain dropdown right underneath the calculator itself, a matrix calculator and vector operations, a complex number calculator in both rectangular and polar form, an equation and polynomial solver, statistics with regression, and numerical calculus. Nothing here needs a separate site or a page reload and on a phone the keypad and display stay pinned in place while you work, they never scroll off or vanish mid-calculation.


How to Use

Step 1: Set your angle mode first
  • Before doing any trigonometry, check the DEG / RAD / GRAD badge on the display and tap to switch if needed. This one setting changes what sin, cos, and tan actually mean, a sine of thirty means something completely different in radians then in degrees, and it’s the single most common source of a “wrong” answer on any scientific calculator, not just this one.
Step 2: Type or tap your expression
  • Use the on-screen keypad, or just type directly on your keyboard, full keyboard input works throughout. Enter your expression the way it’s actually written, 2^3^2, sin(30), sqrt(2)+log(100), whatever the problem gives you, and press = or Enter to evaluate.
  • Use parentheses freely whenever your unsure how something will be grouped, the parser follows standard precedence correctly, but parentheses never hurt and they make your own intent clear too.
  • For a custom log base, other then base 10 or natural log, there’s a dedicated log-base input, type your base and your value and it works out log base anything for you.
  • Use nth root, factorial and reciprocal the same way, tap the key or type the function name directly.
Step 3: Use memory for multi-step work
  • Tap M+ to add the current result to memory, M− to subtract it, MR to recall whatever’s stored and MC to clear it out. Handy for anything where you need to build up a running total across several separate calculations.
Step 4: Check your history
  • Your last several results stay visible side by side in the session history, so you can compare a couple of answers without having to redo the earlier one. This resets when you leave the page though, nothing here is saved permanently.
Step 5: Open an advanced mode, if you need one
  • Scroll down to the plain dropdown menu underneath the main calculator and pick whichever mode you need: Complex numbers, Matrix & vector, Equation solver, Statistics or Derivative & integral. The extra tool opens right there in place, nothing pops up in a new window or takes you to a different page.
Using Complex numbers mode
  • Pick your entry form, rectangular (a + bi) or polar (r∠θ).
  • Pick your operation from the dropdown, add, subtract, multiply, divide and more.
  • Enter your values and calculate, results include modulus and argument alongside the plain answer.
Using Matrix & vector mode
  • Pick your operation: addition, multiplication, determinant, inverse, or transpose for matrices up to four by four or dot product, cross product, and magnitude for vectors.
  • Fill in your matrix or vector values in the grid that appears and calculate. Remember matrix multiplication is order-sensitive, A times B isn’t the same as B times A, so enter them in the order your actual problem states.
Using Equation solver mode
  • Choose what your solving: a numeric root near a guess value, polynomial roots up to the fourth degree, or simultaneous linear equations in two or three unknowns.
  • For polynomial roots, fill in the coefficient in front of each power, highest power first, complex roots show up as a plus or minus bi automatically where they occur.
  • Enter your values and calculate.
Using Statistics mode
  • Enter your data set, and get mean, standard deviation and other descriptive statistics together, plus linear regression if you’ve got paired x-y data.
Using Derivative & integral mode
  • Type any expression in x, pick the point (for a derivative) or the range (for an integral) and calculate. The derivative uses a five-point numerical method and the integral uses Simpson’s rule, both are numerical approximations, not symbolic calculus.
Step 6: Use the constant library
  • Search the built-in, categorised constant library for anything you need, π, e, Avogadro’s number and plenty more and insert it straight into your expression.
Step 7: Try random numbers or export
  • Use the built-in random number generator if your problem needs one.
  • Use Print / PDF for a clean printable copy or Copy to paste your result elsewhere.

Key Features

  • Purpose-written expression parser, no eval(), keeping evaluation predictable, correct and safe, rather then handing your input straight to the browser’s own JavaScript engine
  • Correct operator precedence, right-associative powers, proper unary-minus binding and everything else matching how a real scientific calculator and mathematics itself, actually works
  • DEG / RAD / GRAD angle modes from one switch, applied consistently across every trig function and it’s inverse
  • Arbitrary log base, not just base 10 and natural log
  • Five advanced modes in one place: Complex numbers (rectangular and polar), Matrix & vector (up to 4×4, plus dot/cross product), Equation solver (numeric, polynomial to 4th degree, simultaneous linear systems), Statistics with regression, and numerical Derivative & integral
  • Mobile-first, pinned layout, the keypad and display stay fixed on screen while you work, nothing scrolls away or has to be hunted for
  • Session history, memory keys and a searchable constant library, plus full keyboard input support throughout

Formula / Logic Used

Operator Precedence

Powers first, right-associative: 2^3^2 = 2^(3^2) = 2^9 = 512, not (2^3)^2 = 64
Then multiplication and division, left to right
Then addition and subtraction, left to right
Unary minus binds looser than power: -2^2 = -(2^2) = -4, not (-2)^2 = 4

Angle Mode Conversion

Degrees=Radians×180π,Gradians=Radians×200πDegrees = Radians \times \frac{180}{\pi}, \qquad Gradians = Radians \times \frac{200}{\pi}

Custom Log Base

log⁡b(x)=ln⁡xln⁡b\log_b(x) = \frac{\ln x}{\ln b}

Polynomial Roots

Solved numerically using the Durand-Kerner method, which finds all roots of a polynomial, including complex ones, simultaneously through iterative refinement.

Simultaneous Linear Equations

Solved using Gaussian elimination with partial pivoting, for genuinely stable results even when the system is close to ill-conditioned.

Numerical Derivative

f′(x)≈−f(x+2h)+8f(x+h)−8f(x−h)+f(x−2h)12hf'(x) \approx \frac{-f(x+2h) + 8f(x+h) – 8f(x-h) + f(x-2h)}{12h}

A five-point central difference formula, noticeably more accurate then a plain two-point estimate.

Numerical Integral

Solved using Simpson’s rule, approximating the area under the curve with parabolic segments rather then straight lines, for better accuracy then a simple trapezoidal method.

Engineering Notation

Results can display in normal, scientific or engineering notation, where the exponent is always kept a multiple of three, matching the usual k, M, µ style unit prefixes engineers actually use.


Who Should Use This Tool

Students and engineers who need trigonometry, logarithms, matrix and complex number work, equation solving, statistics or basic numerical calculus without switching between five different single-purpose calculator sites. Also useful for anyone who wants a mobile-friendly calculator that doesn’t scroll it’s own keypad off screen mid-calculation.


Frequently Asked Questions (FAQs)

1. Why does this calculator use a custom parser instead of JavaScript’s eval() function?

Handing raw text straight to eval() can be tricked into running code it was never meant to run, a real security risk and it also don’t always apply mathematical operator precedence the way a proper scientific calculator should. This tool’s own tokenizer and parser evaluate your expression safely and correctly instead.

2. Why does 2^3^2 equal 512 and not 64?

Exponentiation is right-associative, meaning it groups from the right, so 2^3^2 actually means 2^(3^2), which is 2^9 = 512, not (2^3)^2 = 64. This is the standard mathematical convention and this tool follows it correctly, which can look surprising if your used to a simpler calculator that gets this wrong.

3. Why did my trigonometry answer come out completely different from what I expected?

Almost always because the angle mode, degrees, radians, or gradians, wasn’t set to what your problem actually intended, a sine of thirty means something entirely different across the three modes. Always check the DEG/RAD/GRAD badge on the display before trusting any trig result.

4. Are the matrix, complex number, solver, statistics and calculus modes exact or approximate?

They’re numerical, not symbolic, roots are found through iteration and might miss a solution far from your starting guess, matrix inversion of a nearly-singular matrix can amplify rounding error badly and numerical differentiation and integration lose accuracy near sharp corners, discontinuities or poles. For most everyday engineering and coursework use these results are plenty accurate, but they’re not the same as a symbolic computer algebra system.

5. Is my calculation history or memory saved if I close the page?

No, both history and the M+/M−/MR/MC memory live only in your current browser session and are not saved anywhere, reload the page or close the tab and they’re gone. If you need to keep a result, use the copy or print/PDF option before you navigate away.


Related Tools

Scroll to Top