🔢

Matrix Calculator

Add, subtract, multiply, transpose, and find the determinant or inverse of a matrix.

Size: A: × B: ×
A
B

What is a matrix calculator?

A matrix calculator performs the core operations of linear algebra on grids of numbers. Matrices are used everywhere from computer graphics and engineering to statistics and machine learning, but the arithmetic quickly becomes tedious by hand. This tool lets you enter matrices of up to 5×5 and get results instantly in your browser.

Operations it supports

You can add and subtract two matrices of the same size, multiply two matrices when the columns of A match the rows of B, and transpose a matrix by swapping its rows and columns. For square matrices it also computes the determinant — a single number that reveals whether the matrix is invertible — and the inverse, using Gauss-Jordan elimination.

How to use this calculator

Pick an operation, set the size of matrix A (and B for two-matrix operations), then type the numbers into the grids. Press Calculate to see the result matrix, or the determinant value. Changing the size keeps any values you have already entered where possible.

Rules to keep in mind

Addition and subtraction require identical dimensions, and multiplication requires the inner dimensions to agree — an m×n matrix times an n×p matrix gives an m×p result. Determinant and inverse only exist for square matrices, and a matrix with a determinant of zero is singular and has no inverse.

Frequently Asked Questions

What is the Matrix Calculator?

Add, subtract, multiply, transpose, and find the determinant or inverse of a matrix. It runs instantly in your browser and is completely free.

Is the Matrix Calculator free and does it require signup?

Yes. Every calculator on Calculatis is 100% free with no registration, and the values you enter are never stored.

How accurate is the Matrix Calculator?

It uses standard, widely-accepted formulas. Results are reliable estimates for general use and are not a substitute for professional advice.