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

  • \cap
    ∩

    Intersection of two sets (binary operator).

  • \bigcap
    ⋂

    Big intersection over an index.

  • \bigcap_{i=1}^{n}
    ⋂ i = 1 n

    Intersection for i from 1 to n.

  • \bigcap_{k \in \mathbb{N}}
    ⋂ k ∈ N

    Intersection over an index set.

  • \sqcap
    ⊓

    Square cap, used for meets in lattices.

  • \Cap
    ⋒

    Double 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.

Templates

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

    A ∩ B = { x : x ∈ A  and  x ∈ B }
    LaTeX
    A \cap B = \{ x : x \in A \text{ and } x \in B \}
  • Indexed intersection

    ⋂ i = 1 n A i
    LaTeX
    \bigcap_{i=1}^{n} A_i
  • Nested intervals

    ⋂ n = 1 ∞ ( 0 , 1 n ) = ∅
    LaTeX
    \bigcap_{n=1}^{\infty} \left( 0, \frac{1}{n} \right) = \varnothing
  • Disjoint sets

    A ∩ B = ∅
    LaTeX
    A \cap B = \varnothing
  • De Morgan’s law

    A ∩ B ― = A ― ∪ B ―
    LaTeX
    \overline{A \cap B} = \overline{A} \cup \overline{B}
  • Probability of both events

    P ( A ∩ B ) = P ( A ) P ( B ∣ A )
    LaTeX
    P(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 of
    A n B
    Write
    A \cap B
  • Scripts on the binary \cap sit beside a small symbol; the big operator stacks them properly.

    Instead of
    \cap_{i=1}^{n} A_i
    Write
    \bigcap_{i=1}^{n} A_i
  • LaTeX names the symbol by its shape, cap. \intersect and \intersection do not exist.

    Instead of
    \intersect
    Write
    \cap

In Overleaf, MathJax and Word

  • Overleaf and pdfLaTeX

    \cap, \bigcap and \sqcap are built in; \Cap needs amssymb.

  • MathJax and KaTeX

    MathJax and KaTeX render all of them; \bigcap limits follow display and inline style as in LaTeX.

  • Microsoft Word

    In a Word equation, \cap then 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 \cap in 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 \bigcup for the big operator. The union page has the variants.

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