Matrix Calculator
Type matrices one row per line. Addition, subtraction, scalar multiplication, matrix multiplication and transpose work up to 5 × 5, with every entry's working shown. Determinants use ad − bc for 2 × 2 and cofactor expansion for 3 × 3. The 2 × 2 inverse is built from the determinant and the adjugate. Dimension mismatches and singular matrices are explained.
Step-by-step
waitingFill in the fields and press Solve. The full method will appear here, one numbered step at a time.
Worked example
Multiply A = [1 2; 3 4] by B = [5 6; 7 8].
- 1.
Matrix A is 2 × 2.
[ 1 2 ] [ 3 4 ]
- 2.
Matrix B is 2 × 2.
[ 5 6 ] [ 7 8 ]
- 3.
A has 2 columns and B has 2 rows, so the product exists and is 2 × 2. Each entry cᵢⱼ is row i of A times column j of B: multiply matching entries and add.
- 4.
Entry by entry:
c11 = 1·5 + 2·7 = 19 c12 = 1·6 + 2·8 = 22 c21 = 3·5 + 4·7 = 43 c22 = 3·6 + 4·8 = 50
- 5.
Result:
[ 19 22 ] [ 43 50 ]
Answer: [ 19 22 ] [ 43 50 ]
Note: Up to 5×5. Determinants for 2×2 and 3×3; inverses for 2×2 only.
Use “Load worked example” above to run this in the solver.
Related formulas
The formulas this tool uses, each explained with symbols, conditions and its own example in the Formula Library.