Skip to content

Matrix calculator

Enter two matrices or one and choose the operation: addition, subtraction, product, transpose, determinant or inverse.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · Matrix calculator

Runs in your browser · 100% local
Matrix A
Matrix B
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Choose the matrix size (2, 3 or 4).

02

Fill in the values of A and, if needed, B.

03

Select the operation and review the result.

Examples

Examples

2×2 determinant

|1 2; 3 4| = 1·4 − 2·3 = −2.

Product

A 2×3 multiplied by a 3×2 gives a 2×2 matrix.

Reference guide

What you need to know

The product uses rows by columns. The determinant is computed by Gaussian elimination and the inverse by Gauss-Jordan; if the determinant is zero, the matrix has no inverse and the tool says so.

Frequently asked questions

Frequently Asked Questions

Only when A's columns match B's rows; the calculator warns otherwise.

Related tools

Other tools that can help with similar tasks.

More at Mathematics→
Online matrix calculator: determinant and inverse · ByTooly