Skip to content

Matrix Calculator

Two matrices up to 6×6 with exact fraction answers for every common operation.

How the matrix calculator works

Enter matrix A and matrix B, choose their sizes, then pick an operation. Results update as you type. Cells accept whole numbers, decimals and fractions like 2/3, and all the arithmetic is exact, so an inverse shows 1/3 rather than 0.333333.

A + B and A − B need matrices of the same size. A × B needs A's column count to match B's row count, and the result has A's rows and B's columns. Matrix multiplication isn't commutative, so B × A is usually different.

The determinant, inverse and powers need a square matrix. A matrix has an inverse only when its determinant isn't 0. The rank is the number of pivots in the reduced row echelon form (RREF), found with Gauss-Jordan elimination.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

For A × B, the number of columns in A must equal the number of rows in B. A 2×3 matrix can multiply a 3×4 matrix (giving 2×4) but not a 2×3 one.

When its determinant is 0. Such a matrix is called singular: its rows are linearly dependent, so its rank is less than its size.

The number of linearly independent rows (or columns). Row-reduce the matrix and count the rows that aren't all zeros.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.