Linear algebra

Matrix calculator

Add, subtract, and multiply matrices, calculate determinants, transposes, and inverses, and solve linear systems with 2, 3, or 4 unknowns directly in your browser.

Matrices size

Matrix A

Matrix B

Operations with A and B

Operations on A

Current determinant:-1

Solve Ax = b system

Enter the independent vector b. The tool seeks a unique solution for x.

➕

Matrix operations

Calculate matrix sums, differences, and products in both orders.

🔢

Determinant and inverse

Calculate determinants, transposes, and inverses without working through the steps manually.

🧩

Ax = b systems

Solve small linear systems using Gaussian elimination.

Frequently asked questions

What sizes of matrices does it admit?

You can work with 2 × 2, 3 × 3 and 4 × 4 square matrices.

What operations can I do between two matrices?

You can add A + B, subtract A − B and multiply A × B or B × A.

Can it calculate the inverse matrix?

Yes. If the matrix is invertible, the tool calculates A⁻¹ using Gauss-Jordan elimination.

Can it solve systems of equations?

Yes. Enter the A coefficients matrix and vector b to solve Ax = b when there is a single solution.

What if the determinant is zero?

The tool will indicate that the matrix has no inverse and that an associated system may not have a unique solution.

Are the data sent to a server?

No. All operations are performed locally in your browser.

Related calculators