Matrix Calculator

Add, subtract and multiply matrices, and find the determinant, inverse and transpose for 2×2, 3×3 and 4×4 grids. Enter the values and read exact results. A free matrix calculator that runs in your browser, with no sign-up.

  • Exact, step-by-step answers
  • 100% free
  • No sign-up, no app
  • Instant as you type
  • Works offline after first load
Matrix A
Matrix B
A × B
19
22
43
50

How to use it

  1. 1

    Choose the operation

    Pick add, subtract, multiply, determinant, inverse or transpose. The grids adjust to what the operation needs.

  2. 2

    Enter the values

    Fill in each cell. For two-matrix operations, the second grid sizes itself to keep the operation valid.

  3. 3

    Read the result

    See the resulting matrix or value, computed exactly, with a note when an operation is not possible.

When it comes in handy

Linear algebra homework

Multiply matrices or find a determinant and inverse, with exact values to check your own working against.

Solving systems

Use the inverse of a coefficient matrix as part of solving a system of linear equations.

Graphics and transforms

Combine transformation matrices by multiplying them, or read off a transpose, which comes up in geometry and graphics.

Instant, exact & 100% in your browser

The maths runs right here in your browser, with fractions and whole numbers kept exact rather than rounded along the way. Nothing you type is sent to a server, there is no sign-up and no limit, and once the page has loaded it keeps working even with no connection.

Frequently asked questions

How do you multiply two matrices?
Each entry of the result is the dot product of a row from the first matrix and a column from the second, so the first matrix must have as many columns as the second has rows. The calculator checks this and shows the product when the sizes match.
What is a determinant?
The determinant is a single number computed from a square matrix that tells you, among other things, whether the matrix can be inverted. A determinant of zero means there is no inverse. The calculator finds it for 2×2, 3×3 and 4×4 grids.
When does a matrix have no inverse?
A matrix has no inverse when its determinant is zero, which means its rows or columns are not independent. The calculator reports this case rather than returning a wrong answer, and otherwise shows the exact inverse.
Does this work offline and is anything sent to a server?
The calculation runs entirely in your browser, so nothing you type is sent anywhere, and once the page has loaded it keeps working with no connection. There is no sign-up and no limit on how many calculations you make.