The calculator below opens with a 3 × 3 matrix already entered and shows its determinant, −1. Change any cell, or open the same matrix in the full calculator to multiply, invert or transpose it.
Jump to: online steps, size limits, what a cell accepts, pasting, TI-84, Casio or vectors.
Result
Determinant det(A)
- Size of A
- 3 × 3
- Invertible?Choose Inverse A⁻¹ to see the inverse.
- Yes, det A ≠ 0
- Trace of A
The determinant of A is −1. Because it is not 0, A is invertible, and multiplying by A scales areas (or volumes) by a factor of 1.
Step-by-step working (5 steps)
Start with the matrix
Use row operations to make the matrix upper triangular. Adding a multiple of one row to another does not change the determinant; each row swap changes its sign.
R2 → R2 + (3/2)R1
Add 3/2 times row 1 to row 2 to make the entry in column 1 zero (this does not change the determinant).
R3 → R3 + R1
Add row 1 to row 3 to make the entry in column 1 zero (this does not change the determinant).
R3 → R3 − 4R2
Subtract 4 times row 2 from row 3 to make the entry in column 2 zero (this does not change the determinant).
Multiply the diagonal entries
The matrix is upper triangular, so its determinant is the product of the diagonal entries.
This is the matrix calculator, started with this page’s next example. Its own page adds more presets, the formulas and worked examples.
How to enter a matrix in the online calculator
Choose the size
Above the grid, pick the number of Rows and Columns. Calculators that need a square matrix, such as the determinant calculator and the inverse matrix calculator, show one Size menu with choices such as 3 × 3.
Type the first row
Click the top-left cell and type a number. Press Tab or Arrow Right (at the end of the entry) to move along the row. Each cell holds one entry, so a 2 × 3 matrix has six cells.
Fill the remaining rows
Tab wraps to the start of the next row. To fill a column top to bottom instead, press Enter or Arrow Down after each entry.
Pick the operation and read the result
Choose the operation, such as determinant, inverse, transpose or A × B, and calculate. If a cell is empty or not a number, the message names it, for example "Row 2, column 3 is empty", and that cell is marked as invalid.
Example: to enter , set 2 rows and 2 columns, then type 2, Tab, 1, Tab, 1, Tab, 3. With Inverse A⁻¹ selected the result is , because the determinant is 5. Run this example.
Changing the size keeps the entries you have already typed. New cells start at 0, and making the grid smaller removes the last rows or columns. For a system of equations, the RREF calculator and the system of equations calculator add a column for the constants, drawn with a thicker left border.
Matrix size limits by calculator
| Calculator | Smallest | Largest | Shape |
|---|---|---|---|
| Matrix calculator (A and B) | 1 × 1 | 6 × 6 | Any rows and columns |
| Determinant calculator | 1 × 1 | 6 × 6 | Square |
| Inverse matrix calculator | 1 × 1 | 6 × 6 | Square |
| RREF calculator | 1 × 1 | 6 rows × 7 columns | Any, or augmented |
| Eigenvalue calculator | 1 × 1 | 4 × 4 | Square |
| System of equations calculator, matrix mode | 2 equations | 4 equations (4 × 5) | Augmented [A | b] |
| Casio fx-991CW Matrix app (MatA to MatD) | 1 × 1 | 4 × 4 | Any rows and columns |
Typing entries: numbers, decimals and fractions
| You type | Stored as |
|---|---|
3, -2 or −2 | The whole number |
0.25 | 1/4, exactly |
3/4, -5/2 | The fraction, reduced to lowest terms |
1 1/2 | 3/2 (a mixed number: whole part, space, fraction) |
1.5e-3 | 3/2000 |
1,5 | 1.5 (a comma between digits is read as a decimal comma) |
A cell must contain a number or a fraction. Expressions such as sqrt(2) or pi are not accepted; type a decimal approximation such as 1.414 instead. Entries must be real numbers, so complex values such as 2 + 3i cannot go in a matrix cell; work with single complex numbers in the complex number calculator. Because a comma between digits counts as a decimal comma, do not type thousands separators: 1,000 is read as 1, so type 1000. When you move into a cell its contents are selected, so typing replaces the old value at once.
Every entry is stored as an exact fraction, so the arithmetic introduces no rounding error. A decimal such as 0.1 is stored as 1/10, and the determinant of comes out as exactly 1/60 (check it). A matrix such as has determinant 0, so asking for its inverse returns a message that it is singular rather than a result full of huge numbers.
Moving around the grid
| Key | Moves to |
|---|---|
| Tab / Shift Tab | The next or previous cell, row by row |
| Enter or Arrow Down | The cell below (so you can type a column top to bottom) |
| Arrow Up | The cell above |
| Arrow Right | The cell to the right, when the cursor is at the end of the entry |
| Arrow Left | The cell to the left, when the cursor is at the start of the entry |
Inside a cell, Arrow Left and Arrow Right first move the cursor through the text you typed, so you can correct a single digit without leaving the cell. Screen readers announce every cell by its position, such as "Row 1, column 2".
How to paste a matrix from a spreadsheet
Select a block of cells in Excel, Google Sheets, LibreOffice Calc or Numbers and copy it. Click the grid cell where the top-left value should go and paste. Line breaks start new rows, and tabs, commas or spaces separate the columns, so text copied from a document or a plain-text file works too. The grid grows to fit the pasted block, up to the calculator’s maximum size (a square matrix stays square); values beyond the maximum are left out.
2 1 -1
-3 -1 2
-2 1 2Pasting a single value without spaces or line breaks puts it in the current cell. Because spaces and commas separate columns when pasting, paste mixed numbers such as 1 1/2 as improper fractions (3/2) or decimals (1.5), and paste decimals with a point, not a comma.
How to enter a matrix on a TI-84 Plus
The TI-84 Plus family stores matrices in named variables, [A] to [J]. Texas Instruments gives these steps for the matrix editor:
Open the matrix menu
Press 2nd x⁻¹ (MATRIX). The menu has three tabs: NAMES, MATH and EDIT.
Go to EDIT and pick a matrix
Press Arrow Left to select EDIT, then press 1 to edit matrix [A].
Set the dimensions
Type the number of rows, press ENTER, then the number of columns and press ENTER. For a 2 × 2 matrix: 2 ENTER 2 ENTER.
Type the entries
Type each entry and press ENTER; the cursor moves along the row. Use the arrow keys to go back and fix an entry.
Leave the editor and use the matrix
Press 2nd MODE (QUIT). To use [A] in a calculation, press 2nd x⁻¹ and choose it from NAMES; for its determinant, choose det( from the MATH tab. For the inverse, press 2nd x⁻¹, 1 to paste [A], then the x⁻¹ key and ENTER; typing ^ −1 instead gives ERR:DOMAIN.
On a TI-84 Plus CE you can also type a matrix straight into a calculation: ALPHA ZOOM opens the quick matrix editor, which starts at 2 × 2. Choose the dimensions, select OK, and type each entry, moving to the next with Arrow Right. To store the result, press STO→, then 2nd x⁻¹, choose [A] and press ENTER.
How to enter a matrix on a Casio fx-991CW
The Casio fx-991CW and fx-570CW keep up to four matrices, MatA to MatD, each up to 4 × 4. Casio’s manual gives these steps:
Open the Matrix app
Press HOME, select the Matrix icon and press OK.
Choose a matrix variable
Press TOOLS to show the matrix variable list, select MatA and press OK. If MatA already holds a matrix, select Define New.
Set the size
The size screen starts at 2 rows and 2 columns. Select Rows and Columns to change them, then select Confirm and press OK.
Type the entries
Type each element and press EXE to move to the next. Press BACK, AC or OK when you are done.
Use the matrix
Press CATALOG and choose Matrix › MatA to put it in a calculation, for example MatA × MatB, then press EXE. The result appears on the MatAns screen.
Checking a handheld answer
Enter the same matrix in the matrix calculator to check a TI-84 or Casio answer with the working shown. Handheld calculators often show inverses as decimals; the online grid keeps them as exact fractions such as 3/5.
Entering vectors
In the vector calculator, which finds dot products, angles and projections, type each vector as a list of 2 to 6 components separated by commas or spaces, for example 1, 2, 2 for 1i + 2j + 2k. Both vectors need the same number of components, and they take whole numbers or decimals such as 0.5, not fractions. The cross product calculator has one box per component instead, so it also takes fractions such as 1/2: with a = (1, 2, 2) and b = (2, −1, 2), the cross product is (6, 2, −5). In the matrix tools, a vector is a matrix with one row or one column, so a column vector of three numbers is a 3 × 1 grid.
The math solver also accepts matrices typed as nested lists, row by row: det([[1,2],[3,4]]) gives −2, while inverse([[2,1],[1,1]]) and rref([[1,2,3],[4,5,6]]) show the working step by step.