🔢 Matrix Calculator

Perform matrix operations: addition, subtraction, multiplication, and transpose. Step-by-step solutions included.

Matrix A
Matrix B
Matrix A

×

Matrix B
Matrix A
Matrix Operation Rules
Addition & Subtraction

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

C[i][j] = A[i][j] ± B[i][j]

Multiplication

Columns of A must equal rows of B. Result has rows of A and columns of B.

C[i][j] = Σ(A[i][k] × B[k][j])

Transpose

Swap rows and columns. A[i][j] becomes A[j][i].