▦ Matrix Calculator
Add, subtract, multiply matrices, find determinants and inverses for 2×2 and 3×3 systems with step-by-step layout.
Matrix Operations — Multiply, Determinant, Inverse
BrainyCalculators editorial insight — unique to this tool
2×2 determinant ad − bc appears in graphics transforms and solving linear systems via Cramer's rule. 3D game rotation matrices multiply vertex coordinates; econometrics uses matrix form β = (X'X)⁻¹X'y for regression — related but not identical to Regression calculator's simple linear case.
When to use this calculator
Use for matrix arithmetic and determinants. For simple two-variable trend line, use Regression.
Single-variable equation instead of matrix math?
This page handles matrix operations. For symbolic equation solving, use the Algebra Calculator →
Enter values for Matrix A and Matrix B, then choose Add or Subtract.
Matrix A
Matrix B
Result
What is a Matrix Calculator?
A matrix calculator performs row-column arithmetic: addition, subtraction, multiplication, determinant, and inverse for small square matrices. It is aimed at linear algebra coursework and 2×2 / 3×3 systems.
Use this page when operands are explicit matrices. It does not solve single-variable algebra word problems or evaluate trigonometric ratios on angles.
For one-equation algebra or quadratics, use the Algebra Calculator. For slope between two points, use the Slope Calculator.
Matrix Formulas
Worked Examples
Example — Multiplication
A = [[1,2],[3,4]], B = [[5,6],[7,8]]
C[0][1] = 1×6 + 2×8 = 22
C[1][0] = 3×5 + 4×7 = 43
C[1][1] = 3×6 + 4×8 = 50
Example — Determinant
A = [[3,8],[4,6]]
How the Matrix Calculator Works
Formula, assumptions, and calculation steps for this math tool.
Methodology
Math calculators apply the relevant arithmetic, algebraic, geometric, or numeric rule to the values entered and simplify the result where possible.
Calculation Steps
- Read the values and operation selected.
- Normalize signs, decimals, fractions, or units if needed.
- Apply the mathematical rule or formula.
- Format the answer and any intermediate values for checking.
Assumptions and Limits
- Inputs must be within the supported domain of the operation.
- Decimal answers may be rounded for readability.
- Symbolic simplification is limited to the calculator scope.
Frequently Asked Questions
Matrix multiplication combines two matrices by computing dot products of rows and columns. For 2×2 matrices A and B, element C[i][j] = A[i][0]×B[0][j] + A[i][1]×B[1][j]. Unlike numbers, matrix multiplication is NOT commutative — A×B ≠ B×A in general.
The determinant is a scalar value computed from a square matrix. For a 2×2 matrix [[a,b],[c,d]], det = ad−bc. It encodes geometric information: the absolute value equals the area scaling factor of the linear transformation represented by the matrix.
A square matrix is invertible (non-singular) if and only if its determinant is non-zero. If det(A) = 0, the matrix is singular and has no inverse, meaning the corresponding system of equations has either no solution or infinitely many solutions.
The transpose Aᵀ is formed by flipping the matrix over its main diagonal — swapping rows and columns. If A is m×n, then Aᵀ is n×m. A key property: (A×B)ᵀ = Bᵀ×Aᵀ.
Real-World Applications
Common Mistakes
Matrix Operations Quick Reference
| Operation | Requirement | Result Size |
|---|---|---|
| Addition (A + B) | A and B same size | Same size as A and B |
| Multiplication (A × B) | Cols(A) = Rows(B) | Rows(A) × Cols(B) |
| Transpose (Aᵀ) | Any matrix | Rows and cols swapped |
| Determinant | Square matrix only | Scalar value |
| Inverse (A⁻¹) | Square, det ≠ 0 | Same size as A |
| Identity matrix I | Square matrix | A × I = I × A = A |
References
- Strang, Gilbert. Introduction to Linear Algebra. Wellesley-Cambridge Press, 2023.
- Lay, David C., Lay, Steven R., and McDonald, Judi J. Linear Algebra and Its Applications. Pearson, 2021.
- Horn, R.A. and Johnson, C.R. Matrix Analysis. Cambridge University Press, 2013.
- Goodfellow, I., Bengio, Y., and Courville, A. Deep Learning. MIT Press, 2016.
- Golub, G.H. and Van Loan, C.F. Matrix Computations. Johns Hopkins University Press, 2013.
Related Calculators
Browse all Math calculators →Algebra Calculator
Solve algebraic expressions and evaluate equations step by step.
Equation Solver
Solve linear and quadratic equations for x step by step.
Scientific Calculator
Full-featured scientific calculator with trigonometry, logarithms, and advanced math functions.