Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Logic›Neg

Neg in LaTeX

The LaTeX command for neg (¬) is \neg (logical negation).

¬\neg¬
\neg
Logic · Unicode ¬ (U+00AC) · no package needed

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

How to type Neg

Write \neg 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.

\neg keeps its spacing inside a formula; for a word such as "and" in the middle of one, use \text{ and } from amsmath. In running text, outside math mode, the same sign is \textlnot. With unicode-math under XeLaTeX or LuaLaTeX, typing ¬ in a formula gives the same symbol.

Example
$p \neg q$p¬qp \neg qp¬q

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

Related Logic symbols

∀\forall∃\exists∄\nexists∧\land∨\lor⊤\top⊥\bot∴\therefore∵\because◊\lozenge□\square⫤\Dashv⊨\vDash⊩\Vdash

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

FAQ

How do you write neg (¬) in LaTeX?

Use \neg in math mode; it needs no extra package. For example, $p \neg q$.

Which package provides \neg?

None: \neg 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

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms