Skip to content
D DocNectar

Free Matrix Calculator

Add, subtract, multiply, transpose, invert, or find the determinant of matrices up to 4×4, with every step shown as real matrices.

Matrix A

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

A matrix is a grid of numbers used throughout linear algebra, computer graphics, and engineering — combined using operations like addition, multiplication, and the determinant.

This calculator performs all the core operations on matrices up to 4×4 and shows the full working for each one, with matrices rendered as real matrices rather than plain numbers.

How it works

Choose an operation — addition, subtraction, multiplication, scalar multiplication, transpose, determinant, or inverse — pick the size of matrix A (and matrix B, if the operation needs one), fill in the grid of values, and calculate. The tool applies the matching formula element by element and shows the full working.

  1. Choose an operation — addition, subtraction, multiplication, scalar multiplication, transpose, determinant, or inverse.
  2. Pick the size of Matrix A (and Matrix B, if the operation needs one).
  3. Fill in each cell of the matrix grid.
  4. Click Calculate to see the result and the full step-by-step solution.

Examples

Adding two matrices

Adding [[1,2],[3,4]] and [[5,6],[7,8]] gives [[6,8],[10,12]] — each position is added to the matching position in the other matrix.

Finding a determinant

For matrix [[4,3],[6,8]], the determinant is (4×8) − (3×6) = 32 − 18 = 14.

Finding an inverse

The inverse of A is found by dividing the adjugate of A by det(A) — it only exists when the determinant is nonzero.

Who should use it

  • Checking a linear algebra homework answer.
  • Verifying a transformation matrix used in computer graphics or engineering calculations.
  • Finding the inverse of a matrix for solving a system of linear equations.

Industry applications

  • Linear algebra and engineering education
  • Computer graphics and physics simulations

Advantages

  • Covers all seven core matrix operations, including scalar multiplication and inverse, in one tool.
  • Supports any matrix size from 1×1 up to 4×4, not just a fixed 2×2 grid.
  • Shows the full row-by-column working for multiplication and cofactor expansion for the determinant and inverse, not just the final result.

Limitations

  • Limited to 4×4 matrices — larger matrices require specialized linear algebra software.

Common mistakes to avoid

  • Multiplying matrices position by position like addition, instead of using the row-by-column method matrix multiplication requires.
  • Mixing up the row and column order when reading off a matrix's values.
  • Trying to find the determinant or inverse of a non-square matrix — both operations only apply to square matrices.

Best practices

  • Always double check which matrix (A or B) comes first in multiplication — unlike regular numbers, matrix multiplication is not commutative (AB does not usually equal BA).
  • Check the determinant before attempting to invert a matrix — a zero determinant means no inverse exists.

Tips

  • Remember that matrix multiplication order matters — AB and BA usually give different results, unlike multiplying ordinary numbers.
  • For determinant and inverse, the rows and columns selectors stay locked together since only square matrices support these operations.

Frequently asked questions

Yes, with no signup and no limit on how many calculations you run.
Matrix multiplication combines rows of the first matrix with columns of the second, summing the products — it isn't simply multiplying matching positions the way addition and subtraction do.
The determinant indicates whether a matrix can be inverted (a zero determinant means it cannot) and represents a scaling factor the matrix applies to area or volume.
Any size from 1×1 up to 4×4. Addition and subtraction require matrices of the same size; multiplication requires the number of columns in matrix A to match the number of rows in matrix B; the determinant and inverse require a square matrix.
A matrix is only invertible when its determinant is nonzero. A determinant of zero means the matrix is "singular" and cannot be inverted.

Get new calculators and guides in your inbox

No spam — just new tools like Matrix Calculator and practical guides.

Favorites