Adding two 2×2 matrices
[[1, 2], [3, 4]] + [[5, 6], [7, 8]] = [[6, 8], [10, 12]].
Result
Fill in the fields to see your result.
Addition and subtraction combine matrices of the same shape entry by entry. Multiplication is different: each entry of the result is a sum of products between a row of A and a column of B, which is why the inner dimensions have to match (A's columns = B's rows) even when the outer shape does not.
The determinant and inverse only make sense for a square matrix. The determinant is computed by cofactor expansion, which generalizes the familiar 2×2 shortcut (ad − bc) to any size. The inverse exists only when the determinant is nonzero — a zero determinant means the matrix collapses information (its rows or columns are not truly independent), which cannot be undone.
det = ad − bc, for matrix [[a, b], [c, d]]
A⁻¹ = adj(A) ÷ det(A)
[[1, 2], [3, 4]] + [[5, 6], [7, 8]] = [[6, 8], [10, 12]].
The determinant of [[1, 2], [3, 4]] is 1×4 − 2×3 = −2.
One row per line, with the values in that row separated by commas or spaces — for example, a 2×3 matrix is two lines, each with three numbers.
Each result entry sums products of a full row of A against a full column of B, so A's row length must match B's column length — if they don't line up, the sum simply cannot be formed.
It means the matrix is singular: its rows (or columns) are linearly dependent, so it cannot be inverted, and the linear system it represents does not have a single unique solution.
No — that operation exists (called the Hadamard product) but is different and much less common; standard matrix multiplication is the row-by-column sum-of-products described above, and this calculator uses that standard definition.
Updated