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

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

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.

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.

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.

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.

Prepared by Finflo. See our methodology and editorial policy.