Transpose of a Matrix Calculator
This Transpose of a Matrix Calculator reflects a matrix along its main diagonal and shows the working 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
- Set up the problem.
- Write the formula.
- 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.
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
- What the rows and columns of a matrix are, covered in the Matrix Addition Calculator.
- Where transposes are used next, covered in the Inverse of a 3×3 Matrix Calculator.
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. Turn each row into a column yourself and compare. For two more free worked examples, check out the Transpose of a Matrix Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- 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.
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\).
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.
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\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- 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.
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\).
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.
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\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Transpose of a Matrix Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Transpose of a Matrix Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Empty boxes count as 0. Entries can be whole numbers, decimals or fractions like 1/2.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.