Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Matrix Calculator — Free Online Matrix Operations Tool

Perform all standard matrix operations including addition, subtraction, multiplication, transpose, determinant, inverse, and scalar multiplication for matrices up to 4x4.

Matrix A

Matrix B

Result

10.0000
10.0000
10.0000
10.0000
10.0000
10.0000
10.0000
10.0000
10.0000

Matrix Properties

Size: 3 x 3

Determinant of A: 0.0000

Invertible: No

Matrix Properties Reference Table

Property Addition Multiplication Transpose Determinant
CommutativeYes (A+B=B+A)No (AB does not equal BA)N/AN/A
AssociativeYesYesN/AN/A
DistributiveA(B+C)=AB+ACOver addition(A+B)^T=A^T+B^Tdet(AB)=det(A)det(B)
IdentityZero matrixIdentity matrix I(A^T)^T = Adet(I) = 1
Inverse-A (negation)A^(-1) if det != 0(A^T)^(-1)=(A^(-1))^Tdet(A^(-1))=1/det(A)
Product ruleN/A(AB)^(-1)=B^(-1)A^(-1)(AB)^T=B^T A^Tdet(kA)=k^n det(A)

Related Calculators

About this calculator

Matrix Operation Formulas

Matrix Addition / Subtraction

(A ± B)_ij = A_ij ± B_ij

Matrix Multiplication

(AB)_ij = sum(A_ik * B_kj, k=1..n)

2x2 Determinant

det([[a,b],[c,d]]) = ad - bc

2x2 Inverse

A^(-1) = (1/det(A)) * [[d,-b],[-c,a]]

Transpose

(A^T)_ij = A_ji

Key Properties

  • Addition is commutative: A + B = B + A. Subtraction is not: A - B does not equal B - A (unless A = B).
  • Multiplication is NOT commutative: AB does not generally equal BA. This is one of the most important differences between matrix and scalar arithmetic.
  • Multiplication is associative: (AB)C = A(BC). You can group multiplications any way you want without changing the result.
  • Determinant of a product: det(AB) = det(A) x det(B). The determinant "distributes" over multiplication.
  • Inverse of a product: (AB)^(-1) = B^(-1) A^(-1). Note the reversed order — the same reversal that occurs with transpose of a product.

Step-by-Step Example

Multiply A = [[1, 2], [3, 4]] by B = [[5, 6], [7, 8]]:

  1. Result[0][0] = (row 0 of A) dot (col 0 of B) = 1x5 + 2x7 = 5 + 14 = 19
  2. Result[0][1] = (row 0 of A) dot (col 1 of B) = 1x6 + 2x8 = 6 + 16 = 22
  3. Result[1][0] = (row 1 of A) dot (col 0 of B) = 3x5 + 4x7 = 15 + 28 = 43
  4. Result[1][1] = (row 1 of A) dot (col 1 of B) = 3x6 + 4x8 = 18 + 32 = 50
  5. AB = [[19, 22], [43, 50]]

Verify with determinants: det(A) = 1x4 - 2x3 = -2, det(B) = 5x8 - 6x7 = -2, det(AB) = 19x50 - 22x43 = 950 - 946 = 4 = (-2)(-2). The determinant of the product equals the product of determinants.

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026