Intersection in LaTeX
The intersection symbol ∩ is \cap in math mode: $A \cap B$. To intersect an indexed family of sets, use the big operator \bigcap with limits: \bigcap_{i=1}^{n} A_i.
Intersection commands
\capIntersection of two sets (binary operator).
\bigcapBig intersection over an index.
\bigcap_{i=1}^{n}Intersection for i from 1 to n.
\bigcap_{k \in \mathbb{N}}Intersection over an index set.
\sqcapSquare cap, used for meets in lattices.
\CapDouble intersection (amssymb).
Try it live
Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.
Intersection examples
Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.
Two sets
LaTeXA \cap B = \{ x : x \in A \text{ and } x \in B \}Indexed intersection
LaTeX\bigcap_{i=1}^{n} A_iNested intervals
LaTeX\bigcap_{n=1}^{\infty} \left( 0, \frac{1}{n} \right) = \varnothingDisjoint sets
LaTeXA \cap B = \varnothingDe Morgan’s law
LaTeX\overline{A \cap B} = \overline{A} \cup \overline{B}Probability of both events
LaTeXP(A \cap B) = P(A)\,P(B \mid A)
Small ∩ or big ⋂
Use \cap between two sets. For "the intersection of all A_i", use \bigcap and put the index in the limits, just like \sum. The big operator scales with display style: large with limits under and over it in \[ … \], smaller with side limits inline.
If \cap looks too small next to large sets in a displayed formula, that is by design: it is a binary operator. Switch to \bigcap only when there is an index; for two big expressions keep \cap and let spacing do the work.
Intersections in probability
Probability texts write joint events as P(A \cap B). Conditional probability uses \mid for the bar, P(B \mid A), which gets proper spacing, unlike a plain |.
Common mistakes
A lowercase n is a variable letter and is spaced like one.
Instead ofA n BWriteA \cap BScripts on the binary
\capsit beside a small symbol; the big operator stacks them properly.Instead of\cap_{i=1}^{n} A_iWrite\bigcap_{i=1}^{n} A_iLaTeX names the symbol by its shape, cap.
\intersectand\intersectiondo not exist.Instead of\intersectWrite\cap
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
\cap,\bigcapand\sqcapare built in;\Capneeds amssymb.MathJax and KaTeX
MathJax and KaTeX render all of them;
\bigcaplimits follow display and inline style as in LaTeX.Microsoft Word
In a Word equation,
\capthen Space inserts ∩. For an indexed intersection, build it here and use Copy for Word to paste an editable equation.
Intersection in LaTeX: questions
- How do I write the intersection symbol in LaTeX?
- Use
\capin math mode:$A \cap B$. - How do I write a big intersection with limits?
- Use
\bigcap_{i=1}^{n} A_i; in display math the limits go under and over the symbol. - How do I write that two sets are disjoint?
- Write
A \cap B = \varnothing(or\emptyset). - What is the command for union?
- Union is
\cup, and\bigcupfor the big operator. The union page has the variants.
Related LaTeX reference
- Union in LaTeXThe ∪ symbol with \cup, indexed unions with \bigcup_{i=1}^{n}, and disjoint unions (\sqcup, \uplus).
- Empty Set in LaTeXThe empty set with \emptyset or the rounder \varnothing (amssymb), plus \{\} and common set statements.
- Element of Symbol (∈) in LaTeX\in for ∈, \notin for ∉, \ni for ∋, and how ∈ differs from the Greek letter epsilon.
- LaTeX equation editorSymbol panel, live preview, and PNG, SVG, MathML or Word export.
- All LaTeX reference pagesSymbols, math structures and text formatting in one list.
Have the formula as a picture?
Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.
Convert an image to LaTeX