Matrix Calculator

Perform addition, subtraction, multiplication, transpose, determinant, and inverse for 2×2 and 3×3 matrices. Inputs are validated and pre-filled, and results are displayed in a clean, formatted matrix layout.

Matrix Operations Explained

Addition & Subtraction

Cᵢⱼ = Aᵢⱼ ± Bᵢⱼ

Multiplication

Cᵢⱼ = Σ (Aᵢₖ × Bₖⱼ)

Transpose

Aᵀ = swap rows ↔ columns

Determinant 2×2

|A| = ad − bc

Determinant 3×3

|A| = a(ei − fh) − b(di − fg) + c(dh − eg)
        

Inverse

A matrix is invertible only if det(A) ≠ 0.

Frequently Asked Questions

If det(A) = 0, the matrix is singular and cannot be inverted.
No. In general, A×B ≠ B×A.
Yes, integers, decimals, and negative values are supported.