Matrix Calculator

Find the determinant, inverse or transpose of a matrix, or add, subtract and multiply matrices up to 6 × 6.

Loading calculator...

Matrix calculator in short
On this page

How to use the matrix calculator

1

Choose the operation

Determinant, inverse, transpose, A × B, A + B or A − B.

2

Enter matrix A

One row per line, with numbers separated by spaces. Fractions like 1/2 work too.

3

Enter matrix B if needed

For adding, subtracting or multiplying.

4

Read the result

Each row of the answer is shown separately.

Matrix operations explained

A matrix is a grid of numbers. Adding and subtracting work entry by entry, so both matrices must be the same size. Multiplying A × B combines each row of A with each column of B, so A needs as many columns as B has rows. Only square matrices have a determinant and possibly an inverse.

2 × 2 formulas

det [a b; c d] = ad − bc

Inverse = (1 ÷ (ad − bc)) × [d −b; −c a]

A matrix with determinant 0 has no inverse

Example 1: determinant of a 3 × 3 matrix

A = [2 1 3; 0 −1 4; 1 2 0]

  • Determinant −9

Example 2: inverse of a 2 × 2 matrix

A = [4 7; 2 6], determinant 10

  • Inverse [3/5 −7/10; −1/5 2/5]

Example 3: multiplying

[1 2; 3 4] × [5 6; 7 8]

  • Result [19 22; 43 50]

Where matrices are used

Linear algebra

Check homework on determinants and inverses.

Systems of equations

Solve them with inverse matrices.

Computer graphics

Rotate, scale and move shapes.

Data science

Matrices are at the heart of statistics and machine learning.

Related tools

Solve 2 or 3 equations directly with the system of equations calculator, or work with exact fractions in the fraction calculator.

Matrix calculator FAQ

Multiply the diagonals and subtract: ad − bc.

When its determinant is 0. Such a matrix is called singular.

Only if the number of columns in the first equals the number of rows in the second.

Usually not. Matrix multiplication is not commutative.

The matrix flipped over its diagonal, so rows become columns.

Type one row per line, with numbers separated by spaces or commas.

Embed this calculator on your website

Free to use on any site. Copy the code below and paste it into an HTML block on your page. Please keep the credit link under the calculator.

Show the embed code

Works with WordPress, Wix, Squarespace, Webflow and most site builders that allow HTML. How embedding works.

Estimates, not advice

PureCalculate’s calculators give estimates for planning and education. They aren’t financial, tax or legal advice. Fees and tax rules change, so check the official source before making a decision. Spotted a mistake? Please tell us through the contact page.

Scroll to Top