Matrix Calculator
Add, subtract, multiply, or find the determinant of 2ร2 and 3ร3 matrices.
Pick a size and operation, fill in the values, and calculate.
What Is a Matrix?
A matrix is a rectangular grid of numbers used throughout algebra, computer graphics, engineering, and data science to represent and transform systems of numbers efficiently. This calculator handles the core operations on 2ร2 and 3ร3 matrices โ the sizes most commonly encountered in introductory linear algebra.
The Four Operations
Multiplication: row-by-column dot products โ (AรB)แตขโฑผ = ฮฃ Aแตขโ ร Bโโฑผ
Determinant (2ร2): ad โ bc
Determinant (3ร3): expansion by cofactors along the first row
Addition and subtraction are entry-by-entry and intuitive. Multiplication is the operation people most often get wrong by hand โ each entry in the result comes from multiplying a full row of A by a full column of B and summing the products.
How to Use This Calculator
Choose your matrix size and operation. For addition, subtraction, and multiplication, fill in both Matrix A and Matrix B. For the determinant, only Matrix A is needed. Enter your values and calculate โ the result displays as a grid (for add/subtract/multiply) or a single number (for determinant).
Why Matrix Multiplication Isn't Commutative
Unlike regular number multiplication, AรB usually does not equal BรA for matrices โ order matters. This trips up many students first learning linear algebra, since it breaks an assumption that holds for ordinary arithmetic.
Common Uses of Matrices
- Solving systems of linear equations: representing multiple equations compactly
- Computer graphics: rotating, scaling, and transforming 2D/3D objects
- Data science: representing data sets and transformations in machine learning
- Engineering: modeling systems with multiple interacting variables
Worked Example
For matrices A = [[1,2],[3,4]] and B = [[5,6],[7,8]]: A+B = [[6,8],[10,12]]. AรB = [[19,22],[43,50]] โ note how each entry comes from a row-column dot product, not simple entry-wise multiplication. The determinant of A is (1ร4)โ(2ร3) = โ2.
Where This Fits
Pair this with our quadratic equation solver for other algebra needs.
Frequently Asked Questions
Thank you for reading this post, don't forget to subscribe!
Explore All NerdyTools By Categories
Find the right tool for any task โ free, fast, and no sign-up required
