Guide: Matrix Calculator
Products
If A is m×n and B is n×p, A·B is m×p; entry (i, j) is the sum of products of row i of A with column j of B, and each sum is shown. Matrix multiplication is generally not commutative.
Inverse and determinant
Only square matrices with a non-zero determinant have inverses. For 2×2, A⁻¹ = (1/(ad − bc))·[d −b; −c a]; larger matrices are row-reduced from [A | I] to [I | A⁻¹] by Gauss–Jordan elimination.
Rank and systems
The rank is the number of non-zero rows after reduction to row echelon form. For A·x = b the augmented matrix [A | b] is reduced and the solution is classified as unique, none or infinite.
Worked examples
- 2×2 product: A · B — 2×2
- 3×3 inverse: A⁻¹ — inverse — 3×3
- Rank: rank(A) — rank — 3×3 rank = 2
- A·x = b: A·x = b — solve the system — 2×2
Frequently asked questions
When does a matrix have no inverse?
When its determinant is zero (a singular matrix) or when it is not square.
How are decimals handled?
They are converted to exact fractions (0.5 → 1/2) and all arithmetic is exact, so inverses have no rounding error.
What is the largest size?
Up to 6 rows and 6 columns, so the steps stay readable.
Related tools
Sources: OpenStax — College Algebra 2e, Systems of Equations and Matrices