Free Online Calculator

Matrix Calculator

Add, multiply, invert and analyse matrices up to 8 × 8.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: multiplying matrices

Each entry of A × B is a row of A times a column of B. [[1,2],[3,4]] × [[5,6],[7,8]] = [19, 22] [43, 50].

Overview of the Matrix Calculator

Enter one or two matrices (one row per line, numbers separated by spaces or commas) and choose an operation: A + B, A − B, A × B, k × A, transpose, determinant, inverse, rank or trace. The result is shown as a table, with the determinant and trace of the result for square matrices. The size rules are checked for you with clear messages.

Matrix multiplication needs the columns of A to equal the rows of B; the inverse exists only for square matrices with a non-zero determinant. Related tools: the Quadratic Formula Calculator, Scientific Calculator and Statistics Calculator.

How We Calculate

The calculator applies the standard method step by step.

  1. Parse each row into numbers and check all rows have the same length.
  2. Addition and subtraction: combine entries in the same position (matrices must be the same size).
  3. Multiplication: entry (i, j) = sum of row i of A times column j of B.
  4. Determinant and inverse: Gaussian elimination with partial pivoting.
  5. Rank: the number of non-zero rows after row reduction.
(AB)ᵢⱼ = Σₖ Aᵢₖ Bₖⱼ   A × A⁻¹ = I   det by elimination
Result: A × B (2×2)
Col 1Col 2
Row 11922
Row 24350
Properties of the result
PropertyValue
Determinant4
Trace69
Operations on A = [[1,2],[3,4]] and B = [[5,6],[7,8]]
OperationResult
A × B2 × 2 matrix
A + B2 × 2 matrix
Determinant of A-2
Inverse of A2 × 2 matrix
Transpose of A2 × 2 matrix

Matrix Calculator — Frequently Asked Questions

How do I multiply two matrices?

Multiply each row of the first by each column of the second and add the products. The columns of A must equal the rows of B.

What is a determinant?

A single number computed from a square matrix; if it is 0 the matrix is singular and has no inverse.

How do I find the inverse of a matrix?

Use Gauss-Jordan elimination; the inverse exists only if the matrix is square and its determinant is not zero.

What is the transpose?

Swapping rows and columns, so entry (i, j) moves to (j, i).

What is the rank of a matrix?

The number of linearly independent rows (or columns).

What is the trace?

The sum of the diagonal entries of a square matrix.

How is the matrix calculator calculated?

It uses the standard method: (AB)ᵢⱼ = Σₖ Aᵢₖ Bₖⱼ   A × A⁻¹ = I   det by elimination The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

6 + 9 =
Call WhatsApp