Matrix Calculator

Perform matrix operations including addition, subtraction, multiplication, determinant, inverse, transpose, and more. Supports 2x2, 3x3, and custom size matrices with step-by-step solutions.

Matrix Calculator

Matrix Dimensions

×
×

Matrix Values

Matrix A

Matrix B

Matrix Operations Guide

Addition & Subtraction

Matrices must have the same dimensions. Add/subtract corresponding elements.

Multiplication

Number of columns in first matrix must equal number of rows in second matrix.

Determinant

Only defined for square matrices. Returns a scalar value.

Inverse

Only defined for square matrices with non-zero determinant.

Transpose

Swaps rows and columns. (Aᵀ)ᵢⱼ = Aⱼᵢ

Scalar Multiplication

Multiply each element by a scalar value: (kA)ᵢⱼ = k × Aᵢⱼ

Matrix Power

Only defined for square matrices. A⁰ = I, A¹ = A, Aⁿ = A × Aⁿ⁻¹

Supported Sizes

Up to 5×5 matrices. Determinant and inverse limited to 3×3.

How to use:

  • • Select the matrix operation you want to perform
  • • Set the dimensions of your matrices (up to 5×5)
  • • Enter the matrix values in the input grids
  • • Click "Calculate" to see the result and step-by-step solution
  • • Perfect for linear algebra, engineering, and data science
  • • All calculations are mathematically accurate and verified

Matrix Calculator FAQ