Perform matrix operations: addition, subtraction, multiplication, determinant, and inverse. Perfect for linear algebra and engineering.
A matrix calculator is a mathematical tool that performs operations on matrices — rectangular arrays of numbers. Our online matrix calculator supports addition, subtraction, multiplication, scalar multiplication, transpose, determinant, and inverse calculations. It is an essential tool for students studying linear algebra and professionals in data science, engineering, and physics.
To multiply matrices A and B, the number of columns in A must equal the number of rows in B. If A is m×n and B is n×p, the result is an m×p matrix. Note that matrix multiplication is NOT commutative — A×B does not equal B×A in general. This is an important property that distinguishes matrix math from regular arithmetic.
Matrices are used everywhere in modern technology. In computer graphics, transformation matrices rotate, scale, and translate 3D objects. In machine learning, data is represented as matrices and matrix multiplication powers neural networks. In economics, input-output analysis uses matrices to model interdependencies between industries. In physics, quantum mechanics is built on matrix equations.
The identity matrix is a square matrix with 1s on the diagonal and 0s everywhere else. Multiplying any matrix by the identity matrix gives the same matrix — similar to multiplying a number by 1. The identity matrix is used in solving systems of linear equations and finding matrix inverses.
Matrix multiplication combines two matrices to produce a third matrix. The element at row i, column j of the result is the dot product of row i from the first matrix and column j from the second. Unlike regular multiplication, it's not commutative (A×B ≠ B×A).
The determinant is a scalar value calculated from a square matrix. It provides information about the matrix, such as whether it's invertible. A zero determinant means the matrix is singular (not invertible). Determinants are used in solving systems of linear equations.
The inverse of a matrix A (denoted A⁻¹) is a matrix that, when multiplied by A, gives the identity matrix. Not all matrices have inverses - only square matrices with non-zero determinants are invertible. The inverse is used in solving linear systems.
Matrices are used in: computer graphics (3D transformations), machine learning (neural networks), physics (quantum mechanics), engineering (structural analysis), economics (input-output models), and cryptography (encryption algorithms).
A matrix is invertible only if its determinant is non-zero. Matrices with zero determinant are called singular and don't have inverses. This occurs when the rows or columns are linearly dependent, meaning one row/column can be expressed as a combination of others.