Calculato

Matrix Calculator

Add, subtract or multiply compatible matrices. Calculate determinants, inverses and transposes within the calculator’s size limits.

The interactive calculator loads with JavaScript enabled.

How to use this calculator

Choose matrix dimensions, enter each cell and select the operation. Use the result matrix to check an addition, subtraction, multiplication, transpose, determinant or inverse.

Match dimensions to the operation

Addition and subtraction require matrices with the same dimensions and operate cell by cell. Multiplication requires the number of columns in the first matrix to equal the number of rows in the second; each result cell is a row-column dot product. A transpose swaps rows and columns.

Determinants and inverses

A determinant and an inverse require a square matrix. A matrix with determinant zero is singular and has no inverse. Enter finite numbers and stay within the dimensions offered by the controls. Decimal arithmetic can introduce rounding error, particularly when a matrix is close to singular.

Example: a two-by-two determinant

For rows [1, 2] and [3, 4], the determinant is 1 × 4 − 2 × 3 = −2. Because it is nonzero, the matrix has an inverse.