How to write the Degree celsius symbol in LaTeX?

How to write the Degree celsius symbol in LaTeX?

This post may contain affiliate links that allow us to earn a commission at no expense to you. Learn more

This article aims to show you the simplest and easiest way to write the degree celsius symbol in LaTeX.

In the vast list of many mathematical symbols you can create using LaTeX, we have today’s protagonist the degree celsius symbol. Today you will learn more about it and how to write it in your LaTeX document

Degree Symbol

The degree sign or degree symbol is a typographical symbol, used in many fields, such as geography, math, physics and engineering. It is represented by a small circle with an empty center, used to denote degrees of a right angle in math, to represent degrees of arc in geography, or to denote degrees of temperature. 

Degree celsius symbol in LaTeX :

Today we will focus on using this symbol to denote degrees of temperature in the Celsius scale. This is the most common use that the degrees symbol has.  Remember that we can also apply all these concepts and ideas to the Fahrenheit scale.

Degree Celsius Symbol in LaTeX

Now, the degree celsius symbol we know is composed of two elements, the small circle followed by the letter C. We will call the degree celsius symbol “the degree symbol or sign” from now on.

To write the degree symbol in LaTeX you have four different methods with various packages, with only one method not involving external packages. Independently of the method you prefer, you will need to write the commands inside math mode.

The first method does not require packages, we will use the command ^{\circ}. This is the superscript command ^, with the \circ command as argument. The output is only a small circle, thus you need to write the letter C next to it. For example

    The command \verb|^{\circ}|: $^{\circ}$C
Degree celsius symbol in LaTeX : Writing degree symbol with ^{\circ}
Writing degree symbol with ^{\circ}

Starting with the methods with packages, the first one is using the siunitx package. We will need to first, write the command \si next to the number and then {\degree} or {\degreeCelsius}, to generate the small circle and the letter C. Let’s see how it would look like

    $45\si{\celsius}$ + $90\si{\degreeCelsius}$ $\neq$ $135\si{\celsius}$
    %we write first \si then {\celsius} or {\degreeCelsius}
Degree celsius symbol in LaTeX :

Note: the % indicates comments in your LaTeX code, it will not be compiled once you run the file.

The second option is using the textcomp package, this package allows you to write proper degree symbols either in text mode. We use the \textdegree command or \textcelsius, the former does not generate the C automatically while the latter does . For example 

    \verb|\textdegree|: 0\textdegree C \\ % we need to add the letter C
    \verb|\textcelsius|: 0\textcelsius \\ %we do not need to add the letter C
Degree celsius symbol in LaTeX : The proper degrees symbol
The proper degrees symbol

The third and last option is using the gensymb package, this package only creates the degree symbol without the letter C, so you have to write it manually. We use the \degree command inside the math mode to generate the desired output,

    The human body has a \\
    average temperature of $36.7\degree$C
% we have to write manually C
Degree celsius symbol in LaTeX : Degrees symbol
Degrees symbol

These methods are the most common ones to write proper degree symbols using LaTeX packages. Sadly for some reason the amsmath package does not include this symbol directly, maybe someone on the internet has the answer about it.

I hope this post was helpful in guiding you, and as always keep writing in LaTeX.

All images were created in LaTeX by the author.

Further Reading

LaTex Tutorial on Symbols

  1. How To Create A Cross Product Symbol In LaTeX
  2. How to create a hat symbol in LaTeX?
  3. How to create a prime symbol in LaTeX?
  4. How to create an absolute value symbol in LaTeX?
  5. How to create an approximate symbol in LaTeX?
  6. How to create an intersection symbol in LaTeX?
  7. How to create the empty set symbol in LaTeX?
  8. How to write a degree symbol in LaTeX?
  9. How to write a dot product in LaTeX?
  10. How to Write a Greater Than Symbol in LaTeX?
  11. How to write a norm symbol in LaTeX?
  12. How to write A Plus-Minus Symbol in LaTeX
  13. How to write a proportional to symbol in LaTeX?
  14. How to write a real number symbol in LaTeX?
  15. How to write a tilde symbol in LaTeX?
  16. How to write a union symbol in LaTeX?
  17. How to write a vector in LaTeX?
  18. How to write an infinity symbol in LaTeX?
  19. How to write bold text in LaTeX?
  20. How To Write Dots Symbols In LaTeX?
  21. How to write the arrow symbols in LaTeX
  22. How to write the equal or not equal symbol in LaTeX?
  23. How to write the Euro symbol in LaTeX?
  24. How to write the floor symbol in LaTeX?
  25. How to write the gradient operator symbol in LaTeX
  26. How To Write The Greater Than Or Equal To Symbol In LaTeX?
  27. How to write the integer number symbol in LaTeX?
  28. How to write the less than symbol in LaTeX?
  29. How to write the Natural numbers symbol in LaTeX?
  30. How to write the parallel symbol in LaTeX?
  31. How to write the percent symbol in LaTeX?
  32. How to write the square root symbol in LaTeX?
  33. How To Write The Symbol For A Subset In LaTeX?
  34. How to write the symbol for therefore in LaTeX?
  35. How to write with the mathbb in LaTeX?

Photo of author
Joannah W.
Joannah has been a science publisher with close to 20 years of experience. She wants to help students and researchers stay ahead of the trends and developments in the science community by making science more accessible to everyone.

Leave a Comment