Reviewed by CalcMulti Editorial Team·Last updated: ·← Algebra Hub
A matrix is a rectangular array of numbers arranged in rows and columns. Matrix operations — addition, subtraction, multiplication, and transposition — are foundational in linear algebra, systems of equations, computer graphics, machine learning, and engineering.
Select a matrix size (2×2 or 3×3), enter values for both matrices, choose an operation, and the calculator returns the result with a step-by-step breakdown.
(A+B)ᵢⱼ = aᵢⱼ + bᵢⱼ | (AB)ᵢⱼ = Σ aᵢₖ·bₖⱼ | (Aᵀ)ᵢⱼ = aⱼᵢ
Choose a size, enter values, select an operation.
Matrix A
Matrix B
Quick examples:
| Operation | Formula | Condition | Result Size |
|---|---|---|---|
| Addition A + B | (A+B)ᵢⱼ = aᵢⱼ + bᵢⱼ | A and B same size | Same as A and B |
| Subtraction A − B | (A−B)ᵢⱼ = aᵢⱼ − bᵢⱼ | A and B same size | Same as A and B |
| Multiplication A × B | (AB)ᵢⱼ = Σ aᵢₖ·bₖⱼ | A: m×n, B: n×p | m×p matrix |
| Transpose Aᵀ | (Aᵀ)ᵢⱼ = aⱼᵢ | Any matrix A | n×m if A is m×n |
| Scalar multiplication cA | (cA)ᵢⱼ = c·aᵢⱼ | Any scalar c | Same as A |
| Identity I | Diagonal 1s, rest 0s | — | AI = IA = A |
A = [[1,2],[3,4]], B = [[5,6],[7,8]] → AB:
| Position | Dot Product | Calculation | Result |
|---|---|---|---|
| R1C1 | Row 1 · Col 1 | (1)(5) + (2)(7) | 19 |
| R1C2 | Row 1 · Col 2 | (1)(6) + (2)(8) | 22 |
| R2C1 | Row 2 · Col 1 | (3)(5) + (4)(7) | 43 |
| R2C2 | Row 2 · Col 2 | (3)(6) + (4)(8) | 50 |
Result: [[19, 22], [43, 50]]
This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.