Transpose (Aᵀ) in LaTeX
The transpose of a matrix A swaps its rows and columns; in LaTeX write it as a superscript, A^{\top} with the ⊤ sign or A^{\mathsf{T}} with an upright T.
LaTeX command
A^{\top}Not the symbol you meant? Draw it to find the command →
Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →
Every common form is a superscript; they differ only in the mark. A plain A^T is the quickest but sets an italic T, which can be read as raising A to the power T, a real risk when T is also a variable such as a time. \top, built into LaTeX, prints ⊤, and \mathsf{T} or \mathrm{T} print an upright T that no one mistakes for a variable.
Whichever you choose, define it once so a whole document uses the same mark, for example with a short command in the preamble. Then switching style later is a one-line change.
For complex matrices the conjugate transpose (Hermitian adjoint) has its own marks: A^{*} in most of mathematics, A^{\mathsf{H}} in engineering and numerical work, and A^{\dagger} in physics.
One transpose command for the whole document
Define the mark once in the preamble and write A^{\T} everywhere. Changing \top to \mathsf{T} later changes every transpose at once.
\newcommand{\T}{\top}$A^{\T}$Other forms
A^{\mathsf{T}}an upright sans-serif TA^{T}plain T (reads like a power)A^{\intercal}the intercal sign, amssymbA^{*}conjugate transposeA^{\dagger}conjugate transpose, physicsExamples
$A^{\top}$the ⊤ sign
$A^{\mathsf{T}}$an upright sans-serif T
$(AB)^{\top} = B^{\top} A^{\top}$the transpose of a product
$x^{\top} y = \sum_i x_i y_i$a dot product written with a transpose
$A^{*} = \overline{A}^{\top}$the conjugate transpose
Tips and common mistakes
- Avoid a bare A^T when T is also a variable in your work; A^{
\top} or A^{\mathsf{T}} cannot be misread as a power. - Pick one mark and define it once, so every transpose in the document matches.
\topis built in;\intercal(⊺) needs amssymb.- For complex matrices, write the conjugate transpose as A^{*}, A^{
\mathsf{H}} or A^{\dagger}, following your field. - Brace the superscript when it holds more than one item, as in (A^{-1})^{
\top}.
Working from handwritten notes?
LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.
See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).
Convert your maths to LaTeX →FAQ
How do I write the transpose of a matrix in LaTeX?
Use A^{\top} for the ⊤ sign or A^{\mathsf{T}} for an upright T. A^T also works but sets an italic T.
Which transpose notation is best?
Any is fine if you are consistent. A^{\top} and A^{\mathsf{T}} avoid reading T as a power; plain A^T is common in older texts.
How do I write the conjugate transpose?
Write A^{*} in mathematics, A^{\mathsf{H}} in engineering, or A^{\dagger} in physics.
Does \top need a package?
No, it is built into LaTeX and KaTeX. \intercal, another transpose sign, needs amssymb.