Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Sets›Blackboard bold Q

Blackboard bold Q in LaTeX

The LaTeX command for mathbb Q (ℚ) is \mathbb{Q} (rational numbers).

Q\mathbb{Q}Q
\mathbb{Q}
Sets · Unicode ℚ (U+211A) · needs amssymb

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

How to type Blackboard bold Q

Write \mathbb{Q} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amssymb package, so add \usepackage{amssymb} to your preamble.

Set notation lives in math mode: write $\mathbb{Q}$, even in the middle of a sentence. With unicode-math under XeLaTeX or LuaLaTeX, typing ℚ in a formula gives the same symbol.

Example
$A \mathbb{Q} B$AQBA \mathbb{Q} BAQB

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Sets symbols

∅\emptyset∅\varnothingℕ\mathbb{N}ℤ\mathbb{Z}ℝ\mathbb{R}ℂ\mathbb{C}𝔽\mathbb{F}∁^\complement⋂\bigcap⋃\bigcup⊔\bigsqcup⊎\uplus⊎\biguplus𝒫\mathcal{P}

Set symbols in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write mathbb Q (ℚ) in LaTeX?

Use \mathbb{Q} in math mode after adding \usepackage{amssymb} to your preamble. For example, $A \mathbb{Q} B$.

Which package provides \mathbb{Q}?

It comes from the amssymb package: add \usepackage{amssymb} to your preamble.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms