Elements of a Matrix - Definition, aij Notation, and Examples

#Algebra
TL;DR
The elements of a matrix are its individual entries - each single number, variable, or expression inside the grid. Every element has a unique address, written aija_{ij}, meaning the entry in row ii and column jj. This article covers the definition, the aija_{ij} notation, how to read an element's position, how to count all the elements, diagonal versus off-diagonal elements, and six worked examples.
MV
Madhukar VLast updated on August 16, 202610 min read

Every Entry In A Matrix Has Its Own Street Address

A matrix looks like a wall of numbers, but not one of those numbers is anonymous. Each has an exact address - a row and a column - and the notation aija_{ij} is how you name it without pointing.

Read the subscript in order and the address is unambiguous: the first number is the row, the second is the column. Once that convention is fixed, you can talk about any single value in a matrix of any size, and you can write general rules that apply to every element at once.

What Is An Element Of A Matrix?

An element of a matrix (also called an entry) is a single value that sits at one position in the matrix. A matrix is a rectangular arrangement of such values in rows and columns, and each value inside it is one element.

Consider the matrix

A=[432 156 789].A = \begin{bmatrix} 4 & 3 & 2 \ 1 & 5 & 6 \ 7 & 8 & 9 \end{bmatrix}.

Every one of the nine numbers, 44, 33, 22, 11, 55, 66, 77, 88, 99, is an element of AA. Elements are not limited to plain numbers; they can be variables or algebraic expressions, so

B=[x2y x+10]B = \begin{bmatrix} x & 2y \ x+1 & 0 \end{bmatrix}

has the four elements xx, 2y2y, x+1x+1, and 00. What makes something an element is not its type but its position: one value, one cell. The grid that holds them is set by the order of a matrix, which fixes how many rows and columns there are.

What Is The aij Notation For Matrix Elements?

Each element of a matrix AA is named by a lowercase letter with two subscripts:

aij=the element in row i and column j.a_{ij} = \text{the element in row } i \text{ and column } j.

The first subscript is always the row; the second is always the column. So in the matrix AA above:

a11=4,a23=6,a32=8.a_{11} = 4, \qquad a_{23} = 6, \qquad a_{32} = 8.

Reading a23a_{23}: go to row 22, then column 33 - the value there is 66. The whole matrix can then be written compactly as A=[aij]A = [a_{ij}], which says "AA is the matrix whose entry in row ii, column jj is aija_{ij}" for all valid ii and jj. That single piece of notation is what lets textbooks state rules like "the transpose swaps aija_{ij} with ajia_{ji}" without drawing a single grid - the same shorthand that powers the transpose of a matrix and every operation built on entries.

How Do You Find The Position Of An Element In A Matrix?

To locate an element, read its subscript row-first, column-second, and count from the top-left corner.

Take the matrix

M=[10203040 50607080].M = \begin{bmatrix} 10 & 20 & 30 & 40 \ 50 & 60 & 70 & 80 \end{bmatrix}.

  • m13m_{13} is row 11, column 33, so m13=30m_{13} = 30.

  • m24m_{24} is row 22, column 44, so m24=80m_{24} = 80.

  • m21m_{21} is row 22, column 11, so m21=50m_{21} = 50.

The order of the two subscripts is not decorative. m13m_{13} and m31m_{31} point to different cells - and in a matrix that is not square, m31m_{31} might not even exist, since MM here has only two rows. Row first, column second, every time.

How Many Elements Does A Matrix Have?

The total number of elements equals the product of the number of rows and columns. For a matrix of order m×nm \times n:

number of elements=m×n.\text{number of elements} = m \times n.

  • A 3×33 \times 3 matrix has 3×3=93 \times 3 = 9 elements.

  • A 2×42 \times 4 matrix has 2×4=82 \times 4 = 8 elements.

  • A 5×15 \times 1 column matrix has 5×1=55 \times 1 = 5 elements.

There is a neat consequence: a square matrix (equal rows and columns) always has a perfect-square number of elements, 1,4,9,16,…1, 4, 9, 16, \dots, while a matrix whose element count is not a perfect square can never be square. Counting the entries is also the first step to knowing how many equations you are really dealing with when you solve matrices in a linear system.

What Are Diagonal And Off-Diagonal Elements?

Within a square matrix, the elements split into two natural groups based on their address.

  • Diagonal elements are those where the row index equals the column index - the entries aiia_{ii}, running from the top-left to the bottom-right. In the matrix AA above, the diagonal elements are a11=4a_{11} = 4, a22=5a_{22} = 5, and a33=9a_{33} = 9.

  • Off-diagonal elements are all the rest, where i≠ji \neq j.

The set of diagonal positions for a 3×33 \times 3 matrix is (1,1),(2,2),(3,3){(1,1), (2,2), (3,3)}. This split matters because whole families of matrices are defined by it: a diagonal matrix is one whose off-diagonal elements are all 00, and an identity matrix is a diagonal matrix whose diagonal elements are all 11.

When Are Two Matrices Equal, Element By Element?

Two matrices are equal only when they have the same order and every corresponding element matches:

A=B  ⟺  aij=bij for all i,j.A = B \iff a_{ij} = b_{ij} \text{ for all } i, j.

This element-wise rule is what lets you solve for unknowns hidden inside a matrix. If

[x3 5y]=[23 57],\begin{bmatrix} x & 3 \ 5 & y \end{bmatrix} = \begin{bmatrix} 2 & 3 \ 5 & 7 \end{bmatrix},

then matching positions forces x=2x = 2 and y=7y = 7. Equality is not "roughly the same shape"; it is a strict, position-by-position agreement.

Examples Of Elements of a Matrix

The set runs from listing entries, through the index-order mistake, up to counting, diagonal elements, and solving an equal-matrix problem.

Example 1

List all the elements of P=[6−1 09]P = \begin{bmatrix} 6 & -1 \ 0 & 9 \end{bmatrix} and name each by its address.

Read across each row, top to bottom.

p11=6,p12=−1p_{11} = 6, \quad p_{12} = -1 p21=0,p22=9p_{21} = 0, \quad p_{22} = 9

Final answer: the four elements are 6,−1,0,96, -1, 0, 9, at positions (1,1),(1,2),(2,1),(2,2)(1,1), (1,2), (2,1), (2,2).

Example 2

Find the element a31a_{31} of A=[432 156 789]A = \begin{bmatrix} 4 & 3 & 2 \ 1 & 5 & 6 \ 7 & 8 & 9 \end{bmatrix}.

Wrong path. A student reads a31a_{31} as "column 33, row 11" and answers 22. The subscript order was reversed. In a matrix the two numbers are not interchangeable, and swapping them lands you in a different cell entirely.

Correct. Read row first, column second.

a31=row 3, column 1a_{31} = \text{row } 3, \text{ column } 1 a31=7a_{31} = 7

Final answer: a31=7a_{31} = 7. The element a13a_{13} (row 11, column 33) is the different value 22; the order of the subscripts is the whole point.

Example 3

How many elements are in a matrix of order 4×34 \times 3?

Multiply rows by columns.

number of elements=4×3=12\text{number of elements} = 4 \times 3 = 12

Final answer: 1212. Because 1212 is not a perfect square, this matrix cannot be square.

Example 4

Identify the diagonal elements of C=[271 459 386]C = \begin{bmatrix} 2 & 7 & 1 \ 4 & 5 & 9 \ 3 & 8 & 6 \end{bmatrix}.

Diagonal elements are those with equal row and column indices, ciic_{ii}.

c11=2,c22=5,c33=6c_{11} = 2, \quad c_{22} = 5, \quad c_{33} = 6

Final answer: the diagonal elements are 2,5,6{2, 5, 6}. Every other entry is off-diagonal, where i≠ji \neq j.

Example 5

A matrix A=[aij]A = [a_{ij}] of order 2×22 \times 2 is defined by the rule aij=i+ja_{ij} = i + j. Write out AA.

Substitute each position into the rule, one element at a time.

a11=1+1=2a_{11} = 1 + 1 = 2 a12=1+2=3a_{12} = 1 + 2 = 3 a21=2+1=3a_{21} = 2 + 1 = 3 a22=2+2=4a_{22} = 2 + 2 = 4

Assemble the grid.

A=[23 34]A = \begin{bmatrix} 2 & 3 \ 3 & 4 \end{bmatrix}

Final answer: A=[23 34]A = \begin{bmatrix} 2 & 3 \ 3 & 4 \end{bmatrix}. A rule for aija_{ij} builds the whole matrix, one address at a time.

Example 6

Find xx and yy given [x+18 62y]=[58 610]\begin{bmatrix} x+1 & 8 \ 6 & 2y \end{bmatrix} = \begin{bmatrix} 5 & 8 \ 6 & 10 \end{bmatrix}.

Equal matrices agree element by element, so match the positions that contain unknowns.

x+1=5  ⟹  x=4x + 1 = 5 \implies x = 4 2y=10  ⟹  y=52y = 10 \implies y = 5

Final answer: x=4x = 4 and y=5y = 5. Matrix equality turns one matrix statement into a set of simple element equations.

Why Naming Every Entry Was A Breakthrough

"How do you write one rule that speaks to thousands of numbers at once?"

Before matrices had this indexed notation, systems of equations were written out in full, line after line, with no compact way to refer to "the coefficient in the third equation, second variable." The English mathematician Arthur Cayley (1821–1895) developed the theory of matrices as objects in their own right in the 1850s, building on the term "matrix" that his colleague James Sylvester had coined. The move that made it all work was exactly the aija_{ij} address: once every entry has a row-column name, an operation on a whole matrix can be written as a single rule on a general element.

That is why the humble subscript matters far beyond the classroom. When a computer stores an image, each pixel is an element aija_{ij} of a grid; when a search engine ranks pages, the link structure is a giant matrix whose entries are addressed the same way; when a spreadsheet computes across a table, "cell B3B3" is nothing but aija_{ij} in disguise. Learning to read a23a_{23} cleanly is the first rung of a ladder that reaches into matrices and determinants and every field that stores data in grids.

Common Mistakes

Mistake 1: Reversing The Row And Column Subscripts

Where it slips in: reading any element aija_{ij} where i≠ji \neq j.

Don't do this: interpret a31a_{31} as "column 33, row 11." The first subscript is the row, always.

The correct way: read row first, column second. The rusher who skims the subscript is the one who returns a13a_{13}'s value when asked for a31a_{31}, and in a non-square matrix, the reversed address may not even exist.

Mistake 2: Confusing The Number Of Elements With The Order

Where it slips in: describing a matrix's size.

Don't do this: say a 2×32 \times 3 matrix "has order 66." Order is the pair m×nm \times n; 66 is the count of elements.

The correct way: keep the two ideas separate — order is 2×32 \times 3 (rows by columns), and the number of elements is the product 2×3=62 \times 3 = 6. The memoriser who blends them loses the shape information that the order carries.

Mistake 3: Treating Diagonal Elements As "The Bottom-Left To Top-Right" Line

Where it slips in: identifying diagonal elements.

Don't do this: pick the anti-diagonal (bottom-left to top-right) and call those the diagonal elements.

The correct way: the main diagonal runs top-left to bottom-right, the entries aiia_{ii} where the row and column indices are equal. The other corner-to-corner line is the anti-diagonal, and it is a different set.

Conclusion

  • The elements of a matrix are its individual entries, each at one row-column position.

  • The notation aija_{ij} names the element in row ii, column jj — row first, column second, always.

  • A matrix of order m×nm \times n has m×nm \times n elements; square matrices have a perfect-square count.

  • Diagonal elements are the aiia_{ii} from top-left to bottom-right; off-diagonal elements have i≠ji \neq j.

  • Two matrices are equal only when every corresponding element matches, which is how you solve for unknowns inside a matrix.

To master matrices with a teacher, explore Bhanzu's algebra tutor sessions, a high school math tutor for board-level linear algebra, or structured math classes online. Want a live trainer to walk through matrix notation and operations? Book a free demo class with a Bhanzu trainer.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is an element of a matrix?
It is a single entry - one number, variable, or expression - sitting at one row-column position inside the matrix.
What does a_ij mean in a matrix?
It is the element in row ii and column jj. The first subscript is the row, the second is the column, so a23a_{23} is the entry in row 22, column 33.
How do you find the number of elements in a matrix?
Multiply the number of rows by the number of columns. A matrix of order m×nm \times n has m×nm \times n elements.
What are diagonal elements?
The elements aiia_{ii} whose row and column indices are equal, running from the top-left corner to the bottom-right. Everything else is off-diagonal.
Can matrix elements be variables?
Yes. Elements can be numbers, variables, or algebraic expressions — anything that occupies a single cell, such as xx, 2y2y, or x+1x+1.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →