Matrix Transpose Calculator
Swap the rows and columns of a matrix and see the new shape.
What it does
The transpose of a matrix is formed by turning rows into columns and columns into rows. It is one of the simplest matrix operations and appears throughout linear algebra, statistics and physics.
This tool accepts rectangular matrices of up to six rows and six columns. Enter numbers separated by spaces or commas, with semicolons between rows. The page opens with two rows and three columns.
The default matrix has rows 1 2 3 and 4 5 6. Its transpose has rows 1 4, 2 5 and 3 6, changing the shape from 2 by 3 to 3 by 2.
The entry rule is compact: the element in row i and column j of the transpose equals the element in row j and column i of the original. Applying the transpose twice returns the original matrix.
For a square matrix, comparing the matrix with its transpose tells you whether it is symmetric, which is useful in many applications. The tool reports both shapes so you can check that the swap happened correctly.
How to use
- Type the matrix rows, separating entries with spaces or commas.
- Put a semicolon between rows.
- Read the transposed matrix as the main result.
- Check the original and transposed shapes to confirm the swap.
- Verify a single entry using the rule that row i column j becomes row j column i.
- Try a square matrix to see whether it equals its own transpose.
Formula
- A
- The original matrix with m rows and n columns.
- A transpose
- The matrix with n rows and m columns formed by swapping indices.
- m, n
- The row and column counts of the original matrix.
Transposing twice restores the original matrix. The transpose of a product reverses the order of the factors, and the transpose of a sum is the sum of the transposes. A square matrix satisfying A equals A transpose is symmetric.
Worked example
Example: a 2 by 3 matrix
The page opens with rows 1 2 3 and 4 5 6.
- The original has 2 rows and 3 columns.
- The first column of the original, 1 and 4, becomes the first row of the transpose.
- The second column, 2 and 5, becomes the second row.
- The third column, 3 and 6, becomes the third row.
- The transpose is 1 4; 2 5; 3 6 with shape 3 by 2.
- The tool reports transpose 1 4; 2 5; 3 6 and shapes 2 x 3 and 3 x 2.
Reference table
| Original entries | Original shape | Transpose |
|---|---|---|
| 1 2 3; 4 5 6 | 2 x 3 | 1 4; 2 5; 3 6 |
| 1 2; 3 4 | 2 x 2 | 1 3; 2 4 |
| 1 0 0; 0 1 0 | 2 x 3 | 1 0; 0 1; 0 0 |
Limits
- Accepts at most 6 rows and 6 columns.
- All rows must have the same number of entries.
- Entries must be numbers between minus 1,000,000,000 and 1,000,000,000.
- The result is a plain list of rows, not a rendered matrix grid.
Common mistakes
- Reversing the order of entries within each row instead of swapping axes.
- Assuming the shape stays the same for a rectangular matrix.
- Entering rows with different lengths.
- Expecting the transpose to change the values rather than their positions.
- Confusing transpose with inverse.
Try it yourself
Quick checks. Answers sit tucked under each question.
Transpose of 1 2; 3 4?
1 3; 2 4. The matrix is symmetric only if the off diagonal entries match, which they do not here.
Transpose of 1 0 0; 0 1 0?
1 0; 0 1; 0 0, changing shape from 2 by 3 to 3 by 2.
What happens if you transpose twice?
You get the original matrix back.
Questions
What is a transpose?
The matrix formed by swapping rows and columns.
Does the shape change?
For a rectangular matrix yes, from m by n to n by m. A square matrix keeps its shape.
What is a symmetric matrix?
A square matrix that equals its own transpose.
Is transpose the same as inverse?
No. Transpose swaps indices, while an inverse satisfies A times A inverse equals the identity.
How do I check one entry?
Entry i j of the transpose is entry j i of the original.
Does transposing twice undo it?
Yes, the transpose of a transpose is the original matrix.
Sources
- Oregon State University, Geometry of Linear Algebra, section 2.4: transpose
- MIT OpenCourseWare, transposes, permutations and vector spaces
- Cornell University, vectors and matrices definition of transpose