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 Aljabar Boolean →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian