How to write a real number symbol in LaTeX?

How to write a real number 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 a simple way to create a real number symbol in LaTeX.

Sooner or later you have seen the real number symbol somewhere, and today you will learn how to insert this symbol in your LaTeX document. 

LaTeX Real Number

As you know real numbers are the set of rational and irrational numbers that belong to the natural numbers, usually denoted by writing a capital blackboard R.  And you can include it in many ways in your LaTeX document.


It begins with the basic built-in command that doesn’t require a package, \mathbf{} it takes one value as argument

$$\mathbf{R}$$ %basic code
real number symbol in LaTeX
A capital blackboard bold R, an old textbook or document could have it


Now we can achieve a similar but more elegant result with the amssymb package, using the command \mathbb{R} that takes one value. For example

$\mathbb{R}$ is the set of real numbers
real number symbol in LaTeX
More traditional sign nowadays for the real numbers symbol

This is based on the double bars from writing the set on the blackboards back in the old days.


Another package to define the set, can be created using the amsfont package, it contains different fonts according to the American Mathematical Society. The command is \mathbb{R} just as before. For example

$\mathbb{R}$ is the set of real numbers
real number symbol in LaTeX
Same font as with the amssymb package output


Maybe if you are working with complex variables you may want to use the Re(z) symbol to define the real numbers in complex analysis, for the amsmath package is called, the command is \operatorname{Re}(z). For example

$\operatorname{Re}(z)$ is the set of the real numbers in $\mathbb{Z}$
real number symbol in LaTeX
Combination of two packages output, it is not bold.

Basically the \mathbb{R} command is not limited to one latex package and there could be others that do the same, and the same goes to other symbols, but these packages are the most populars ones out there.

I hope you find this tutorial helpful and don’t forget to comment if you have any questions.

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 tilde symbol in LaTeX?
  15. How to write a union symbol in LaTeX?
  16. How to write a vector in LaTeX?
  17. How to write an infinity symbol in LaTeX?
  18. How to write bold text in LaTeX?
  19. How To Write Dots Symbols In LaTeX?
  20. How to write the arrow symbols in LaTeX
  21. How to write the Degree celsius symbol 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