Matrix Multiplication Calculator
Multiply matrices together. Free online matrix multiplication calculator with detailed steps.
The Matrix Multiplication Calculator computes the product of two matrices following the row-by-column multiplication rule. Matrix multiplication is central to linear algebra, transformations, computer graphics, and machine learning. Enter compatible matrices and see the full multiplication process with the resulting matrix.
Matrix Multiplication Calculator
One row per line; separate values with spaces or commas.
One row per line; separate values with spaces or commas.
Formula: (AB)ᵢⱼ = Σₖ Aᵢₖ × Bₖⱼ (columns of A must equal rows of B)
Worked example
- Row 1 · column 1: 1×7 + 2×9 + 3×11 = 58
- Row 1 · column 2: 1×8 + 2×10 + 3×12 = 64
- Row 2 · column 1: 4×7 + 5×9 + 6×11 = 139
- Row 2 · column 2: 4×8 + 5×10 + 6×12 = 154
Replace these values in the calculator above to compute your own numbers.
Common use cases
- Linear transformations
- 3D graphics rotations
- Neural network computations
- Systems of equations
- Markov chain calculations
How to use
- Enter dimensions for Matrix A (m × n)
- Enter dimensions for Matrix B (n × p)
- Input matrix values
- Click multiply to compute A × B
- View the step-by-step multiplication
FAQ
What are the dimension requirements?
Matrix A (m×n) can multiply B (n×p) if A's columns equal B's rows. Result is m×p.
Is matrix multiplication commutative?
No, usually AB ≠ BA. Order matters in matrix multiplication.
How is each element calculated?
(AB)ᵢⱼ = sum of (row i of A) × (column j of B), element by element, then summed.
What's the identity matrix?
The identity matrix I has 1s on diagonal, 0s elsewhere. AI = IA = A for any matrix A.
Related tools
- Matrix Addition CalculatorAdd matrices together. Free online matrix addition calculator with step-by-step solution.
- Matrix Inverse CalculatorCalculate the inverse of a matrix. Free online matrix inverse calculator.
- Determinant CalculatorCalculate matrix determinant. Free online determinant calculator for 2×2, 3×3, and larger matrices.
- Matrix Transpose CalculatorCalculate the transpose of a matrix. Free online matrix transpose calculator.
- Vector Magnitude CalculatorCalculate the magnitude (length) of a vector. Free online vector magnitude calculator for 2D and 3D vectors.
- Vector Dot Product CalculatorCalculate the dot product of two vectors. Free online vector dot product calculator.