Desmos Matrix Calculator: Add, Multiply & Solve Matrices
The Desmos matrix calculator lets you work with matrices inside the free Desmos graphing calculator, no separate app, no download, no sign-up. You type a matrix the same way you type any function, and Desmos handles the arithmetic for you.
Matrices show up in linear algebra, in systems of equations, and in computer graphics. Doing the arithmetic by hand is slow and easy to get wrong. Desmos removes the busywork so you can focus on what the matrix actually means.
1. What Is a Matrix in Desmos?
A matrix is a rectangular grid of numbers, written in square brackets. In Desmos you create one with the matrix command, and it behaves like any other value: you can store it in a variable, add it to another matrix, multiply it, and ask Desmos for its determinant or inverse.
Desmos treats a matrix as a single object. That is what makes it powerful. Instead of adding nine numbers one by one, you add two matrices with one expression and Desmos does the whole grid at once.
2. How to Enter a Matrix in Desmos
- Open the Desmos graphing calculator at desmos.com/calculator.
- Click in an expression line and type a letter, for example A, then =.
- Type the matrix using square brackets and commas, for example A = [[1, 2], [3, 4]]. Each inner pair of brackets is one row.
- Press Enter. Desmos shows the matrix as a grid on the right.
- To make a bigger matrix, add more rows inside the outer brackets. A 3 by 3 matrix has three inner lists of three numbers each.
You can also build a matrix by clicking the matrix button on the Desmos keypad, which gives you an empty grid to fill in. The typed method is faster once you know the pattern.
Give each matrix its own letter, A, B, C, so you can refer to them in later lines. Desmos remembers them for the whole session.
3. Add and Subtract Matrices
Adding matrices in Desmos is one expression: type A + B and Desmos adds every matching pair of numbers. Subtraction works the same way with A – B.
Two rules matter. First, the matrices must be the same size, you cannot add a 2 by 2 matrix to a 3 by 3 matrix, and Desmos will tell you so. Second, addition works entry by entry: the number in row 1, column 1 of A adds to the number in row 1, column 1 of B, and so on.
Scalar multiplication is just as simple. Type 3A and Desmos multiplies every entry in A by 3. This is handy for scaling a matrix before adding it to another one.
4. Multiply Matrices
Matrix multiplication is where students make the most mistakes by hand, and where Desmos saves the most time. Type A * B and Desmos multiplies the two matrices using the row-by-column rule.
Remember the size rule: you can only multiply A by B if the number of columns in A equals the number of rows in B. A 2 by 3 matrix times a 3 by 2 matrix works and gives a 2 by 2 result. A 2 by 3 matrix times a 2 by 3 matrix does not work, and Desmos will show an error.
Order matters too. In general, A * B is not the same as B * A. Try both in Desmos and compare the results, it is the fastest way to see why matrix multiplication is not commutative.
5. Find the Determinant and Inverse
The determinant of a square matrix is a single number that tells you a lot about it, including whether the matrix can be inverted at all. In Desmos, type det(A) and the value appears at once.
The inverse is the matrix that undoes the original. Type A^(-1) or A^-1 and Desmos gives you the inverse, if one exists. Multiply a matrix by its inverse and you get the identity matrix, ones down the diagonal, zeros everywhere else. Try it: type A * A^(-1) and watch the identity matrix appear.
If a matrix has no inverse, its determinant is zero and Desmos will show an error for the inverse. That is not a bug. A zero determinant means the matrix squashes space flat, so there is nothing to undo.
6. Solve Systems of Equations with Matrices
This is the most useful trick in the whole guide. A system of linear equations can be written as one matrix equation: A * x = b, where A holds the coefficients, x holds the unknowns, and b holds the answers.
To solve it in Desmos:
- Enter the coefficient matrix as A.
- Enter the answer column as b, for example b = [[5], [11]].
- Type A^(-1) * b. The result is the column of values for your unknowns.
For a two-equation system this takes about a minute. For a three-equation system it saves you a whole page of elimination working, and the chance of a sign error disappears.
You can also check your answer by typing A * x and confirming it equals b. If it does, your solution is right.
7. Common Mistakes to Avoid
- Wrong sizes: adding or multiplying matrices that do not match. Check the rows and columns first.
- Forgetting brackets: every row needs its own pair of square brackets inside the outer pair.
- Mixing up order: A * B and B * A usually give different answers. Keep the order the question gives you.
- Dividing matrices: there is no matrix division. To divide by a matrix, multiply by its inverse instead.
- Rounding too early: keep full precision in Desmos and round only your final answer.
Frequently Asked Questions
Is there a separate Desmos matrix calculator?
No. Matrices live inside the free Desmos graphing calculator at desmos.com/calculator. There is no separate matrix app to download, you just type matrices as expressions.
Can Desmos find the inverse of a 3 by 3 matrix?
Yes. Desmos handles 3 by 3 matrices, and larger ones too. Type A^(-1) and Desmos returns the inverse, as long as the determinant is not zero.
Why does Desmos say my matrix multiplication is undefined?
The sizes do not match. For A * B, the columns of A must equal the rows of B. Count them, fix the smaller matrix, and try again.
Can I use matrices in Desmos Test Mode?
Test Mode locks some features depending on the exam, but basic matrix arithmetic is normally available where a graphing calculator is allowed. Check your exam board’s rules. Our guide to Desmos Test Mode explains what is locked and what is not.
Does Desmos show the working for matrix multiplication?
No. Desmos gives the answer, not the steps. For homework, write out one row-by-column calculation by hand to show your method, then use Desmos to check the full result.
Conclusion
The Desmos matrix calculator turns matrix arithmetic from a slow, error-prone chore into a single expression. Enter your matrices once, then add, multiply, invert and solve with a few keystrokes, and use the time you save to understand what the answer means.
Open the Desmos graphing calculator, type A = [[1, 2], [3, 4]], and try A^(-1). Once you see how fast it is, you will not go back to doing matrices by hand.
