Degree symbol in LaTeX (^{\circ})

∘^{\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: الهندسة, الكيمياء, الوحدات والقياسات

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

sin⁡30∘=12\sin 30^{\circ} = \frac{1}{2}
\documentclass{article}
\begin{document}
Degree symbol: $^{\circ}$

\[ \sin 30^{\circ} = \frac{1}{2} \]
\end{document}

Related symbols

All علم المثلثات →

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).
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث