The LaTeX command for degree celsius is ^\circ\mathrm{C}.
^\circ\mathrm{C}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
\qty{20}{\degreeCelsius} recommended | siunitx | Best for measured values: correct spacing and consistent units (siunitx v3). |
20\,^\circ\mathrm{C} | none | Quick version in math mode, no package needed. |
20\,\textdegree C | none | In running text (outside math mode). |
Write ^\circ\mathrm{C} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
$T = 20\,^\circ\mathrm{C}$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\dot{x}\ddot{x}\langle \psi || \psi \rangle\langle \phi | \psi \rangle\rightleftharpoons\text{\AA}\infty\dagger\hbar\nabla\nabla^2\nabla \cdot\nabla \timesPhysics symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use ^\circ\mathrm{C} in math mode; it needs no extra package. For example, $T = 20\,^\circ\mathrm{C}$.
None: ^\circ\mathrm{C} is built into LaTeX, so no extra package is required.
The widely copied ^\circ\text{C} needs amsmath for \text; without it pdfLaTeX stops with "Undefined control sequence". \mathrm{C} works everywhere.