Matrix Calculator

Perform matrix operations including addition, subtraction, multiplication, determinant, inverse, and more

Matrix A
Matrix B

Matrix A

Matrix B

Matrix

Matrix

Matrix

How to Use the Matrix Calculator

1. Select Operation

Choose the type of matrix operation you want to perform from the tabs above.

2. Enter Matrix Values

Input the values for your matrix/matrices. You can change the dimensions using the dropdown menus.

3. Calculate

Click the appropriate calculate button to perform the operation.

4. View Results

The result will be displayed below the input fields along with step-by-step solutions where applicable.

Matrix Operations Reference

Matrix Addition

To add two matrices, they must have the same dimensions. Add corresponding elements.

ab
cd
+
ef
gh
=
a+eb+f
c+gd+h

Matrix Multiplication

To multiply two matrices, the number of columns in the first matrix must equal the number of rows in the second matrix.

ab
cd
×
ef
gh
=
ae+bgaf+bh
ce+dgcf+dh

Determinant (2×2)

For a 2×2 matrix, the determinant is calculated as ad - bc.

ab
cd
det = ad - bc

Inverse (2×2)

For a 2×2 matrix, the inverse is (1/det) × adjugate.

ab
cd
⁻¹ = 1/(ad-bc)
d-b
-ca