Perform matrix operations on 2×2 and 3×3 matrices. Calculate determinant, inverse, transpose, addition, subtraction, and multiplication with step-by-step working shown.
A matrix calculator performs operations on matrices — rectangular arrays of numbers — including determinants, inverses, dot products, and cross products. Matrices are foundational in linear algebra, computer graphics, machine learning, physics simulations, and engineering analysis. Matrix operations that would be laborious by hand are computed instantly. Quadratic Equation Solver and Probability & Combinations Calculator provide related mathematical tools.
2×2 determinant: det(A) = ad − bc for [[a,b],[c,d]]
2×2 inverse: A⁻¹ = (1/det(A)) × [[d,−b],[−c,a]]
Dot product: a·b = Σ(aᵢ × bᵢ) (scalar result)
Cross product: a×b = [a₂b₃−a₃b₂, a₃b₁−a₁b₃, a₁b₂−a₂b₁] (3D vector result)
Determinant = 0 means the matrix is singular (no inverse exists) and the system of equations it represents has no unique solution. The dot product measures how parallel two vectors are (dot product = 0 means perpendicular). The cross product produces a vector perpendicular to both input vectors — used in physics for torque and normal vectors in 3D graphics.
Matrix calculations are exact for rational inputs; floating-point arithmetic may introduce small rounding errors for large matrices or ill-conditioned systems. This calculator is for educational purposes.
For a 2×2 matrix [[a,b],[c,d]], the determinant = ad − bc.
The inverse of [[a,b],[c,d]] = (1/det) × [[d,−b],[−c,a]], where det = ad − bc. The inverse only exists if det ≠ 0.
A zero determinant means the matrix is singular (non-invertible) — the system of equations it represents has no unique solution.
To multiply matrix A (m×n) by matrix B (n×p), each element [i][j] of the result = the dot product of row i of A and column j of B. The number of columns in A must equal the number of rows in B.
The transpose flips a matrix over its diagonal — rows become columns and columns become rows. Element [i][j] becomes [j][i].