Tools Guides
math Free No signup

Matrix Calculator

Perform matrix operations — add, subtract, multiply, transpose, determinant, and inverse — with step-by-step working.

Loading tool…

About this tool

Select a matrix size (2×2, 3×3, or 4×4) and fill in the grid cells for Matrix A and Matrix B. Choose an operation: Addition, Subtraction, Multiplication, Transpose, Determinant, or Inverse. Results are displayed as a formatted matrix grid. For Determinant and Inverse, the tool shows full cofactor-expansion working so you can follow every step. Errors are clearly reported for singular matrices, incompatible sizes, and non-square inputs.

How to use

  1. 1 Select the matrix size (2×2, 3×3, or 4×4) from the size selector.
  2. 2 Enter values into the Matrix A grid — and Matrix B if the operation requires two matrices.
  3. 3 Choose an operation: Add, Subtract, Multiply, Transpose, Determinant, or Inverse.
  4. 4 Click Calculate to see the result matrix and, for Determinant/Inverse, the step-by-step working.

Frequently Asked Questions

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}