Matrix Calculator
Calculate matrix addition, subtraction, multiplication, transpose, determinant, inverse, and scalar multiplication with a clean and accurate online matrix calculator.
Online Matrix Calculator
Choose matrix size, enter values, select operation, and get instant results.
Matrix A
Matrix B
Result
Matrix Operations and Formulas
For addition and subtraction, both matrices must have the same dimensions. Each result cell is found by combining the values in the same row and column position.
For multiplication, the number of columns in Matrix A must equal the number of rows in Matrix B. Each output cell is the dot product of one row from A and one column from B.
A determinant and inverse are defined here only for square matrices. An inverse exists only when det(A) ≠ 0; otherwise, the matrix is singular.
Quick Matrix Example
Suppose A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]]. Then:
- A + B = [[6, 8], [10, 12]]
- A − B = [[−4, −4], [−4, −4]]
- A × B = [[19, 22], [43, 50]]
- det(A) = (1 × 4) − (2 × 3) = −2
- transpose(A) = [[1, 3], [2, 4]]
Use the Fill Example button to test a sample calculation instantly.
Related Math Calculators
Continue your linear algebra and equation work with these free tools:
What Is a Matrix Calculator?
A matrix calculator is an online math tool that helps you solve matrix operations without doing every row and column calculation manually. It is useful for students, teachers, engineers, programmers, and anyone working with linear algebra.
This Matrix Calculator supports common operations such as addition, subtraction, multiplication, transpose, determinant, inverse, and scalar multiplication. It keeps the interface simple while still giving accurate mathematical output.