Math · FREE ONLINE TOOL

Matrix Calculator

Add, subtract, multiply, scale, transpose and raise matrices to integer powers, or calculate determinants and inverses up to 10 by 10.

Your inputs

Formula and input guidance

Matrix operation

Matrix multiplication uses row-by-column dot products. Inversion requires a nonsingular square matrix.

Matrices are limited to 10 × 10. Matrix B is used only for addition, subtraction, and multiplication.

One row per line; separate entries with commas or spaces.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Result
6 8 10 12
Jump to the full table
My workspace

Calculate with your inputs to save a result or compare scenarios.

Detailed breakdown

All 2 rows

The complete calculation, row by row.

Swipe or scroll horizontally for more columns.
Detailed breakdown · All 2 rows
Column 1Column 2
68
1012

How it works

Illustration for Matrix Calculator: a grid; plus and division symbols.
Matrix operationMatrix multiplication uses row-by-column dot products. Inversion requires a nonsingular square matrix.
A useful distinction

A power is repeated matrix multiplication

For A = [[1,1],[0,1]], A² is [[1,2],[0,1]], not [[1,1],[0,1]]. Matrix powers multiply rows by columns; they do not square each entry independently. Check this distinction before using powers to repeat a transformation.

How does an off-diagonal term change when a matrix is squared?

Matrix A
[[1, 2], [0, 1]]
Squared matrix entry. A (a₁₁) → 1. B (a₁₂) → 4.
How does an off-diagonal term change when a matrix is squared?
Matrix entryCalculationSquared matrix entry
A a₁₁1 × 1 + 2 × 01
B a₁₂1 × 2 + 2 × 14

Checking matrix dimensions before an operation

Matrix operations have different dimension requirements. Addition needs matching shapes, while multiplication matches the first matrix's column count with the second matrix's row count. Reversing multiplication can change the result or make the operation undefined. For an inverse or determinant, review the square-matrix requirements and singularity limitations. Check row order and separators when entering the values.

Match matrix dimensions to the selected operation

Enter one row per line, separating entries with spaces or commas. Every row in a matrix must have the same number of entries. Addition and subtraction require equal dimensions; multiplication requires columns of A to equal rows of B.

Transpose exchanges rows and columns. Determinant, inverse and an integer matrix power require a square matrix. Scalar multiplication multiplies every entry by one number. Matrix B is used only when the selected operation needs it.

Multiply rows by columns rather than matching individual entries

Let A have rows 2,1 and 0,3, and B have rows 4,−1 and 2,5. The top-left entry of AB is 2×4+1×2=10. The top-right is 2×(−1)+1×5=3. The resulting rows are 10,3 and 6,15.

Entry calculations for AB
Output entryDot productValue
Row 1, column 12×4 + 1×210
Row 1, column 22×(−1) + 1×53
Row 2, column 10×4 + 3×26
Row 2, column 20×(−1) + 3×515

Check inverses and powers with the identity matrix

A square matrix with determinant zero is singular and has no inverse. For the example A, determinant is 2×3−1×0=6, so it is invertible. Multiplying A by its inverse should give the identity matrix, within numerical precision.

A² means A multiplied by A, not squaring each individual entry. For a square matrix, the zero power returns the identity. The supported power input is a nonnegative integer; use Inverse for an inverse operation.

Preserve order and inspect numerical sensitivity

In general AB and BA differ, and one product can be defined while the other is not. For example, a 2×3 matrix times a 3×4 matrix gives a 2×4 result; reversing them fails the inner-dimension check.

Matrices here are numerical and limited to 10×10. A nearly singular matrix can make an inverse sensitive to small entry changes. A long decimal output is not proof that an ill-conditioned measurement problem has a reliable solution.

Matrix operation: formula and assumptions

Matrix multiplication uses row-by-column dot products. Inversion requires a nonsingular square matrix.

Matrices are limited to 10 × 10. Matrix B is used only for addition, subtraction, and multiplication.

Use Matrix operation

Worked example

Using the Matrix operation example:

Inputs
Operation
A + B
Matrix A
1, 2 3, 4
Matrix B
5, 6 7, 8
Method

Matrix multiplication uses row-by-column dot products. Inversion requires a nonsingular square matrix.

Result

Example result

Result: 6 8 10 12

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

When can two matrices be multiplied?

The number of columns in A must equal the number of rows in B. The result uses row-by-column dot products.

Which matrices have an inverse?

A matrix must be square and nonsingular. A zero determinant means no inverse exists, while nearly singular matrices can be numerically sensitive.

Why can I not add a 2×3 matrix to a 3×2 matrix?

Addition pairs corresponding entries, so both row counts and column counts must match exactly.

What size is the result of a 2×3 times a 3×4 matrix?

It is 2×4. The matching inner dimensions are summed over; the outer dimensions determine the result.

Is matrix multiplication performed entry by entry?

No. Each output entry is a row-by-column dot product. Entrywise multiplication is a different operation.

Can I transpose a rectangular matrix?

Yes. Transpose exchanges rows and columns and does not require a square matrix. A 2×3 matrix becomes a 3×2 matrix.

See our methodology and editorial policy.