loading tool…
The LaTeX command for mathbb Q (ℚ) is \mathbb{Q} — rational numbers.
\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.
$A \mathbb{Q} B$Prefer to see it live? Paste it into the LaTeX preview and it renders as you type — no compiler, no signup.
\emptyset\varnothing\mathbb{N}\mathbb{Z}\mathbb{R}\mathbb{C}\mathbb{F}^\complement\bigcap\bigcup\bigsqcup\uplus\biguplus\mathcal{P}Search all 380+ LaTeX symbols →
Use \mathbb{Q} in math mode after adding \usepackage{amssymb} to your preamble. For example, $A \mathbb{Q} B$.
It comes from the amssymb package — add \usepackage{amssymb} to your preamble.