🌐 EN

🔢 Matrix Calculator

Calculate sums, differences, square-matrix products, determinants, inverses, and transposes.

Matrix A
Matrix B

Inputs and checks

  • Choose Rows and Columns as 2 or 3 each, then fill in Matrix A and, for two-matrix operations, Matrix B. Empty cells count as zero.
  • Select Operation and press Calculate. Changing the dimensions or operation clears the previous cell values and creates new zero-valued cells.
  • For Multiplication (A × B), use matching square matrices of size 2 by 2 or 3 by 3; general rectangular multiplication is not reliably handled.
  • Determinant (det A) gives one number describing a square matrix; Inverse (A⁻¹) finds a matrix that undoes A. Both require a square matrix. Transpose (Aᵀ) swaps rows and columns and also works for rectangular matrices.

Reading the result

  • Matrix entries display two decimal places; a determinant displays four decimal places.
  • An inverse is unavailable when the determinant, the number used to check whether the matrix can be reversed, is zero or extremely close to zero (absolute value below 0.0001).
  • Addition and subtraction accept matching 2 by 3 or 3 by 2 layouts, but multiplication is best limited to the supported square cases.

Examples

Multiply two 2 by 2 matrices

Input
Rows: 2; Columns: 2; Operation: Multiplication (A × B); Matrix A rows: [1, 2], [3, 4]; Matrix B rows: [5, 6], [7, 8]
Result
Result rows: [19.00, 22.00], [43.00, 50.00]
How to check it
The top-left entry is 1 × 5 + 2 × 7 = 19; the other entries use the same row-by-column method.

Find an inverse matrix

Input
Rows: 2; Columns: 2; Operation: Inverse (A⁻¹); Matrix A rows: [4, 7], [2, 6]
Result
Result rows: [0.60, -0.70], [-0.20, 0.40]
How to check it
The determinant is 4 × 6 - 7 × 2 = 10; divide the rearranged signed entries by 10.

Frequently asked questions

Can I multiply a 2 by 3 matrix by another matrix?
Do not rely on rectangular multiplication here; use matching 2 by 2 or 3 by 3 matrices.
Why did my entries disappear?
Changing the operation or dimensions rebuilds the input cells.
When is an inverse unavailable?
The matrix must be square and its determinant must not be near zero.