Transpose of a Matrix Notes

Published on: September 29, 2026

These Transpose of a Matrix Notes explain how to reflect a matrix along its main diagonal, with the working shown line by line. Every entry in row \(i\) and column \(j\) moves to row \(j\) and column \(i\), which turns the rows into columns. An \(m \times n\) matrix becomes \(n \times m\), so the shape changes unless it was square to begin with. Following the same pattern every time makes the transpose easy to check and repeat.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Turn each row of A into a column.

Formula: Transpose Formula

This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.

\((A^{T})_{ij} = a_{ji}\)

Useful Tips to Remember

A matrix with m rows and n columns has a transpose with n rows and m columns. The main diagonal stays where it is. Transposing twice gives back the original matrix, so \((A^{T})^{T} = A\). A matrix that equals its own transpose is called symmetric.

Required knowledge

Where Is the Transpose of a Matrix Used?

The transpose swaps the rows and columns of a matrix, which is needed whenever data has to be read the other way round. Spreadsheets transpose tables to turn rows of records into columns. In statistics and machine learning, transposes appear in least squares fitting and in computing covariance matrices. Computer graphics uses them to invert rotation matrices quickly, and the adjugate used to find an inverse matrix is the transpose of the cofactor matrix.

  • Swapping rows and columns in spreadsheets
  • Least squares fitting in statistics
  • Covariance matrices in data science
  • Inverting rotation matrices in 3D graphics
  • Building the adjugate for an inverse matrix

Transpose of a Matrix Practice Problems

Example 1 transposes a \(2 \times 3\) matrix into a \(3 \times 2\) one, and Example 2 transposes a \(3 \times 3\) matrix with negative entries. Examples 3 and 4 give you two more problems of the same kind to try. Turn each row into a column yourself and compare.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Turn each row of A into a column.

Formula

Formula: Transpose Formula

This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.

\((A^{T})_{ij} = a_{ji}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A is \(2 \times 3\), so its transpose has the rows and columns swapped and is \(3 \times 2\).

\(A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.

\((A^{T})_{ij} = a_{ji}\)

Step 3

Step 3 - Turn each row of A into a column.

In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 1 & 2 & 3 \end{bmatrix}\) becomes \(\text{column } 1\) and \(\text{row } 2 = \begin{bmatrix} 4 & 5 & 6 \end{bmatrix}\) becomes \(\text{column } 2\).

\(A^{T} = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}\)

Final Answer

\(A^{T} = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}\)
See Example 2 Hide Example 2

Problem

\(A = \begin{bmatrix} 2 & -1 & 4 \\ 0 & 7 & 3 \\ -5 & 6 & 8 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Turn each row of A into a column.

Formula

Formula: Transpose Formula

This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.

\((A^{T})_{ij} = a_{ji}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A is \(3 \times 3\), so its transpose has the rows and columns swapped and is \(3 \times 3\).

\(A = \begin{bmatrix} 2 & -1 & 4 \\ 0 & 7 & 3 \\ -5 & 6 & 8 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.

\((A^{T})_{ij} = a_{ji}\)

Step 3

Step 3 - Turn each row of A into a column.

In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 2 & -1 & 4 \end{bmatrix}\) becomes \(\text{column } 1\), \(\text{row } 2 = \begin{bmatrix} 0 & 7 & 3 \end{bmatrix}\) becomes \(\text{column } 2\) and \(\text{row } 3 = \begin{bmatrix} -5 & 6 & 8 \end{bmatrix}\) becomes \(\text{column } 3\).

\(A^{T} = \begin{bmatrix} 2 & 0 & -5 \\ -1 & 7 & 6 \\ 4 & 3 & 8 \end{bmatrix}\)

Final Answer

\(A^{T} = \begin{bmatrix} 2 & 0 & -5 \\ -1 & 7 & 6 \\ 4 & 3 & 8 \end{bmatrix}\)
See Example 3 Hide Example 3

Problem

\(A = \begin{bmatrix} 3 & -2 \\ 5 & 0 \\ 1 & 4 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Turn each row of A into a column.

Formula

Formula: Transpose Formula

This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.

\((A^{T})_{ij} = a_{ji}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A is \(3 \times 2\), so its transpose has the rows and columns swapped and is \(2 \times 3\).

\(A = \begin{bmatrix} 3 & -2 \\ 5 & 0 \\ 1 & 4 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.

\((A^{T})_{ij} = a_{ji}\)

Step 3

Step 3 - Turn each row of A into a column.

In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 3 & -2 \end{bmatrix}\) becomes \(\text{column } 1\), \(\text{row } 2 = \begin{bmatrix} 5 & 0 \end{bmatrix}\) becomes \(\text{column } 2\) and \(\text{row } 3 = \begin{bmatrix} 1 & 4 \end{bmatrix}\) becomes \(\text{column } 3\).

\(A^{T} = \begin{bmatrix} 3 & 5 & 1 \\ -2 & 0 & 4 \end{bmatrix}\)

Final Answer

\(A^{T} = \begin{bmatrix} 3 & 5 & 1 \\ -2 & 0 & 4 \end{bmatrix}\)
See Example 4 Hide Example 4

Problem

\(A = \begin{bmatrix} 1 & 4 & 7 \\ 2 & 5 & 8 \\ 3 & 6 & 9 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Turn each row of A into a column.

Formula

Formula: Transpose Formula

This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.

\((A^{T})_{ij} = a_{ji}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A is \(3 \times 3\), so its transpose has the rows and columns swapped and is \(3 \times 3\).

\(A = \begin{bmatrix} 1 & 4 & 7 \\ 2 & 5 & 8 \\ 3 & 6 & 9 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.

\((A^{T})_{ij} = a_{ji}\)

Step 3

Step 3 - Turn each row of A into a column.

In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 1 & 4 & 7 \end{bmatrix}\) becomes \(\text{column } 1\), \(\text{row } 2 = \begin{bmatrix} 2 & 5 & 8 \end{bmatrix}\) becomes \(\text{column } 2\) and \(\text{row } 3 = \begin{bmatrix} 3 & 6 & 9 \end{bmatrix}\) becomes \(\text{column } 3\).

\(A^{T} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}\)

Final Answer

\(A^{T} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}\)

Calculator and Practice Mode