Transpose Calculator
Swaps rows and columns to form Aᵀ.
INPUT
Integers, fractions (1/3) and decimals (0.25) are accepted. Empty cells count as 0. Paste a block of numbers from a spreadsheet or textbook into the first cell to fill the whole matrix.
RESULT
LaTeX is the math code you can paste into Overleaf, Notion equation blocks or Word's equation editor.
Steps
The transpose
Aᵀ is A with rows and columns swapped: (Aᵀ)ᵢⱼ = Aⱼᵢ. The transpose of an m×n matrix is n×m.
If Aᵀ = A, the matrix is symmetric.
Exam tipThe transpose of a product reverses the order: (AB)ᵀ = BᵀAᵀ.
How to do it by hand
- Stand row 1 up as column 1, row 2 as column 2, and so on. Entry (i, j) moves to position (j, i).
- An m×n matrix becomes n×m. A square matrix keeps its size, and the diagonal entries stay where they are.
- Transposing twice returns the original: (Aᵀ)ᵀ = A.
Worked example
Transposing A = [1 2 3; 4 5 6] (2×3) gives
Aᵀ = [1 4; 2 5; 3 6] (3×2). Row 1, (1, 2, 3), became column 1.
A matrix like [1 2; 2 3] that equals its own transpose is symmetric.
Where is it used?
- Writing a dot product as a matrix product: u·v = uᵀv. The least-squares normal equations AᵀAx = Aᵀb come from this.
- Swapping the rows and columns of a data table, e.g. students × subjects into subjects × students.
- For an orthogonal matrix Qᵀ = Q⁻¹, so the inverse of a rotation is just its transpose. The computation is free.
Common mistakes
- Rotating the matrix 180°. Transposing reflects across the main diagonal; it is not a rotation. [1 2; 3 4]ᵀ is [1 3; 2 4], not [4 3; 2 1].
- Writing (AB)ᵀ = AᵀBᵀ. The order reverses: (AB)ᵀ = BᵀAᵀ.
- Keeping the size when the matrix is not square. A 2×3 transposes to a 3×2.
How to use
- Set the matrix size with the row and column buttons. Up to 6×6 is supported.
- Type numbers into the cells and the result updates instantly. Enter fractions as
1/3and negatives as-2. - Enter moves to the next cell; the ← → ↑ ↓ arrow keys move between cells.
- Open ‘Steps’ to see the full working. ‘Copy LaTeX’ copies the result as math code you can paste into Overleaf, a Notion equation block or Word's equation editor.
FAQ
- How do I check whether a matrix is symmetric?
- If the transpose equals the original matrix, it is symmetric.
Related guides
- Transpose of a Matrix: Properties, (AB)ᵀ = BᵀAᵀ and Symmetric MatricesThe definition of the transpose, the transpose of a product, and symmetric and skew-symmetric matrices, with examples.
- Special Matrices: Identity, Diagonal, Triangular, Symmetric and OrthogonalDefinitions and properties of the named matrices, with examples and a summary table.