Matrix Transpose in LaTeX: Notation and Examples
Date Published

Matrix Transpose Notation in LaTeX
The transpose is a fundamental matrix operation. Here's how to write it correctly in LaTeX.
Quick answer: How do you write the transpose in LaTeX? Put a superscript on the matrix in math mode: A^{T} (simplest), A^{\mathsf{T}} (upright sans-serif T, recommended by ISO), A^{\top} (no package), A^{\intercal} (amssymb) or A^{\mathrm{T}} (upright roman T). For the conjugate transpose use A^{H}, A^{\dagger} or A^{*}.
Transpose in LaTeX
Every common transpose notation in one document. It compiles as written; each package is commented with the command it provides:
1\documentclass{article}2\usepackage{amsmath} % bmatrix, \text3\usepackage{amssymb} % \intercal4\newcommand{\tran}{^{\mathsf{T}}} % one macro, change the style everywhere5\begin{document}6\[7 A^{T} \quad A^{\mathsf{T}} \quad A^{\top} \quad A^{\intercal} \quad8 A^{\mathrm{T}} \quad A' \quad \mathbf{x}\tran9\]10\[11 \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}^{\mathsf{T}}12 = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}13\]14\[15 A^{H} \quad A^{\mathsf{H}} \quad A^{\dagger} \quad A^{*}16 \qquad \text{(conjugate transpose)}17\]18\end{document}
Try this in Octree — free LaTeX editor with AI, compiles in your browser
Notation | LaTeX | Package | Notes |
|---|---|---|---|
Aᵀ (italic T) |
| none | Most common; T looks like a variable |
Aᵀ (sans-serif) |
| none | Upright T, recommended by ISO 80000-2 |
Aᵀ (roman) |
| none | Upright serif T |
A⊤ |
| none | Top symbol; popular in machine learning |
A⊺ |
| amssymb | Smaller, lower symbol |
A′ |
| none | Prime; common in statistics and econometrics |
Aᴴ / A† |
| none | Conjugate (Hermitian) transpose |
Basic Transpose Notation
Superscript T (Most Common)
Write A^T or, better, A^{T}: the braces are required as soon as the superscript has more than one token, as in A^{T}B versus (AB)^{T}.
1\( A^{T} \), \( \mathbf{x}^{T}\mathbf{y} \), \( (AB)^{T} \)
Prime Notation
Statistics and econometrics texts often write the transpose as a prime: A' or X'X in math mode, which LaTeX turns into A^{\prime}. Avoid it when primes already mean derivatives in the same document.
1\( A' \), \( X'X \), \( \hat{\beta} = (X'X)^{-1}X'y \)
Transpose Symbol
\top (⊤) needs no package; \intercal (⊺) needs \usepackage{amssymb}. Both are symbols rather than letters, so they never look like a variable named T.
1\( A^{\top} \), \( A^{\intercal} \) % \intercal needs amssymb
Creating Matrices in LaTeX
Basic Matrix (No Brackets)
The amsmath matrix environment prints the entries with no delimiters. Separate columns with & and rows with \\:
1% \usepackage{amsmath}2\[ \begin{matrix} a & b \\ c & d \end{matrix} \]
Matrices with Brackets
pmatrix gives ( ), bmatrix [ ], Bmatrix { }, vmatrix | | (determinant) and Vmatrix ‖ ‖, all from amsmath:
1% \usepackage{amsmath}2\[3 \begin{pmatrix} a & b \\ c & d \end{pmatrix} \quad4 \begin{bmatrix} a & b \\ c & d \end{bmatrix} \quad5 \begin{vmatrix} a & b \\ c & d \end{vmatrix}6\]
Transpose Examples
Vector Transpose
A column vector transposed is a row vector:
1% \usepackage{amsmath}2\[3 \mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}, \qquad4 \mathbf{x}^{\mathsf{T}} = \begin{bmatrix} x_1 & x_2 & x_3 \end{bmatrix}5\]
Matrix Transpose
Rows become columns, so a 2 × 3 matrix becomes 3 × 2:
1% \usepackage{amsmath}2\[3 A = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \end{bmatrix}, \qquad4 A^{\mathsf{T}} = \begin{bmatrix} a_{11} & a_{21} \\ a_{12} & a_{22} \\ a_{13} & a_{23} \end{bmatrix}5\]
Transpose Properties
Basic Properties
1% \usepackage{amsmath}2\begin{align*}3 (A^{\mathsf{T}})^{\mathsf{T}} &= A \\4 (A + B)^{\mathsf{T}} &= A^{\mathsf{T}} + B^{\mathsf{T}} \\5 (cA)^{\mathsf{T}} &= c\,A^{\mathsf{T}} \\6 (AB)^{\mathsf{T}} &= B^{\mathsf{T}} A^{\mathsf{T}}7\end{align*}
Determinant and Inverse
The inverse of the transpose is often written A^{-\mathsf{T}}:
1\[ \det(A^{\mathsf{T}}) = \det(A), \qquad (A^{\mathsf{T}})^{-1} = (A^{-1})^{\mathsf{T}} = A^{-\mathsf{T}} \]
Inner Product
1\[ \mathbf{x}^{\mathsf{T}}\mathbf{y} = \sum_{i=1}^{n} x_i y_i, \qquad \|\mathbf{x}\|^2 = \mathbf{x}^{\mathsf{T}}\mathbf{x} \]
Special Matrices
Symmetric Matrix
1\[ A^{\mathsf{T}} = A \]
Skew-Symmetric Matrix
1\[ A^{\mathsf{T}} = -A \]
Orthogonal Matrix
1\[ Q^{\mathsf{T}} Q = Q Q^{\mathsf{T}} = I, \qquad Q^{-1} = Q^{\mathsf{T}} \]
Common Formulas with Transpose
Normal Equations (Least Squares)
1\[ X^{\mathsf{T}} X \hat{\boldsymbol{\beta}} = X^{\mathsf{T}} \mathbf{y}, \qquad \hat{\boldsymbol{\beta}} = (X^{\mathsf{T}} X)^{-1} X^{\mathsf{T}} \mathbf{y} \] % \boldsymbol needs amsmath
Covariance Matrix
1\[ \Sigma = \mathbb{E}\big[(\mathbf{x} - \boldsymbol{\mu})(\mathbf{x} - \boldsymbol{\mu})^{\mathsf{T}}\big] \] % \mathbb needs amssymb
Quadratic Form
1\[ q(\mathbf{x}) = \mathbf{x}^{\mathsf{T}} A \mathbf{x} = \sum_{i,j} a_{ij} x_i x_j \]
SVD
1\[ A = U \Sigma V^{\mathsf{T}} \]
Conjugate Transpose (Hermitian)
For complex matrices:
The conjugate transpose (Hermitian adjoint) transposes the matrix and takes the complex conjugate of every entry. Engineering and numerical texts write A^{H} or A^{\mathsf{H}}, physics uses the dagger A^{\dagger}, and many math texts use A^{*} (which can be confused with the plain complex conjugate, so say which you mean).
1% \usepackage{amsmath} for bmatrix2\[3 A^{H} = \overline{A}^{\mathsf{T}}, \qquad4 \begin{bmatrix} 1 & i \\ 2 & 3 - i \end{bmatrix}^{H}5 = \begin{bmatrix} 1 & 2 \\ -i & 3 + i \end{bmatrix}6\]7\[ A^{\dagger} \quad A^{*} \quad A^{\mathsf{H}} \]
A matrix with A^{H} = A is Hermitian; one with U^{H}U = I is unitary.
Typographic Best Practices
Upright T is preferred:
A^{\mathsf{T}}looks more professional
Bold vectors:
\mathbf{x}^Tnotx^T
Consistent notation: Pick one style and stick with it
Proper spacing: Use
\quadbetween related matrices
Matrix Transpose in LaTeX FAQ
How do you write a transpose in LaTeX?
In math mode write $A^{T}$, or $A^{\mathsf{T}}$ for an upright T. $A^{\top}$ and $A^{\intercal}$ (amssymb) use a dedicated symbol instead of the letter.
Which transpose notation is correct: T, ⊤ or prime?
All are accepted; consistency matters most. ISO 80000-2 recommends an upright T (A^{\mathsf{T}} or A^{\mathrm{T}}), machine learning papers often use A^{\top}, and statistics often uses A'. Define a macro such as \newcommand{\tran}{^{\mathsf{T}}} so you can switch style in one place.
What is the difference between \top and \intercal?
\top (⊤) is built into LaTeX and sits at full height; \intercal (⊺) needs amssymb and is a smaller symbol that sits lower. Both render as a T-shaped transpose mark.
How do you write the conjugate transpose in LaTeX?
Use A^{H} or A^{\mathsf{H}} (engineering), A^{\dagger} (physics) or A^{*} (mathematics). All three work without extra packages.
How do I write the inverse transpose?
Write A^{-\mathsf{T}} or (A^{-1})^{\mathsf{T}}; both mean the same matrix because the inverse and the transpose commute.
Write Matrix Math with Octree
Octree simplifies matrix notation:
AI suggests correct transpose symbols
Auto-formats matrices and vectors
Real-time preview of linear algebra
Export clean, publication-ready PDFs
Try it at https://useoctree.com
Try this in Octree — free LaTeX editor with AI, compiles in your browser