Matrix Calculator — Multiply, Determinant, Inverse
Add, subtract, multiply, transpose matrices and find determinant & inverse (2×2 to 4×4). Client-side.
How to use
- 1 Pick the matrix size (2×2, 3×3 or 4×4) and an operation.
- 2 Fill in matrix A (and B for add / subtract / multiply).
- 3 The result — a matrix or a scalar — updates instantly.
Why use this tool
- Add, subtract, multiply, transpose, plus determinant and inverse.
- Works for 2×2, 3×3 and 4×4 square matrices.
- Runs entirely in your browser.
Frequently asked questions
How is the determinant computed?
By cofactor (Laplace) expansion along the first row, recursively reducing to 2×2 determinants.
How is the inverse found?
Via the adjugate matrix divided by the determinant. If the determinant is zero the matrix is singular and has no inverse.
Why must the matrices be square?
Determinant and inverse are only defined for square matrices; this tool keeps A and B the same square size so every operation is valid.
What is the transpose?
The matrix flipped over its diagonal — rows become columns and columns become rows.
What is Matrix Calculator?
A matrix calculator performs matrix arithmetic — addition, subtraction, multiplication, transpose — and computes the determinant and inverse of square matrices up to 4×4.
Features
Six operations
A+B, A−B, A×B, det(A), A⁻¹, and Aᵀ on entered matrices.
Singular detection
Reports when a matrix has no inverse (determinant zero) instead of returning garbage.
Free & private
Runs on your device — nothing is uploaded.
Example
Input
A = [[1,2],[3,4]] × B = [[5,6],[7,8]]
Output
[[19, 22], [43, 50]]
Common use cases
-
1
Linear algebra homework
Check matrix products, determinants, and inverses.
-
2
Solve linear systems
Use the inverse to solve Ax = b for small systems.
-
3
Graphics & transforms
Verify transformation matrices used in graphics or robotics.
Zerethon's matrix calculator performs matrix arithmetic in your browser — addition, subtraction, multiplication, determinant, inverse, and transpose. Results are computed exactly for the entered values, with a clear error when a matrix is singular (no inverse). Everything runs client-side — nothing is uploaded.
- Category
- Math
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
- Matrix Multiplication — Wolfram MathWorld — Wolfram MathWorld
- Matrix multiplication — Wikipedia
Privacy
Your data never leaves your browser unless explicitly stated. Matrix Calculator runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
Percentage Calculator
Three-in-one percentage calculator: X% of Y, X as a % of Y, and % increase/decrease. Instant, client-side.
Open toolScientific Calculator
Online scientific calculator — trig, log, powers, roots, factorial, π/e, DEG/RAD, with a proper expression parser. Client-side.
Open toolFraction Calculator
Add, subtract, multiply and divide fractions with automatic simplification, decimal and mixed-number output. Client-side.
Open toolCombinations & Permutations Calculator
Exact nCr, nPr and n! with big-integer precision. Client-side, no signup.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.