Matrix Calculator

  • Tested against OpenStax’s examples and 400 random matrices worked out exactly in Python
  • Checked by Wayne Bickerton
  • Sources: OpenStax
  • Updated November 11, 2026

A matrix is a grid of numbers. Type up to 3 rows and 3 columns, pick what you need (the inverse, the determinant, or A plus, minus or times B) and the answer shows straight away as exact fractions, with the steps worked out. Fractions like 3/4, decimals and negative numbers all work.

Matrix A
Inverse of A
3/5−7/10−1/52/5 det 10

The inverse of A is shown above. Check: A × A⁻¹ gives the 2 × 2 identity matrix.

Size 2 × 2
Determinant of A 10

How to calculate it

Here is your matrix worked out step by step, the way the OpenStax textbook does it: the determinant by multiplying along the diagonals, the inverse from the determinant, and sums and products one entry at a time.

A⁻¹ = 1/(ad − bc) × [d −b; −c a]

Here it is with your numbers:

  1. The determinant of A is 10 (not 0, so the inverse exists).
  2. Swap the two numbers on the main diagonal and change the signs of the other two: 6−7−24.
  3. Divide every entry by 10: 3/5−7/10−1/52/5.

It means multiplying by A⁻¹ undoes multiplying by A.

Source OpenStax · College Algebra 2e, 7.7 Solving Systems with Inverses ↗

Matrix operations at a glance

To findHow
A + B, A − BAdd or subtract the entries in the same place. Both must be the same size.
A × BEach entry is a row of A times a column of B, added up. B × A is usually different.
Determinant2 × 2: ad − bc. 3 × 3: the three products down the diagonals minus the three products up.
InverseOnly when the determinant isn’t 0. Then A × A⁻¹ is the identity matrix.

Source OpenStax · College Algebra 2e, 7.5 Matrices and Matrix Operations ↗OpenStax · College Algebra 2e, 7.8 Solving Systems with Cramer’s Rule (determinants) ↗

FAQs

What is a matrix in math?

A rectangular array of numbers in rows and columns. A matrix with 2 rows and 3 columns is a 2 × 3 matrix; each number in it is an entry.

Source OpenStax · College Algebra 2e, 7.5 Matrices and Matrix Operations ↗

What is the inverse of a matrix?

The matrix A⁻¹ that gives the identity matrix (1s down the main diagonal, 0s everywhere else) when multiplied by A, either way round: A × A⁻¹ = A⁻¹ × A = I.

Source OpenStax · College Algebra 2e, 7.7 Solving Systems with Inverses ↗

How to calculate inverse matrices?

For a 2 × 2 matrix, swap a and d, change the signs of b and c, and divide every entry by the determinant ad − bc. For 3 × 3, OpenStax writes A next to the identity matrix and uses row operations until A becomes the identity; what is left on the right is A⁻¹.

What is the difference between inverse and invertible matrices?

An invertible matrix is one that has an inverse; the inverse is that other matrix. A square matrix is invertible exactly when its determinant is not 0.

Source OpenStax · College Algebra 2e, 7.8 Solving Systems with Cramer’s Rule (determinants) ↗

Sources

Related calculators