loading tool…
The LaTeX command for rational numbers (ℚ) is \mathbb{Q}.
\mathbb{Q}Write \mathbb{Q} inside math mode — that is, between $…$ for inline math or in a \[ … \] / equation block for display math. This symbol needs the amssymb package, so add \usepackage{amssymb} to your preamble.
$x \in \mathbb{Q}$Prefer to see it live? Paste it into the LaTeX preview and it renders as you type — no compiler, no signup.
Search all 380+ LaTeX symbols →
Use \mathbb{Q} in math mode after adding \usepackage{amssymb} to your preamble. For example, $x \in \mathbb{Q}$.
It comes from the amssymb package — add \usepackage{amssymb} to your preamble.