Matrix Calculator
Add, subtract or multiply two matrices, or find the transpose, determinant and inverse of the first. Enter rows separated by semicolons.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
Entries of AB: (AB)ij = sum of A(i,k) x B(k,j)
Frequently asked questions
How do I type a matrix?
Separate the numbers in a row with spaces or commas and separate rows with semicolons, such as 1 2; 3 4.
When can I multiply?
The number of columns in A must equal the number of rows in B.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Determinant Calculator
Find the determinant of a square matrix up to 8 by 8, and see whether the matrix is invertible. Enter rows separated by semicolons.
Vector Calculator
Add, subtract, dot and cross two vectors in 2D or 3D, and find their magnitudes, the angle between them and the unit vector.
Polynomial Calculator
Add, subtract, multiply, differentiate, integrate or evaluate polynomials from their coefficients, and find the roots of the first one.