Matrix Calculator

MATRIX LINEAR ALGEBRA MATHEMATICS
Share:

Compute the determinant, inverse, transpose, rank and eigenvalues of a 2×2 or 3×3 matrix, and add, subtract or multiply two matrices. Free, runs in your browser.

RT-MAT-023 · Mathematics

Matrix Calculator

Advertisement
After tool · AD-W1Responsive · Post-tool

How to Use the Matrix Calculator

Pick a size

Choose 2×2 or 3×3. The input grids for matrices A and B resize to match, pre-filled with an example you can overwrite.

Enter your numbers

Type a value into each cell. Decimals and negatives are fine; blank cells are read as zero. Results update the moment you type.

Read A's properties

The calculator shows the determinant, trace, rank and eigenvalues of A, along with its transpose and inverse — or a note if A is singular and has no inverse.

Combine with B

It also shows A + B, A − B and the matrix product A × B, so you can check arithmetic between the two matrices at a glance.

Advertisement
After how-to · AD-W2Responsive

Matrices: The Language of Linear Algebra

More Than a Grid of Numbers

A matrix is a rectangular array of numbers, but its real meaning is as a transformation: a rule that takes vectors and stretches, rotates, shears, or projects them. Multiplying a vector by a matrix moves it to a new place, and multiplying two matrices composes their transformations into one. This single idea — that a grid of numbers encodes a geometric operation — is what makes linear algebra the backbone of computer graphics, machine learning, physics, engineering, economics, and statistics. This calculator works with the two sizes you meet most often, 2×2 and 3×3, and computes the quantities that describe what a matrix does. The determinant tells you how much the transformation scales areas or volumes, and whether it flips orientation; a determinant of zero means the matrix squashes space into a lower dimension and cannot be undone. The trace, the sum of the diagonal, and the rank, the number of independent directions the matrix actually uses, round out the picture, and the inverse — when it exists — is the transformation that exactly reverses A.

The most revealing numbers a matrix carries are its eigenvalues. An eigenvalue is a special scaling factor: a direction the matrix merely stretches without rotating, and the eigenvalue is how much it stretches by along that direction. Eigenvalues explain the long-term behaviour of dynamic systems, the natural frequencies at which a structure vibrates, the principal axes of a dataset in statistics, and the stability of everything from ecosystems to control systems. The page Rank, PageRank, that once organised the web is an eigenvalue computation; so is the way a recommendation engine finds hidden structure in your preferences. This calculator finds the eigenvalues exactly where it can — solving the characteristic quadratic for a 2×2 matrix and the characteristic cubic for a 3×3 — and reports complex eigenvalues honestly when a transformation includes a rotation, since a pure rotation has no real direction it leaves fixed. Everything is computed in your browser with a small, deterministic engine; nothing is uploaded.

"A matrix is a verb, not a noun — it does something to space. Its determinant measures how it scales, and its eigenvalues reveal the directions it leaves pointing the same way."

Where Matrices Show Up

Matrices are everywhere once you start looking. Every rotation, scaling and translation in a video game or 3D model is a matrix multiplication, applied millions of times a second by the graphics hardware. Solving a system of linear equations — balancing a chemical reaction, fitting a line to data, distributing current through a circuit — is matrix algebra, and the inverse this calculator computes is precisely the tool that solves such systems. In machine learning, the weights of a neural network are matrices, and training is a long sequence of matrix operations; in statistics, the covariance matrix and its eigenvalues drive principal component analysis, the standard technique for finding the most important patterns in high-dimensional data. Even Google's original search ranking, Markov chains modelling weather or web traffic, and the quantum states of physics are all expressed as matrices and their eigenvalues. Whether you are studying linear algebra, checking homework, or just want to see the determinant, inverse and eigenvalues of a matrix at a glance, this calculator gives you the full picture instantly and privately.

10 Facts About Matrices

01

A matrix is best read as a transformation of space, not just a grid.

02

The determinant measures how a matrix scales area or volume.

03

A zero determinant means the matrix is singular and has no inverse.

04

Eigenvalues are the scaling factors along directions a matrix doesn't rotate.

05

A pure rotation has complex eigenvalues — no real fixed direction.

06

Matrix multiplication is not commutative: A×B ≠ B×A in general.

07

The trace equals the sum of the eigenvalues.

08

3D graphics apply matrix multiplications millions of times per second.

09

Google's PageRank is, at heart, an eigenvalue computation.

10

This calculator runs in your browser — nothing is uploaded.

Frequently Asked Questions

  • It works with 2×2 and 3×3 square matrices — the two sizes that cover the great majority of hand calculations and coursework. Choose the size at the top and the input grids for both A and B resize to match.
  • The determinant measures how much the matrix scales area (in 2D) or volume (in 3D), and its sign tells you whether the transformation flips orientation. A determinant of zero means the matrix collapses space into a lower dimension — it is singular and has no inverse.
  • An eigenvalue is a special scaling factor: along certain directions, a matrix only stretches a vector without changing its direction, and the eigenvalue is how much it stretches by. Eigenvalues reveal a matrix's deepest behaviour and appear throughout physics, statistics and machine learning.
  • When a transformation includes a rotation, there is no real direction it leaves pointing the same way, so its eigenvalues come out as complex numbers (a pair of conjugates). This is correct and meaningful — the imaginary part encodes the rotation. The calculator reports them honestly rather than hiding them.
  • A matrix has no inverse exactly when its determinant is zero — it is then called singular. Geometrically it squashes space into a lower dimension, losing information that cannot be recovered, so no reversing transformation exists. The calculator shows a clear note in that case.
  • Usually not. Matrix multiplication is not commutative: the order matters, because applying transformation A then B is generally different from B then A. The calculator shows A × B; swap the values in the two grids if you want B × A.
  • The rank is the number of independent directions the matrix actually uses — the dimension of its output space. A full-rank matrix preserves dimension and is invertible; a lower rank means rows or columns are redundant and the matrix is singular.
  • No. Every calculation runs in your browser with a small built-in engine — nothing is uploaded to a server or third-party library, and the tool works offline once the page has loaded.
  • Yes. Each cell accepts decimals and negatives, and any blank cell is treated as zero. The results recalculate instantly as you type.
  • Completely free, with no account, sign-up, or usage limit. It runs entirely in your browser and collects no data. Use it as much as you like.

Related News

You may be interested in these recent stories from our newsroom.

No related news yet for this tool. Our editorial team publishes new pieces every week.

Browse all news →
Advertisement
Pre-footer · AD-W3 728 × 90

75 more free tools

Calculators, converters, security tools — no signup.