Matrix Calculator
Add, subtract, multiply, transpose, and find the determinant or inverse of 2x2 and 3x3 matrices.
Try an example
Load a small multiplication example or a 3 × 3 inverse example, then calculate to see the result and working.
How to use the matrix calculator
- Choose a 2 × 2 or 3 × 3 matrix size and enter a finite number in every cell.
- Select an operation. Addition and subtraction use matching cells; multiplication combines rows of A with columns of B.
- Calculate to see a matrix or scalar result. Copy the result when you need plain text.
Supported operations
- Add and subtract: combine corresponding entries in A and B.
- Multiply: take the dot product of each row of A and column of B.
- Determinant: calculate the signed scale factor for square matrix A.
- Transpose: swap the rows and columns of A.
- Inverse: find A⁻¹ such that A × A⁻¹ is the identity, when A is numerically invertible.
Matrix calculator FAQs
Which matrix sizes can I use?
This calculator supports equal-size 2 × 2 and 3 × 3 matrices.
Why can an inverse be unavailable?
A matrix has no inverse when it is singular. This calculator also reports near-singular matrices when floating-point precision cannot produce a reliable inverse.
Are the results exact fractions?
No. Results use floating-point arithmetic and are formatted to up to 10 significant digits, so they are approximate.