Boolean AND in LaTeX (A \cdot B)

A⋅BA \cdot B
LaTeX command
A \cdot B
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Centred dot between two variables, the engineering notation for Boolean AND (logical conjunction).

Switching algebra and digital electronics write conjunction multiplicatively: A \cdot B, or simply AB, mirroring how AND behaves like multiplication on 0 and 1. In formal logic the same operation is written A \wedge B or A \land B. \cdot is a binary operator, so it already gets medium spacing; do not use a period, which in math mode is punctuation-like and sits on the baseline. Many textbooks drop the dot entirely in sum-of-products expressions such as AB + \overline{A}C, keeping \cdot only where juxtaposition would be ambiguous, for example between multi-letter signal names.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

F=A⋅B+A‾⋅CF = A \cdot B + \overline{A} \cdot C
\documentclass{article}
\begin{document}
Boolean AND: $A \cdot B$

\[ F = A \cdot B + \overline{A} \cdot C \]
\end{document}

Related symbols

All ブール代数 →

Frequently asked questions

How do I write Boolean AND in LaTeX?
Type A \cdot B in math mode, for example $F = A \cdot B + \overline{A} \cdot C$. It works in plain LaTeX without loading any package.
Which package do I need for A \cdot B?
None. A \cdot B is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use A \cdot B in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $A \cdot B$ in running text.
Math poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得