Element of Symbol (∈) in LaTeX
Write the element-of symbol as \in in math mode: $x \in A$ gives x ∈ A. "Not an element of" is \notin (∉) and the reversed "contains as element" is \ni (∋). No package is needed.
Membership symbols
x \in Ax is an element of A.
x \notin Ax is not an element of A.
A \ni xA contains x as an element.
\ownsis a synonym.A \not\ni xA does not contain x.
\sum_{i \in I} a_iIndex set under a sum or union.
\epsilon, \varepsilonGreek epsilon: a letter, not the element sign.
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.
Element of ∈ 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.
Membership
LaTeXx \in \mathbb{R}Non-membership
LaTeX\sqrt{2} \notin \mathbb{Q}Set-builder notation
LaTeX\{ x \in \mathbb{Z} : x > 0 \} = \mathbb{Z}_{>0}Quantifier
LaTeX\forall x \in A, \; x \in BSum over a set
LaTeX\sum_{i \in I} a_iIndexed union
LaTeX\bigcup_{n \in \mathbb{N}} A_nContains
LaTeXA \ni a
∈ is not epsilon
∈ looks like a Greek epsilon, but it is a relation symbol: \in gets relation spacing on both sides and has its own shape. \epsilon (ϵ) and \varepsilon (ε) are letters for variables such as a small tolerance. Using a letter where you mean membership prints the wrong symbol with the wrong spacing.
\notin or \not\in?
Both print ∉. \notin is defined so that the slash sits well on the symbol, and it is the standard choice. \not\in also works; the result can look slightly different depending on the font.
Under sums and unions
Put the membership in the subscript of a big operator: \sum_{i \in I}, \bigcup_{n \in \mathbb{N}}, \max_{x \in S}. In a displayed equation it is set below the operator.
Common mistakes
\epsilonis the Greek letter ϵ, with letter spacing, not the element-of relation.Instead ofx \epsilon AWritex \in AA plain R is an italic variable. The set of real numbers is
\mathbb{R}(amssymb).Instead ofx \in RWritex \in \mathbb{R}\inonly works in math mode; in text LaTeX reports "Missing $ inserted".Instead ofwhere x \in AWritewhere $x \in A$
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
\in,\notin,\niand\ownsare built into LaTeX; no package is needed.MathJax and KaTeX
MathJax and KaTeX support
\in,\notin,\niand\ownsdirectly.Microsoft Word
In a Word equation, typing
\infollowed by a space is usually converted to ∈ by Math AutoCorrect. For a longer formula, write it here and use Copy for Word.
Element of ∈ in LaTeX: questions
- How do I write ∈ in LaTeX?
- Use
\inin math mode:$x \in A$. - How do I write "not an element of"?
- Use
\notinfor ∉:$x \notin A$. - What is the difference between \in and \epsilon?
\inis the membership relation ∈.\epsilonis the Greek letter ϵ. They look alike but are different symbols with different spacing.- How do I write ∋ (contains)?
- Use
\nior its synonym\owns:$A \ni x$.
Related LaTeX reference
- Subset in LaTeX\subset, \subseteq, \subsetneq, the superset forms and the negated "not a subset" symbols.
- Real Number Symbol in LaTeXBlackboard bold number sets with \mathbb: ℝ, ℕ, ℤ, ℚ, ℂ, ℝⁿ, and why \R does not work out of the box.
- And Symbol and Logic Symbols in LaTeXLogical and (\land), or, not, implies, iff, for all and there exists, and how to print a literal & instead.
- 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