Matrix Calculator
Add, subtract, multiply matrices — determinant & transpose
Matrix A
Matrix B
What is the Matrix Calculator?
A matrix calculator handles the arithmetic that gets tedious fast: adding two matrices, multiplying them, finding the determinant, or inverting a matrix entirely. Students use it to check their work. Engineers use it in linear algebra computations. Anyone who's tried multiplying a 3×3 matrix by hand knows how easy it is to make one sign error that wrecks the whole result. CalciHub's version handles the heavy lifting — you enter the values, it handles the rest.
How Does It Work?
Matrix operations each have their own rules. Addition is done element by element. Multiplication works row-by-column and only works when the column count of the first matrix matches the row count of the second. Determinants apply to square matrices only and use a recursive expansion formula. The inverse, when it exists, satisfies A × A⁻¹ = I, where I is the identity matrix.
For 2×2 matrix A = [[a, b], [c, d]]: Determinant: det(A) = ad − bc Inverse: A⁻¹ = (1/det(A)) × [[d, −b], [−c, a]]
• a, b, c, d = elements of the 2×2 matrix
• det(A) = determinant of matrix A
• A⁻¹ = inverse of matrix A
• I = identity matrix (1s on diagonal, 0s elsewhere)
How to Use CalciHub's Matrix Calculator
1. Select the operation you want: addition, subtraction, multiplication, determinant, or inverse.
2. Choose the matrix size (e.g., 2×2, 3×3).
3. Enter the values row by row in the input grid.
4. For two-matrix operations, fill in both Matrix A and Matrix B.
5. Click Calculate to see the result matrix or scalar value.
Tip: If you get an error on matrix multiplication, double-check that the number of columns in the first matrix equals the number of rows in the second.
A Quick Example
Take two 2×2 matrices: A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]]. Multiplying A × B: the top-left element is (1×5) + (2×7) = 19. The top-right is (1×6) + (2×8) = 22. The bottom-left is (3×5) + (4×7) = 43. The bottom-right is (3×6) + (4×8) = 50. Result: [[19, 22], [43, 50]]. The calculator gives all four values in one step.
Matrix multiplication is not commutative — A × B and B × A give different results, which the calculator makes obvious when you try both orders.
Frequently Asked Questions
Only square matrices with a non-zero determinant. If det(A) = 0, the matrix is singular and has no inverse. The calculator will tell you this directly.