Click to show tips
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Add Two Matrices
Add two 2x2 matrices element-wise.
Key values: 2x2 matrices · A + B · Addition
Matrix Multiplication
Multiply a 2x3 matrix by a 3x2 matrix to get a 2x2 result.
Key values: 2x3 times 3x2 · A times B · Multiplication
3x3 Determinant
Compute the determinant of a 3x3 matrix.
Key values: 3x3 matrix · det(A) · Determinant
Matrix Inverse
Compute the inverse of a 2x2 matrix.
Key values: 2x2 matrix · A⁻¹ · Inverse
How we ensure accuracy
- Formulas sourced from
- National Institute of Standards and TechnologyMITmathjs.org
- Research validated by
- 4 independent research systems— multi-source consensus methodology
- Last reviewed
- March 2026(formula v1.0)
- Methodology
- Full process details
Matrix operations follow standard linear algebra definitions as described in authoritative textbooks and verified against NIST computational resources
About This Calculator
Matrices are rectangular arrays of numbers that are central to linear algebra, computer science, engineering, and data science. This calculator supports 11 operations on matrices up to , covering everything from basic arithmetic to eigenvalue computation.
Enter your matrix entries, select an operation, and get instant results along with properties of the input matrix such as whether it is square, symmetric, singular, diagonal, or the identity.
Key Formulas
Matrix Addition
For two matrices and , the sum is computed element-wise:
Matrix Multiplication
For an matrix and an matrix , the product is an matrix:
Determinant (2x2)
Determinant (3x3, Sarrus Rule)
Matrix Inverse (2x2)
Eigenvalue Equation
The eigenvalues of a matrix satisfy:
Trace
Worked Examples
Example 1: Matrix Addition
Add two 2x2 matrices:
Example 2: Matrix Multiplication
Multiply a 2x2 matrix by a 2x2 matrix:
Example 3: Determinant
Find the determinant of a 3x3 matrix:
Example 4: Inverse of a 2x2 Matrix
Tips & Common Mistakes
- Multiplication order matters. In general, . Always check dimensions before multiplying.
- Invertibility check. Before computing the inverse, ensure the determinant is nonzero. A singular matrix (det = 0) has no inverse.
- RREF is unique. No matter which sequence of row operations you perform, the RREF of a matrix is always the same.
- Trace and eigenvalues. The trace of a matrix equals the sum of its eigenvalues, and the determinant equals the product of its eigenvalues.
- Floating-point precision. Very small values near zero may appear due to floating-point arithmetic. Values smaller than 10^(-10) are treated as zero.
Frequently Asked Questions
What is a matrix?
A matrix is a rectangular array of numbers arranged in rows and columns. It is a fundamental object in linear algebra used to represent systems of linear equations, linear transformations, and much more.
Why is matrix multiplication not commutative?
Matrix multiplication is not commutative because A times B and B times A may involve different dimensions or different element-wise sums. Even when both products are defined and have the same dimensions, the results are generally different because the order of row-column dot products changes.
When is a matrix invertible?
A square matrix is invertible (non-singular) if and only if its determinant is nonzero. Equivalently, the matrix must have full rank, meaning all its rows (or columns) are linearly independent.
What is Reduced Row Echelon Form (RREF)?
RREF is a standardized form of a matrix obtained through Gauss-Jordan elimination. In RREF, each leading entry is 1, each leading 1 is the only nonzero entry in its column, and leading 1s move strictly to the right as you go down. RREF is unique for any given matrix.
What are eigenvalues and eigenvectors?
For a square matrix A, an eigenvalue lambda is a scalar such that Av = lambda v for some nonzero vector v (the eigenvector). Eigenvalues reveal fundamental properties of a transformation: they tell you which directions are scaled and by how much.
Can I compute eigenvalues for non-square matrices?
Eigenvalues are only defined for square matrices. For non-square matrices, you can compute singular values via Singular Value Decomposition (SVD), which generalizes the concept.
Disclaimer
This calculator is designed for educational and reference purposes. While the underlying algorithms follow standard linear algebra definitions and are validated against established mathematical libraries, results may be subject to floating-point precision limitations for very large or ill-conditioned matrices. Always verify critical results independently.
Related Calculators
6 CalculatorsMore Math calculators