What is Matrix Calculator?
Compute matrix operations directly in your browser: addition, subtraction, multiplication, transpose, determinant, inverse, and eigenvalues. Type values into the grid or paste comma-separated rows. Each result keeps full precision and shows the intermediate matrix so you can check work step by step.
Matrices can be resized up to 10x10 for binary operations and any square size for determinant, inverse, or eigenvalues. The engine uses mathjs under the hood, so eigenvalues come back as complex numbers when needed (formatted as a + bi). Singular matrices and dimension mismatches surface as a clear error instead of NaN soup.
How to use
- Enter matrix A by typing values into the grid or pasting comma-separated rows.
- Choose an operation (add, subtract, multiply, transpose, determinant, inverse) and enter matrix B if needed.
- Click Calculate to see the result matrix and copy or download the output.
When to use
- Checking linear algebra homework before submitting it.
- Solving systems of equations by computing the inverse of a coefficient matrix.
- Finding eigenvalues for stability analysis, PCA, or graph problems.
Result
A student enters a 3x3 matrix and computes its inverse to verify their linear algebra homework, getting both the result and the determinant value.
FAQ
- What is the largest matrix the calculator can handle?
- Up to 10x10 for binary operations like addition and multiplication, and any square size up to 10x10 for determinant, inverse, and eigenvalues. Larger sizes work but get slow because the eigenvalue routine is O(n cubed).
- Why does the inverse fail with a matrix-is-singular error?
- Only matrices with a non-zero determinant have an inverse. A determinant of zero means the rows are linearly dependent, so there is no unique inverse to compute. Compute the determinant first to confirm before trying inverse.
- How are complex eigenvalues displayed?
- As a + bi where a is the real part and b is the imaginary part. A 2x2 rotation matrix, for example, has eigenvalues like 0.7071 + 0.7071i. Pure real eigenvalues are shown as a plain number.
- Can I paste a matrix from a spreadsheet?
- Yes. Copy cells from Excel, Google Sheets, or a CSV, then paste into the grid. Comma-separated and tab-separated rows are both accepted, and the grid resizes to match the pasted shape automatically.
- Does the calculator round results?
- Integer results are shown exactly. Floating-point results are rounded to 6 decimal places for display but the underlying computation runs at full double precision, so chained operations do not accumulate display rounding.
Related Tools
Regression Calculator
Perform linear and polynomial regression analysis
Chi-Square Calculator
Perform chi-square statistical tests
Graphing Calculator
Plot mathematical functions on a graph
Area Calculator Map
Draw shapes on a map to calculate area
Z-Score Calculator
Calculate z-scores, percentiles, and probabilities
Number Base Converter
Convert between binary, octal, decimal, hex