User manual · Graphing and data

How to enter a matrix in a calculator

How to enter a matrix in a calculator: set rows and columns, type or paste each entry, use fractions, and the key steps on a TI-84 Plus or Casio fx-991CW.

By Hira Noor, mathematicianUpdated
Short answerTo enter a matrix in a calculator, set its size first (rows, then columns), then type each entry row by row and confirm it. In the online matrix calculator below, choose Rows and Columns, type one number per cell and press Enter or Tab to move on, or paste the whole block from a spreadsheet. On a TI-84 Plus, press 2nd x⁻¹ (MATRIX), go to EDIT, choose [A], type the dimensions and then the entries. On a Casio fx-991CW, open the Matrix app, press TOOLS, choose MatA, set the size, select Confirm and type each entry followed by EXE.

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.

Try
Matrix A

Type whole numbers, decimals or fractions such as 3/4. Choose the size above the grid, or paste a block copied from a spreadsheet. Entries must be numbers, not letters.

Result

Determinant det(A): −1

Determinant det(A)

det⁡A=−1\det A = -1

Size of A
3 × 3
Invertible?Choose Inverse A⁻¹ to see the inverse.
Yes, det A ≠ 0
Trace of A
33

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)
  1. 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.

    det⁡A=|21−1−3−12−212|\det A = \begin{vmatrix} 2 & 1 & -1 \\ -3 & -1 & 2 \\ -2 & 1 & 2 \end{vmatrix}
  2. 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).

    det⁡A=|21−101212−212|\det A = \begin{vmatrix} 2 & 1 & -1 \\ 0 & \frac{1}{2} & \frac{1}{2} \\ -2 & 1 & 2 \end{vmatrix}
  3. R3 → R3 + R1

    Add row 1 to row 3 to make the entry in column 1 zero (this does not change the determinant).

    det⁡A=|21−101212021|\det A = \begin{vmatrix} 2 & 1 & -1 \\ 0 & \frac{1}{2} & \frac{1}{2} \\ 0 & 2 & 1 \end{vmatrix}
  4. 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).

    det⁡A=|21−10121200−1|\det A = \begin{vmatrix} 2 & 1 & -1 \\ 0 & \frac{1}{2} & \frac{1}{2} \\ 0 & 0 & -1 \end{vmatrix}
  5. Multiply the diagonal entries

    The matrix is upper triangular, so its determinant is the product of the diagonal entries.

    det⁡A=2⋅(12)⋅(−1)=−1\det A = 2 \cdot \left(\frac{1}{2}\right) \cdot \left(-1\right) = -1

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

  1. 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.

  2. 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.

  3. 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.

  4. 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 [2113]\begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix}, set 2 rows and 2 columns, then type 2, Tab, 1, Tab, 1, Tab, 3. With Inverse A⁻¹ selected the result is [3/5−1/5−1/52/5]\begin{bmatrix} 3/5 & -1/5 \\ -1/5 & 2/5 \end{bmatrix}, 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

Largest matrix each calculator accepts
CalculatorSmallestLargestShape
Matrix calculator (A and B)1 × 16 × 6Any rows and columns
Determinant calculator1 × 16 × 6Square
Inverse matrix calculator1 × 16 × 6Square
RREF calculator1 × 16 rows × 7 columnsAny, or augmented
Eigenvalue calculator1 × 14 × 4Square
System of equations calculator, matrix mode2 equations4 equations (4 × 5)Augmented [A | b]
Casio fx-991CW Matrix app (MatA to MatD)1 × 14 × 4Any rows and columns

Typing entries: numbers, decimals and fractions

What a matrix cell accepts
You typeStored as
3, -2 or −2The whole number
0.251/4, exactly
3/4, -5/2The fraction, reduced to lowest terms
1 1/23/2 (a mixed number: whole part, space, fraction)
1.5e-33/2000
1,51.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 [1/21/31/41/5]\begin{bmatrix} 1/2 & 1/3 \\ 1/4 & 1/5 \end{bmatrix} comes out as exactly 1/60 (check it). A matrix such as [1224]\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} 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

Keyboard navigation in the matrix grid
KeyMoves to
Tab / Shift TabThe next or previous cell, row by row
Enter or Arrow DownThe cell below (so you can type a column top to bottom)
Arrow UpThe cell above
Arrow RightThe cell to the right, when the cursor is at the end of the entry
Arrow LeftThe 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   2
Pasting these three lines into the first cell of a 3 × 3 grid fills the whole matrix. Its determinant is −1.

Pasting 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:

  1. Open the matrix menu

    Press 2nd x⁻¹ (MATRIX). The menu has three tabs: NAMES, MATH and EDIT.

  2. Go to EDIT and pick a matrix

    Press Arrow Left to select EDIT, then press 1 to edit matrix [A].

  3. 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.

  4. 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.

  5. 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:

  1. Open the Matrix app

    Press HOME, select the Matrix icon and press OK.

  2. 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.

  3. 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.

  4. Type the entries

    Type each element and press EXE to move to the next. Press BACK, AC or OK when you are done.

  5. 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.

Frequently asked questions

How do I enter a matrix in a calculator?

Set the size first, rows and then columns, then type each entry row by row and confirm it. In the online matrix calculator you pick Rows and Columns above the grid and type one number per cell; on a TI-84 Plus you use 2nd x⁻¹, EDIT, [A]; on a Casio fx-991CW you use the Matrix app, TOOLS, MatA.

How do I paste a matrix from Excel or Google Sheets?

Copy the block of cells, click the grid cell where the top-left value belongs, and paste. Rows come from the line breaks and columns from the tabs, and the grid grows to fit, up to the calculator’s largest size.

What is the largest matrix I can enter?

The matrix, determinant and inverse calculators take up to 6 × 6, the RREF calculator up to 6 rows by 7 columns, and the eigenvalue calculator up to 4 × 4. The Casio fx-991CW Matrix app also stops at 4 × 4.

Can I enter fractions in a matrix?

Yes. Type 3/4, -5/2 or a mixed number such as 1 1/2 directly in a cell. Decimals are stored exactly too, so 0.1 becomes 1/10 and results stay as exact fractions.

Why does a cell say it is not a number or fraction?

The cell contains something other than a number, a fraction or a mixed number, such as a letter, a unit or a formula like sqrt(2). Replace it with a value such as 1.5, 3/2 or 1 1/2.

Tools on this page

Matrix Calculator

Multiply, add and subtract matrices up to 6 × 6, plus determinant, inverse, transpose and powers, exactly.

Determinant Calculator

Exact determinants of 2x2 to 6x6 matrices by row reduction or cofactor expansion, with every step.

Inverse Matrix Calculator

Exact inverses of 2x2 to 6x6 matrices by Gauss–Jordan elimination, with every row operation and a check.

Vector Calculator

Dot product, angle between vectors, magnitude, unit vector and projections of 2D to 6D vectors.