Matrix multiplication
For A with rows 1 2 and 3 4, and B with rows 2 0 and 1 2, A × B has rows 4 4 and 10 8.
Enter a small rectangular matrix and choose a matrix operation. The calculator detects dimensions, checks whether the operation is defined, and displays a labeled result table with copy and text export controls.
Calculations run locally in your browser. This tool does not upload the numbers you enter.
Enter one row per line, separating entries with spaces or commas. All rows must have the same number of entries.
Select an operation. Enter B for addition, subtraction, and multiplication.
Calculate and review the result dimensions. Copy or download the tab-separated result with its input matrices.
For A with rows 1 2 and 3 4, and B with rows 2 0 and 1 2, A × B has rows 4 4 and 10 8.
For A with rows 1 2 and 3 4, det(A) = −2. Its inverse has rows −2 1 and 1.5 −0.5.
Addition and subtraction require matching row and column counts. For A × B, the number of columns in A must equal the number of rows in B; the result has A’s row count and B’s column count. The transpose swaps rows and columns and works for rectangular inputs.
A determinant is defined here only for square matrices. An inverse is also square and exists only when the matrix is nonsingular. Inversion uses scaled partial pivoting and Gauss–Jordan elimination; a pivot that is too small relative to its original row scale causes a validation error.
Entries and operations use floating-point numbers, displayed to 12 significant digits. A determinant close to zero can involve severe cancellation, and an ill-conditioned inverse can magnify small input errors. This tool is intended for small, inspectable calculations rather than large scientific matrix workloads.
Usually not. Multiplication order matters, and the reverse multiplication may not even be defined for the same dimensions.
Yes. A single entry is a 1 × 1 matrix. Its determinant is that number and its inverse, when nonzero and supported, is the reciprocal.
Check that rows are rectangular, contain numeric values, and stay within the 1–5 row and column limits. Some operations impose additional dimension requirements.
No. The supported operations are addition, subtraction, matrix multiplication, transpose, determinant, and inverse.