Matrix A ×
Matrix B ×
Result

How matrix multiplication works

Each entry of A × B is the dot product of a row of A with a column of B: multiply matching entries and add them up.

[1 2] [5 6] [1·5+2·7 1·6+2·8] [19 22]
[3 4] × [7 8] = [3·5+4·7 3·6+4·8] = [43 50]

Determinant and inverse of a 2 × 2 matrix

A = [a b; c d]
det(A) = ad − bc
A⁻¹ = (1 ÷ det) × [d −b; −c a]

For larger matrices the calculator uses row reduction (Gaussian elimination with partial pivoting), which is fast and numerically stable.

Where matrices are used

  • Systems of equations: solve several equations at once. The RREF calculator shows each row step.
  • Computer graphics: every rotation, scale and 3D projection is a matrix multiplication.
  • Data and AI: spreadsheets of numbers, images and neural networks are all stored and processed as matrices.

Last reviewed October 2026.

Frequently asked questions

What operations does this matrix calculator do?

It adds, subtracts and multiplies two matrices, and finds the determinant, inverse, transpose and power of a single matrix. Matrices up to 6 × 6 are supported.

When can two matrices be multiplied?

A × B works only when the number of columns in A equals the number of rows in B. A 2 × 3 matrix times a 3 × 4 matrix gives a 2 × 4 result. Matrix multiplication is not commutative, so A × B usually differs from B × A.

When does a matrix have an inverse?

Only square matrices with a nonzero determinant have an inverse. If the determinant is 0, the matrix is called singular and cannot be inverted.

Can I enter fractions?

Yes. Type values like 1/3 or −2/5 in any cell. Empty cells count as 0. Results are shown as decimals rounded to 6 places.

What is the transpose of a matrix?

The transpose flips a matrix over its diagonal, turning rows into columns. The transpose of a 2 × 3 matrix is 3 × 2.