Matrix Calculator

Add, subtract, multiply, transpose, determinant, and inverse — up to 4×4.

Ad · 728×90
Matrix A
×
Matrix B
×
Ad · Responsive

About Matrix Operations

A matrix is a rectangular array of numbers arranged in rows and columns, fundamental to linear algebra and widely used in physics, engineering, computer graphics, machine learning, and economics. This calculator supports the most common matrix operations: addition and subtraction (require identical dimensions), matrix multiplication (where the number of columns in A must equal the number of rows in B), transpose (flipping rows and columns), scalar multiplication, determinant (for square matrices), and matrix inverse (for non-singular square matrices).

The determinant of a matrix is a scalar value used to assess whether a matrix is invertible (non-zero determinant) and appears in solving systems of linear equations via Cramer's rule. The inverse of matrix A is the matrix A⁻¹ such that A × A⁻¹ = I (the identity matrix). All calculations run locally in your browser using exact arithmetic.


How to Use

  1. Select an operation from the row of buttons (A+B, A−B, A×B, transpose, determinant, inverse, or scalar multiply).
  2. Set the row and column dimensions for each matrix using the dropdowns, then fill in the cell values.
  3. Click ✨ Calculate to see the result matrix (or scalar for determinant).
  4. Use ⿻ Copy Result to copy the output to your clipboard.

Frequently Asked Questions

Matrix multiplication A × B is only defined when the number of columns in A equals the number of rows in B. If A is m×n and B is n×p, the result is an m×p matrix. Note that matrix multiplication is not commutative — A × B generally does not equal B × A.

A matrix with a determinant of zero is called a singular matrix. It has no inverse, meaning the system of linear equations it represents has either no solution or infinitely many solutions. Geometrically, it means the transformation collapses space into a lower dimension (e.g., all vectors get mapped to a line or plane).

No. This tool runs entirely in your browser. Your input is never sent to any server, never logged, and never stored. Closing the tab removes all data immediately.

Ad · Responsive