Matrix CalculatorPerform matrix operations: add, multiply, find determinant, inverse, and transpose for 2×2 and 3×3 matrices.

Matrix Calculator
Perform matrix operations: add, multiply, find determinant, inverse, and transpose for 2×2 and 3×3 matrices.
Choose Matrix Size
Select 2×2 or 3×3 matrix dimensions for your calculation.
Select Operation
Pick from add, subtract, multiply, determinant, inverse, or transpose.
Enter Matrix Values
Fill in the matrix cells with your numbers. For binary operations, fill both Matrix A and Matrix B.
What Is Matrix Calculator?
A matrix calculator performs arithmetic and algebraic operations on matrices — rectangular arrays of numbers used extensively in linear algebra, computer graphics, physics, statistics, and engineering. This tool supports both 2×2 and 3×3 matrices with six core operations: addition and subtraction (element-wise), multiplication (row-by-column dot products), determinant (a scalar value that indicates whether the matrix is invertible), inverse (the matrix that when multiplied by the original gives the identity matrix), and transpose (swapping rows with columns). Matrix math is fundamental to 3D transformations in games and CAD software, solving systems of linear equations, statistical regression, quantum mechanics, and machine learning algorithms. While doing matrix multiplication by hand is tedious and error-prone, this calculator handles all the arithmetic instantly, including the cofactor expansion method for determinants and the adjugate method for finding inverses.
Why Use Our Matrix Calculator?
- Supports all essential matrix operations in one tool
- Handles both 2×2 and 3×3 matrix sizes
- Detects singular matrices (determinant = 0) when computing inverse
- Clean visual matrix layout for easy data entry
- Instant computation — no waiting or server round-trips
Common Use Cases
Linear Algebra Coursework
Check matrix homework problems including multiplication, determinants, and inverse calculations.
Computer Graphics
Compute transformation matrices for rotation, scaling, and translation in 2D/3D graphics.
Systems of Equations
Use matrix inverse or determinant to solve systems of linear equations.
Data Science
Understand matrix operations underlying PCA, regression, and other statistical methods.
Technical Guide
Matrix operations follow strict rules based on matrix dimensions. Addition and subtraction are element-wise: (A ± B)[i][j] = A[i][j] ± B[i][j], requiring matrices of the same size. Matrix multiplication uses the row-by-column dot product: (AB)[i][j] = Σ(A[i][k] × B[k][j]) for k = 1 to n. Note that matrix multiplication is NOT commutative (AB ≠ BA in general). The determinant for a 2×2 matrix [a,b;c,d] is ad − bc. For 3×3, it uses cofactor expansion along the first row: det(A) = a(ei−fh) − b(di−fg) + c(dh−eg). A matrix is invertible only when its determinant is non-zero. The inverse of a 2×2 matrix [a,b;c,d] is (1/det) × [d,−b;−c,a]. For 3×3, the calculator computes the matrix of cofactors, transposes it (adjugate), and divides by the determinant. Transpose simply swaps rows and columns: A^T[i][j] = A[j][i]. All results are displayed with up to 4 decimal places for readability.
Tips & Best Practices
- 1Matrix multiplication is not commutative — A×B usually differs from B×A
- 2A determinant of 0 means the matrix is singular (not invertible)
- 3For a 2×2 matrix, the inverse formula is straightforward: swap diagonals, negate off-diagonals, divide by determinant
- 4The transpose of a product equals the product of transposes in reverse order: (AB)^T = B^T × A^T
- 5The identity matrix (1s on diagonal, 0s elsewhere) is the matrix equivalent of the number 1
Related Tools

Quadratic Equation Solver
Solve quadratic equations (ax² + bx + c = 0) and find roots, discriminant, and vertex.

Scientific Calculator
Full-featured scientific calculator with trigonometry, logarithms, factorials, and more.

Number Base Converter
Convert numbers between any bases from 2 to 36, including binary, octal, decimal, and hex.

Percentage Calculator
Calculate percentages, percentage change, and what percent one number is of another.

Fraction Calculator
Add, subtract, multiply, and divide fractions with automatic simplification.

Exponent Calculator
Calculate x raised to the power of n (xⁿ) with scientific notation output.
Frequently Asked Questions
QWhat is a matrix determinant used for?
QWhy can't I find the inverse of my matrix?
QWhat is the difference between 2×2 and 3×3 operations?
QCan I multiply matrices of different sizes?
QWhat is a transpose used for?
About Matrix Calculator
Matrix Calculator is a free online tool from FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration required. No ads. Just fast, reliable tools.







