\textdegree degree sign (text) (°) in LaTeX

Command\textdegree
Modetext
Packagenone since LaTeX 2020; before that textcomp
Unicode° U+00B0
KindText symbols and special characters

\textdegree typesets the symbol “degree sign (text)” (°). It is a text symbol.

Example

\documentclass{article}
\usepackage{textcomp}
\begin{document}
20\,\textdegree C
\end{document}

Open in the editor

Compiled with pdfLaTeX from TeX Live 2023.

How to use it

\textdegree is a command for normal text. Since the 2020 release, LaTeX defines this command itself. An older installation needs \usepackage{textcomp} in the preamble.

In math mode write ^\circ, or use \ang and \degreeCelsius from siunitx; see Degree symbol in LaTeX.

About text symbols and special characters

Ten characters have a job in LaTeX source and do not print when typed alone: # $ % & _ { } ~ ^ \. Seven of them print with a backslash in front; tilde, caret and backslash need a longer command. Most other characters, such as €, § or ß, can be typed directly in a UTF-8 file.

More text symbols and special characters

All text symbols and special characters