Degree Symbol (°): How to Type It on Any Device
November 11, 2026 · 10 min read
Degree Symbol (°): How to Type It on Any Keyboard, in HTML and LaTeX
The degree symbol is °, Unicode U+00B0. On Windows, hold Alt and type 0176 on the numeric keypad. On a Mac, press Option+Shift+8. On an iPhone, touch and hold the 0 key on the number keyboard. In HTML or Markdown, write °, and in LaTeX math, write ^\circ. Below you'll find every route, plus the look-alikes to avoid.
Degree Symbol Codes at a Glance: U+00B0, Alt 0176 and HTML Entities
Each row gives the fastest way to produce the real degree sign on that device or in that format. The character is identical everywhere; only the way you summon it changes.
| Where you're typing | What to press or write | Notes |
|---|---|---|
| Windows | Alt+0176 | Numeric keypad only, Num Lock on |
| Mac (US layout) | Option+Shift+8 | Or Edit, then Emoji & Symbols |
| Linux (GNOME) | Ctrl+Shift+U, then b0, then Space | Hex code entry |
| iPhone | 123 key, then touch and hold 0 | US English keyboard |
| Word for Windows | 00b0 then Alt+X | Converts the hex code in place |
| Google Docs | Insert, Special characters | Search for degree |
| Excel | =UNICHAR(176) | Returns U+00B0 by its Unicode value |
| HTML | °, ° or ° | All three give the same character |
| Markdown | Paste ° or write ° | No special syntax |
| LaTeX or KaTeX math | ^\circ or \degree | \degree needs gensymb in LaTeX |
The code point U+00B0 sits in the Latin-1 Supplement block, as the Unicode chart for that block shows. It's not part of 7-bit ASCII, which ends at 127. That's why the degrees symbol sometimes turns into junk in older systems and some emails.
How Do You Type the Degree Symbol on a Windows PC?
Hold the Alt key, type 0176 on the numeric keypad, then let go of Alt. The ° appears where your cursor is. Num Lock must be on, and the digits must come from the keypad. The number row across the top of the keyboard won't work.
The leading zero matters. On English-language Windows, Alt+0176 uses the Windows-1252 character set, where 176 is °. Alt+248 also gives °, because it uses the old DOS code page 437. Mix them up and Alt+0248 types ø, while Alt+176 types a shaded block.
Most laptops have no numeric keypad, so try one of these instead:
- Emoji panel: press the Windows key and the period key together. Open the Symbols tab and browse its groups until you spot °.
- Character Map: search for it from the Start menu, tick Advanced view, search for degree, then copy.
- Inside Office: use the Word method in the section below.
Degree Sign Shortcuts on Mac, ChromeOS and Linux
On a Mac with the US English layout, press Option+Shift+8. Other layouts may put ° on a different key. To find it on yours, open the Keyboard Viewer from the Input menu and hold Option and Shift to see what each key produces.
You can also choose Edit, then Emoji & Symbols, in most apps, or press Fn/Globe+E to open the Character Viewer. Search for degree and double-click the result.
On GNOME and most Linux desktops that use IBus, press Ctrl+Shift+U, type b0, and press Space or Enter. Many Chromebooks accept the same sequence too. Test it on yours first, because Chromebook Help's keyboard pages don't mention it.
How Do You Type the Degree Symbol on an iPhone or Android Phone?
On an iPhone, tap 123 to switch to numbers, then touch and hold the 0 key. A small popup shows °. Slide your finger onto it and release. This works on the default US English keyboard.
Android keyboards differ more. On Gboard, tap ?123, then the =\< key to open the second symbols page, which usually holds °. Some keyboards also offer it when you long-press 0. Samsung Keyboard and others place it in their own symbol pages, so check yours once and remember the spot.
If you type temperatures often, set up a text replacement. On iPhone, that lives under Settings, General, Keyboard, Text Replacement. A shortcut like dgc that expands to °C saves a lot of hunting.
Inserting ° in Word, Google Docs and Excel
Microsoft Word. In Word for Windows, type 00b0 and press Alt+X right after it. Word swaps the hex code for °. The menu route is Insert, Symbol, More Symbols, with the subset set to Latin-1 Supplement. Alt+0176 works too if you have a keypad.
Google Docs. Open Insert, then Special characters. Type degree in the search box, or draw the circle in the sketch area, and click the match.
Excel. Use =UNICHAR(176) in a cell, or join it to a value with =A2&UNICHAR(176)&"C". CHAR is tied to an older, platform-specific character set, so =CHAR(176) isn't guaranteed to return ° everywhere. UNICHAR reads Unicode values, so 176 always means U+00B0.
The Degree Symbol in HTML, Markdown and LaTeX
HTML gives you three ways to write the same character. The WHATWG list of named character references maps ° to U+00B0.
<p>Water boils at 100°C.</p>
<p>Turn the knob 90° to the right.</p>
<p>Heading: 270° west.</p>
Each line renders with a real °. In CSS generated content, use the escape \00B0 inside the content string. The HTML symbol codes cheat sheet gives the same three forms for other characters.
Markdown has no degree syntax of its own. CommonMark treats ° and ° as the character, so this works anywhere that follows the spec:
Today's high is 21°C, typed directly.
Tomorrow's high is 19°C, written as an entity.
Both lines render as plain text with °. Entities stay literal inside code spans and code blocks, and the guide to escaping Markdown characters covers how & behaves elsewhere.
For math, LaTeX builds the sign from a superscript circle or a package command:
$90^\circ$ % superscript circle, no package needed
$45\degree$ % needs \usepackage{gensymb} in LaTeX
\textdegree % text mode outside math
KaTeX accepts ^\circ and \degree, per its supported functions list. Wrap the math in single or double dollar signs, as the Markdown equation guide explains. The ^ is just LaTeX's superscript operator, which the subscript and superscript post compares with HTML's <sup> tag. For relations, operators and other math commands, the LaTeX symbols reference lists each one with its KaTeX support.
Try all three styles below. The preview renders the entities and the KaTeX math, and the converter gives you the HTML. Our editor has no symbol picker or degree shortcut, so you type or paste ° the same way you would anywhere else.
° vs ˚ vs º: Look-Alike Characters That Break Search and Data
Several characters look like a small raised circle. Only one of them is the symbol for degrees.
| Character | Name | Code point | How it sneaks in |
|---|---|---|---|
| ° | Degree sign | U+00B0 | The correct one |
| ˚ | Ring above | U+02DA | Option+K on a US Mac |
| º | Masculine ordinal indicator | U+00BA | Option+0 on a US Mac, Alt+0186 on Windows |
| ⁰ | Superscript zero | U+2070 | Superscript generators |
| ℃ | Degree Celsius | U+2103 | East Asian input methods, copy and paste |
A raised letter o, written as <sup>o</sup>, is a fifth fake. It looks fine but contains no degree sign at all.
The wrong character causes real problems. A search for 21° won't find 21º, sorting and data imports treat them as different text, and screen readers announce the wrong name. Unicode marks ℃ as a compatibility character that decomposes to ° plus C, so ° followed by a plain C is the safer choice.
Seeing ° on a web page is a different bug. In UTF-8, ° is stored as two bytes, C2 B0. When software reads those bytes as Windows-1252 or Latin-1, C2 shows up as Â. Declaring <meta charset="utf-8"> usually fixes it.
How Is the Degree Symbol Used in Math, Maps and Temperatures?
In geometry, ° marks plane angles: a right angle is 90°, and a full turn is 360°. Map coordinates add minutes and seconds with the prime ′ (U+2032) and double prime ″ (U+2033), as in 51°30′26″N. Straight quote marks are a common stand-in, but the primes are correct.
For temperatures, the degree sign joins the scale letter: °C or °F. Kelvin is different. The 13th CGPM in 1967/68 named the unit simply kelvin, symbol K, so you write 300 K with no degree sign.
Spacing is where style guides disagree. The BIPM SI Brochure says 30.2 °C takes a space before the unit, while angles take none, as in 30°. Many house styles write 21°C with no space. Pick one and stay consistent.
We prefer pasting the real ° into Markdown source rather than using °. The raw file stays readable in a terminal or a diff, and most editors save UTF-8 by default. Use the entity only when a pipeline mangles non-ASCII text.
Quick Answers on Degree Sign Spacing, Codes and Glitches
The degree symbol is one character, U+00B0, with a different key path on each device. Use Alt+0176 on Windows, Option+Shift+8 on a Mac or a long press on 0 on an iPhone, and write ° or ^\circ when you're working in code or math. Watch for º and ˚, which only look right. Paste the examples into the editor to check how they render, or turn them into a full page with the Markdown to HTML converter.