Skip to content
latexci
PreviewDiffWord โ†’ LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord โ†’ LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
GitHub โ†—
Sign in
LaTeX symbolsโ€บComputer Scienceโ€บComplexity P

Complexity P in LaTeX

The LaTeX command for complexity P (๐–ฏ) is \mathsf{P} (P complexity class).

P\mathsf{P}P
\mathsf{P}
Computer Science ยท Unicode ๐–ฏ (U+1D5AF) ยท no package needed

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

How to type Complexity P

Write \mathsf{P} inside math mode, that is between $โ€ฆ$ for inline math or in a \[ โ€ฆ \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.

In pseudocode or running text, wrap \mathsf{P} in $...$ so it keeps math spacing and fonts. With unicode-math under XeLaTeX or LuaLaTeX, typing ๐–ฏ in a formula gives the same symbol.

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

Related Computer Science symbols

โˆฃ\midโŒŠโŒ‹\lfloor x \rfloorโŒˆโŒ‰\lceil x \rceilโŠค\topโŠฅ\botโŠจ\models๐–ญ๐–ฏ\mathsf{NP}๐’ช\mathcal{O}ฮฉ\Omegaฮ˜\ThetaooโŠ•\oplusโˆง\landโˆจ\lor

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

FAQ

How do you write complexity P (๐–ฏ) in LaTeX?

Use \mathsf{P} in math mode; it needs no extra package. For example, $\mathsf{P}$.

Which package provides \mathsf{P}?

None: \mathsf{P} is built into LaTeX, so no extra package is required.

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

GitHub IssuesFeature Requests

ยฉ 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms