Matrix Calculator
Perform matrix addition, subtraction, multiplication, determinant, inverse, transpose, and row echelon form on matrices up to 6×6.
Determinant
0
Step-by-Step
Expanding along row 1 of 3x3 matrix
det([0,0; 0,0]) = 0*0 - 0*0 = 0
+ 0 * M(1,1) = + 0 * 0 = 0
det([0,0; 0,0]) = 0*0 - 0*0 = 0
- 0 * M(1,2) = - 0 * 0 = 0
det([0,0; 0,0]) = 0*0 - 0*0 = 0
+ 0 * M(1,3) = + 0 * 0 = 0
Determinant = 0
2 × A
Key Formulae
det(A) = cofactor expansion along any row or column
A⁻¹ = [A|I] row-reduced to [I|A⁻¹] (exists only if det(A) ≠ 0)
(AB)ᵢⱼ = sum of A(i,k) * B(k,j) for k = 1..n
How to use Matrix Calculator
-
Set the matrix dimensions
Use the +/− row and column buttons to set the matrix size from 2×2 up to 6×6.
-
Enter matrix values
Click each cell and type values. Tab between cells. Or paste tab- or comma-separated data from a spreadsheet.
-
Choose an operation
Select determinant, inverse, transpose, row echelon form, or another operation. For two-matrix operations, toggle two-matrix mode and fill in the second matrix.
-
View the result
The result matrix or scalar appears instantly with the formula used.
-
Expand step-by-step working
For determinant and inverse, click 'Show steps' to see the full cofactor expansion or adjugate calculation.
Matrix Calculator FAQ
How do I multiply two matrices?
What is the determinant of a matrix?
How do I find the inverse of a matrix?
What is the transpose of a matrix?
What is row echelon form?
What does it mean when the matrix is singular?
What is the maximum matrix size?
Can I add matrices of different sizes?
Can I paste data from a spreadsheet?
Is any data sent to a server?
Background
Perform a comprehensive range of matrix operations on an interactive grid. Set any matrix size from 2×2 to 6×6 using the row and column controls, enter values by clicking cells or pasting tab/comma-separated data, and choose from addition, subtraction, multiplication, scalar multiplication, transpose, determinant, inverse, row echelon form, and reduced row echelon form. Two-matrix mode enables operations that require two inputs such as multiplication and addition. Step-by-step solutions are provided for determinant (cofactor expansion) and inverse (adjugate method) operations — essential for linear algebra coursework. The tool checks dimension compatibility before multiplication and warns when a matrix is singular (non-invertible). Useful for students in linear algebra and engineering courses. All processing runs in your browser with no software installation required.
Related tools
Scientific Calculator
A full-featured scientific calculator with trigonometry, logarithms, exponents, roots, memory functions, and calculation history. Full keyboard support.
Quadratic Equation Solver
Solve ax² + bx + c = 0 with real or complex roots, discriminant, vertex form, axis of symmetry, and a step-by-step parabola graph.
Statistics Calculator
Calculate mean, median, mode, standard deviation, variance, quartiles, skewness, kurtosis, and range from any dataset. Histogram included.
Fraction Calculator
Add, subtract, multiply, or divide fractions with step-by-step solutions. Simplify, convert between decimals and percentages, and work with mixed numbers.
Percentage Calculator
Calculate X% of Y, find what percentage X is of Y, or compute percentage increase and decrease. Results update as you type.