Matrix Calculator
A matrix calculator performs fundamental linear algebra operations on two-dimensional arrays of numbers, specifically supporting two-by-two and three-by-three matrices. The tool calculates matrix addition, subtraction, scalar multiplication, matrix multiplication, determinants, transposes, and matrix inverses. Linear algebra students, engineers, and computer graphics programmers use this utility to verify matrix arithmetic, solve transformation matrices, and check computational models without performing tedious manual row and column operations.
Pick a size (2×2 or 3×3) and an operation. Enter your matrices and the calculator returns the result. Determinant and inverse run on Matrix A alone; addition, subtraction, and multiplication use both A and B.
Quick Answer
Perform matrix arithmetic and calculations. Enter your matrix values to compute determinants, transposes, inverses, and products.
Matrix size
Operation
Matrix A
Matrix B
This page handles operations between matrices. To solve a system of equations or compute reduced row echelon form, use the system of equations or RREF calculator instead.
Result A × B
0 0 | 0 0
Inverse exists only when det(A) ≠ 0. The 3×3 inverse uses the adjugate method (cofactors transposed, divided by the determinant).
Examples
[[1,2],[3,4]] + [[5,6],[7,8]]
[[6,8],[10,12]]
[[1,2],[3,4]] × [[2,0],[1,2]]
[[4,4],[10,8]]
det([[1,2],[3,4]])
= −2
inv([[2,0],[0,2]])
[[0.5,0],[0,0.5]]
How it works
Matrix operations are well-defined arithmetic on rectangular arrays of numbers. The calculator applies the standard element-wise rules for addition, subtraction, and scalar multiplication, and the row-by-column rule for matrix multiplication.
Multiplication · (AB)ᵢⱼ = Σₖ Aᵢₖ Bₖⱼ
2×2 determinant · det = ad − bc
2×2 inverse · A⁻¹ = (1/det)·[[d,−b],[−c,a]]
Related linear algebra calculators
- RREF calculator for reduced row echelon form on 2×2, 2×3, 3×3, or 3×4 matrices.
- System of equations calculator for solving Ax = b directly using Cramer's rule.
- Eigenvalue calculator for the eigenvalues of a 2×2 matrix from trace and determinant.
- Vector calculator for dot product, cross product, magnitude, and angle between vectors.
- Linear regression calculator for the best-fit line through data, which uses matrix arithmetic under the hood.
- All education calculators.
Related Calculators
More tools from Education



