Matrix Calculator
Add, subtract, and multiply 2×2 or 3×3 matrices, or transpose, find the determinant, and invert a single matrix. Calculates in your browser.
Result
Show the math
Matrices add element-wise, multiply row-by-column, and invert via Gauss–Jordan elimination:
(AB)ᵢⱼ = Σₖ Aᵢₖ Bₖⱼ · A⁻¹A = I
A matrix only has an inverse when its determinant is non-zero. All math runs in your browser.
What this does
A matrix calculator adds, subtracts, and multiplies 2×2 or 3×3 matrices, or transposes, finds the determinant, and inverts a single matrix.
How to use it
- Choose the matrix size.
- Enter the matrix values.
- Pick the operation.
- Read the resulting matrix or value.
How it works
Two-matrix operations need compatible sizes; single-matrix operations give transpose, determinant, and inverse. A matrix is invertible only when its determinant is non-zero.
Understanding your result
The determinant is the value to check first, because a matrix is invertible only when it is non-zero; a zero determinant means the matrix is singular and has no inverse, which usually signals a system with no unique solution. Remember multiplication is not commutative (A times B differs from B times A) and needs compatible dimensions, unlike addition.
Example
A 2×2 with determinant 0 is singular and has no inverse.
Sources & methodology
Last updated .
Frequently asked questions
What operations are supported?
Addition, subtraction, and multiplication of two matrices, plus transpose, determinant, and inverse of a single matrix, for 2×2 and 3×3 sizes.
Why can a matrix have no inverse?
A matrix is invertible only when its determinant is non-zero; a zero determinant means it is singular and cannot be inverted.
Is my data stored?
No. Everything is calculated locally in your browser.
Related tools
Permutation & Combination Calculator
Calculate permutations (nPr) and combinations (nCr) for choosing r items from n, with the factorial behind each. Calculates in your browser.
Z-Score Calculator
Find the z-score (standard score) of a value — how many standard deviations it sits above or below the mean. Calculates in your browser.
Confidence Interval Calculator
Find the confidence interval for a mean from the sample mean, standard deviation, sample size, and confidence level. Calculates in your browser.
Sample Size Calculator
Find the sample size needed to estimate a proportion to within a margin of error at a chosen confidence level, with a population correction. Calculates in your browser.