LatexNotes

Real numbers (ℝ) in LaTeX

\mathbb{R} produces the blackboard-bold symbol for the set of real numbers. The same \mathbb command gives the other standard number sets: N, Z, Q and C.

LaTeX command

\mathbb{R}

Not the symbol you meant? Draw it to find the command →

\mathbb{R} renders R in blackboard bold (double-struck), the conventional symbol for the real numbers. The \mathbb font is designed for uppercase Latin letters, so \mathbb{N} (naturals), \mathbb{Z} (integers), \mathbb{Q} (rationals) and \mathbb{C} (complex) all work. In full LaTeX \mathbb comes from the amssymb package; KaTeX supports it natively.

Use blackboard bold only for these standard sets and a few named structures; for an arbitrary set a plain italic letter is more usual. Applying \mathbb to lowercase letters or digits is not part of the standard font and may render inconsistently, so keep it to capitals.

To restrict a set, combine the symbol with ordinary sub- and superscripts: \mathbb{R}^n for n-dimensional space, \mathbb{R}_{>0} or \mathbb{R}^{+} for the positive reals, and \mathbb{Z}^{+} for the positive integers.

Other forms

\mathbb{N}naturals (ℕ)
\mathbb{Z}integers (ℤ)
\mathbb{Q}rationals (ℚ)
\mathbb{C}complex (ℂ)

Examples

$f : \mathbb{R} \to \mathbb{R}$

a real-valued function

$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}$

the chain of number sets

$x \in \mathbb{R}^n$

a point in n-dimensional space

$\mathbb{R}_{>0}$

the positive reals

$z \in \mathbb{C}, \ z = a + bi$

a complex number

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into clean, compilable LaTeX - graphs and all. Free to try, no sign-up.

Convert your maths to LaTeX →

FAQ

How do I write the real numbers symbol in LaTeX?

Use in math mode. It renders a double-struck (blackboard-bold) R. In full LaTeX this needs the amssymb package.

How do I get N, Z, Q and C?

Use the same command with the matching capital: , , and .

Why does \mathbb not work for lowercase letters?

The \mathbb font only defines uppercase Latin letters, so lowercase input is undefined and renders inconsistently. Blackboard bold is used for capitals such as R and C.

See also