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
Matrix Properties
Size: 3 x 3
Determinant of A: 0.0000
Invertible: No
Matrix Properties Reference Table
| Property | Addition | Multiplication | Transpose | Determinant |
|---|---|---|---|---|
| Commutative | Yes (A+B=B+A) | No (AB does not equal BA) | N/A | N/A |
| Associative | Yes | Yes | N/A | N/A |
| Distributive | A(B+C)=AB+AC | Over addition | (A+B)^T=A^T+B^T | det(AB)=det(A)det(B) |
| Identity | Zero matrix | Identity matrix I | (A^T)^T = A | det(I) = 1 |
| Inverse | -A (negation) | A^(-1) if det != 0 | (A^T)^(-1)=(A^(-1))^T | det(A^(-1))=1/det(A) |
| Product rule | N/A | (AB)^(-1)=B^(-1)A^(-1) | (AB)^T=B^T A^T | det(kA)=k^n det(A) |
Related Calculators
Quadratic Formula Calculator
Solve quadratic equations that arise from 2x2 eigenvalue problems.
Exponent Calculator
Compute powers needed for matrix exponentiation problems.
Modular Arithmetic Calculator
Perform modular matrix operations used in cryptography.
Standard Deviation Calculator
Statistical calculations that use covariance matrices.
Scientific Calculator
Advanced math calculations with built-in functions.
Percentage Calculator
Compute percentages for matrix element analysis.
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]]:
- Result[0][0] = (row 0 of A) dot (col 0 of B) = 1x5 + 2x7 = 5 + 14 = 19
- Result[0][1] = (row 0 of A) dot (col 1 of B) = 1x6 + 2x8 = 6 + 16 = 22
- Result[1][0] = (row 1 of A) dot (col 0 of B) = 3x5 + 4x7 = 15 + 28 = 43
- Result[1][1] = (row 1 of A) dot (col 1 of B) = 3x6 + 4x8 = 18 + 32 = 50
- 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
- Khan Academy — Matrices: khanacademy.org
- Wolfram MathWorld — Matrix: mathworld.wolfram.com
- NIST Digital Library of Mathematical Functions: dlmf.nist.gov
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026