Writing temperatures
For Celsius and Fahrenheit, write the number, then the degree sign and the letter together: 20 °C, 68 °F. The international standard for units (the SI) puts a space between the number and °C, and most scientific and technical writing follows it. Many newspapers and everyday style guides close the gap and write 20°C. Either is fine as long as you are consistent.
Kelvin is the exception: it takes no degree sign. Write 293 K, not 293 °K. The word “degree” was dropped from the kelvin in the late 1960s.
Angles and map coordinates
For angles the sign follows the number with no space: a 90° turn, a 45° slope. Coordinates combine it with the prime (′) for minutes and the double prime (″) for seconds, as in 40° 26′ 46″ N. Straight quotes are often used instead of primes, but the primes in the grid above are the correct characters.
Three characters that look like a degree sign
The masculine ordinal indicator º (U+00BA) is used in Spanish and Portuguese for “1º” (first), and in many fonts it is underlined or shaped like a small letter o. The ring above ˚ (U+02DA) is an accent. A superscript zero ⁰ is a digit. All three can pass for a degree sign at a glance, but they are different characters: searches won’t match them, and screen readers announce them differently. The key next to 1 on Spanish keyboards types º, which is a common source of the mix-up.
The combined °C and °F characters
Unicode also has single characters for ℃ (U+2103) and ℉ (U+2109). They exist for compatibility with East Asian character sets, and the Unicode Standard recommends typing the degree sign followed by C or F instead. Use the combined forms only where one character is all you have room for.