Degree symbol (°)
° is the degree sign. It marks angles (90°), temperatures (21 °C) and positions on a map (51° N).
- minutes (prime)
- seconds (double prime)
- degree Celsius, one character
- Unicode
U+00B0- HTML
°- Alt code
Alt 0176- LaTeX
^{\circ}
What it means
A full turn is 360° and a right angle is 90°. A degree splits into 60 minutes (′) and a minute into 60 seconds (″), so a precise position reads 51° 30′ 26″ N.
On a temperature it goes with the scale letter: 21 °C, 70 °F. The SI brochure, the reference for units, puts a space between the number and °C but none between the number and the degree of an angle, as in 45°. Kelvin takes no degree sign at all: 300 K.
Two look-alikes catch people out. º is the masculine ordinal from Spanish and Portuguese (1º, primero), with a line under it in many fonts, and ˚ is a ring accent. Both sit at a different height, and neither counts as a degree sign when a page is searched or read aloud.
How to type it
| Windows | Hold Alt and type 0176 or 248 on the number pad |
|---|---|
| Mac | Shift + Option + 8 |
| Word | Type 00B0, then press Alt + X |
| Google Docs | Insert > Special characters, then search “degree” |
| iPhone and Android | On iPhone, hold 0 on the number keyboard. Tap Copy above. To keep it to hand, add a text replacement: on iPhone in Settings > General > Keyboard > Text Replacement, on Android in Gboard’s settings under Dictionary > Personal dictionary |
| HTML | ° or ° |
In LaTeX
There are four ways to write the degree sign (°) in LaTeX: raise \circ as a superscript in math mode, use \textdegree in text, load the gensymb package for \degree, or let siunitx format angles and temperatures. Each one is below, ready to copy.
LaTeX command
^{\circ}Not the symbol you meant? Draw it to find the command →
Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →
The quickest way, and the one that works everywhere (LaTeX, Overleaf, KaTeX and MathJax), is a superscript ring inside maths: is a right angle. The \circ glyph is a small ring, and the superscript puts it at the height and size of a degree mark. The sections below cover text mode, the \degree command and units.
Degree symbol in math mode
Inside maths (between dollar signs, or in an equation), put ^{\circ} right after the number. Keep the braces so only the ring is raised, and no package is needed: , .
$90^{\circ}$Degree symbol in text mode
Outside maths, write \textdegree: 37\textdegree C prints 37°C. It has been built into LaTeX since 2020; an older installation needs \usepackage{textcomp}. With UTF-8 input, the default in Overleaf, you can also type ° directly. Neither works inside maths, where ^{\circ} is the one to use.
37\textdegree CThe \degree command (gensymb) and the Overleaf error
\degree is not part of core LaTeX, which is why Overleaf answers 90\degree with "Undefined control sequence". Add \usepackage{gensymb} to the preamble and \degree works in text and maths alike. The same package gives \celsius for °C.
Sites and note-taking apps that render maths with KaTeX, Notion among them, understand \degree with no package at all.
\usepackage{gensymb}90\degreeDegrees Celsius and Fahrenheit (°C, °F)
In maths, raise the ring and keep the letter upright: and . Without \mathrm the C comes out in italics, like a variable.
In a document full of units, the siunitx package spaces and formats them for you: \qty{37}{\degreeCelsius} for a temperature and \ang{90} for an angle. Older documents write \SI{37}{\celsius}.
$37^{\circ}\mathrm{C}$\qty{37}{\degreeCelsius}Examples
$90^{\circ}$a right angle
$37^{\circ}\mathrm{C}$a temperature in Celsius
$\angle ABC = 60^{\circ}$a labelled angle
$\sin 30^{\circ} = \tfrac{1}{2}$a trig value in degrees
$\theta = 45^{\circ}$an angle in degrees
$90\degree$with the gensymb package (KaTeX needs none)
Tips and common mistakes
- ^{
\circ} is the one that works everywhere;\degreeneeds the gensymb package in LaTeX and Overleaf, though KaTeX knows it without one. - Keep units upright: write 37^{
\circ}\mathrm{C}, not 37^{\circ}C, so the C is not italicised. \textdegreeis for text only: inside maths it fails, so use ^{\circ} there.- Brace the superscript as ^{
\circ} so nothing else is accidentally raised. - For many units or angles, siunitx (
\qty,\ang) keeps the spacing the same across the document.
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 type ° on a Mac?
Shift + Option + 8. Option + 0 gives º, the ordinal indicator, which looks close but is a different character.
Is it 21°C or 21 °C?
Both are common. The SI brochure writes 21 °C, with a space, and many newspapers drop it. Angles never take the space: 45°.
How do I type the degree symbol in LaTeX math mode?
Write it as a superscript circle: . It works in LaTeX, Overleaf, KaTeX and MathJax with no package.
Why does \degree give 'Undefined control sequence'?
\degree comes from the gensymb package. Add \usepackage{gensymb} to the preamble (in Overleaf, above \begin{document} in the main file) and 90\degree works in text and maths.
How do I write degrees Celsius?
In maths, . In text, 37\textdegree C. With siunitx, \qty{37}{\degreeCelsius}.
Can I type the ° character directly?
In text, yes: Overleaf and modern LaTeX read UTF-8, so a typed ° prints as a degree sign. Inside maths it fails; use ^{\circ} there.