Matrix Calculator
Add, multiply, invert — 2×2, 3×3, and 4×4.
Matrix A
Matrix B
How to use the matrix calculator
- Pick a size — 2×2, 3×3, or 4×4. The grids start as identity matrices; click any cell to edit.
- Fill in both matrices (B is only needed for +, −, ×).
- Press an operation — the result appears below, formatted as a matrix or a single number.
- Watch for singular matrices: if A has determinant 0, the inverse button explains why it fails instead of giving nonsense.
Frequently asked questions
How is matrix multiplication done?
With the row-times-column rule: each entry of A × B is the dot product of a row of A with a column of B. That's why multiplication is not commutative — AB and BA usually differ.
What does it mean when a matrix is singular?
Its determinant is 0, so it has no inverse — like trying to divide by zero. Geometrically, a singular matrix squashes space flat (a 2D matrix collapsing an area to a line), so the squashing can't be undone.
How is the inverse computed here?
With Gauss-Jordan elimination on the augmented matrix [A | I]: row operations turn the left half into the identity, and the right half becomes A⁻¹. Partial pivoting keeps the arithmetic stable.
Why is 4×4 the largest size?
It covers the sizes students and homework meet (2×2, 3×3, and 4×4 for 3D graphics transforms) while keeping the editable grids compact and readable on a phone.
Is my matrix data sent anywhere?
No. Every operation runs in your browser — nothing is sent to a server or stored.
More from the codex
Matrix Calculator
Add, multiply, invert matrices up to 4×4.
Graphing Calculator
Plot up to 3 functions with pan and zoom.
Open tool → LiveSystem of Equations Solver
Solve 2×2 and 3×3 systems step by step.
Open tool → LiveDerivative & Integral Calculator
Numeric derivatives and Simpson's-rule integrals.
Open tool → LiveTriangle Solver
SSS, SAS, ASA, AAS with diagram.
Open tool → LivePythagorean Calculator
Solve any side of a right triangle.
Open tool → LiveCircle Calculator
Radius, diameter, circumference, area from any one.
Open tool → LiveArea & Volume Calculator
Areas and surface/volume for common shapes.
Open tool → LiveSlope Calculator
Slope and line equation from two points, graphed.
Open tool → LiveDistance Calculator
2D/3D distance and midpoint.
Open tool → LiveBitwise Calculator
AND, OR, XOR, NOT, shifts in binary/hex.
Open tool → LiveHalf-Life Calculator
Decay math plus a decay chart.
Open tool → LiveScientific Calculator
Trig, logs, powers, roots, and factorials — with degrees/radians, memory, and history.
Open tool → LiveQuadratic Solver
Roots, vertex, discriminant, factored form, and every solution step.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it.