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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث