Degree symbol in LaTeX (^{\circ})
- LaTeX command
^{\circ}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
- Copy the Unicode character
- °
U+00B0
Where it is used
Superscript circle marking degrees, for angles and for temperatures.
The usual math-mode degree sign is ^{\circ}, as in 90^{\circ} or \angle ABC = 45^{\circ}; it raises \circ, the composition ring, to superscript size. For temperatures, write 25^{\circ}\mathrm{C} with an upright C. Do not use a superscript letter o or digit 0, which have the wrong shape, or \circ on the baseline, which means function composition. In text mode, \textdegree gives a matching sign without entering math. Documents with many measurements benefit from a units-aware macro that handles spacing and fonts consistently.
Also listed under: Geometri, Kimia, Satuan & Pengukuran
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Degree symbol: $^{\circ}$
\[ \sin 30^{\circ} = \frac{1}{2} \]
\end{document}Related symbols
- Radians
\text{rad} - Pi
\pi - Theta
\theta - Inverse Hyperbolic Sine
\text{arcsinh} - Phi
\phi - Hyperbolic Tangent
\tanh
Frequently asked questions
- How do I write Degree symbol in LaTeX?
- Type ^{\circ} in math mode, for example $\sin 30^{\circ} = \frac{1}{2}$. It works in plain LaTeX without loading any package.
- Which package do I need for ^{\circ}?
- None. ^{\circ} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use ^{\circ} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $^{\circ}$ in running text. If you only need the glyph in text, paste the Unicode character ° instead (with XeLaTeX or LuaLaTeX and a font that has it).
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI
- Hasilkan diagram TikZ yang indah menggunakan AI
- Unggah gambar dan konversi ke LaTeX dengan mulus
- Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian