Matrix Calculator
Add, subtract, multiply, transpose, and invert matrices of any size. Shows intermediate steps for multiplication and Gaussian elimination for matrix inversion.
A
B
Result
2
2
2
2
How to use the matrix calculator
Set the matrix size, fill in the cells, and pick an operation. Results render as a matrix or a scalar (for determinant).
Formula & explanation
Add/sub: element-wise. Multiply: rows × columns. Transpose: swap rows and columns. Determinant: Laplace expansion.
Examples
[[1,2],[3,4]] × [[5,6],[7,8]] = [[19,22],[43,50]]. det([[1,2],[3,4]]) = −2.
Frequently asked questions
- Inverse?
- Not yet — file a request. For 2×2 it's trivial; larger sizes need pivoting and we kept this UI simple.
Related math tools
- Scientific CalculatorFull scientific calculator with trigonometric functions (sin, cos, tan), logarithms, exponents, factorials, and constants. Supports degree and radian mode.
- Average CalculatorCalculate mean, median, mode, range, sum, min, and max for any list of numbers. Paste in grades, scores, or measurements — results update instantly.
- Ratio CalculatorSimplify ratios to lowest terms, convert a ratio to a decimal, scale to any value, and compare two ratios. For recipes, map scales, and aspect ratios.
- Root CalculatorCalculate square roots, cube roots, and any nth root with high precision. Handles perfect squares and irrational results — shows the decimal approximation and the radical form.
- Permutation & Combination CalculatorCalculate nPr (permutations) and nCr (combinations) with a step-by-step formula breakdown. Enter n and r to see the count, formula expansion, and intermediate values.
- Exponent CalculatorRaise any base to any power — including negative bases, decimal exponents, and fractional powers. Shows the full numeric result with high precision for scientific and engineering work.