Math Set Symbols and Logic Symbols, With Examples

November 11, 2026 · 14 min read

Math Set Symbols and Logic Symbols: What Each One Means

The math set symbols you'll meet most are ∈ (is an element of), ∪ (union), ∩ (intersection), ⊆ (subset) and ∅ (the empty set). Logic symbols are their twins: ∨ means or, ∧ means and, ¬ means not, and ⇒ means implies. Below, each one gets a meaning, a read-aloud phrase and a worked example.

Math Set Symbols at a Glance

These are the set math symbols you'll see in almost every textbook. The examples use A={1,2,3,4}A = \lbrace 1, 2, 3, 4 \rbrace and B={3,4,5}B = \lbrace 3, 4, 5 \rbrace, and the last column gives the LaTeX command for Markdown math. Our LaTeX set notation reference covers those commands and their look-alikes in depth.

SymbolNameRead it asExampleLaTeX
{ }Set bracesthe set of{1,2,3,4}\lbrace 1, 2, 3, 4 \rbrace\lbrace \rbrace
∈Element ofis in, belongs to3∈A3 \in A\in
∉Not an element ofis not in5∉A5 \notin A\notin
⊆Subsetis a subset of{3,4}⊆B\lbrace 3, 4 \rbrace \subseteq B\subseteq
⊊Proper subsetis a proper subset of{3,4}⊊A\lbrace 3, 4 \rbrace \subsetneq A\subsetneq
⊂Subset (meaning varies)depends on the textbook{1}⊂A\lbrace 1 \rbrace \subset A\subset
⊈Not a subsetis not a subset of{5}⊈A\lbrace 5 \rbrace \nsubseteq A\nsubseteq
⊇Supersetcontains, is a superset ofA⊇{1,2}A \supseteq \lbrace 1, 2 \rbrace\supseteq
∪UnionA union BA∪B={1,2,3,4,5}A \cup B = \lbrace 1, 2, 3, 4, 5 \rbrace\cup
∩IntersectionA intersect BA∩B={3,4}A \cap B = \lbrace 3, 4 \rbrace\cap
∖Set differenceA minus BA∖B={1,2}A \setminus B = \lbrace 1, 2 \rbrace\setminus
AᶜComplementthe complement of AAcA^cA^c or \overline{A}
∅Empty setthe empty setA∩∅=∅A \cap \emptyset = \emptyset\emptyset
UUniversal setthe universeA⊆UA \subseteq UU
∣A∣\lvert A \rvertCardinalitythe size of A∣A∣=4\lvert A \rvert = 4\lvert A \rvert
𝒫(A)Power setthe power set of A∣P(B)∣=8\lvert \mathcal P(B) \rvert = 8\mathcal{P}(A)
×Cartesian productA cross B(1,5)∈A×B(1, 5) \in A \times B\times

A few of these symbols for sets in math have rivals. Complement also appears as A′ or as A with a bar over it, and set difference as A − B. Only the glyph changes.

What Do ∩ and ∪ Mean in Math?

∪ is union: everything that's in A, in B, or in both. ∩ is intersection: only the elements both sets share. A memory trick: ∪ looks like a cup that holds everything you pour in, and ∩ is the cup turned over.

Take a universal set U={1,2,3,4,5,6,7}U = \lbrace 1, 2, 3, 4, 5, 6, 7 \rbrace with the A and B from the table. Here's every basic operation worked out:

A∪B={1,2,3,4,5}A \cup B = \lbrace 1, 2, 3, 4, 5 \rbrace

A∩B={3,4}A∖B={1,2}Ac={5,6,7}A \cap B = \lbrace 3, 4 \rbrace \qquad A \setminus B = \lbrace 1, 2 \rbrace \qquad A^c = \lbrace 5, 6, 7 \rbrace

3 and 4 appear once in the union, not twice, because a set lists each element only one time. The complement depends on U: change the universe and Aᶜ changes with it.

One more operation shows up in probability and discrete math: the symmetric difference, written A △ B. It keeps the elements in exactly one of the two sets, so A△B={1,2,5}A \triangle B = \lbrace 1, 2, 5 \rbrace.

The ∪ glyph is not the capital letter U, though many fonts draw them alike. The rounded ∪ is the union operator, and a plain capital U usually names the universal set. ∪ sits between two sets like a plus sign, while U stands alone like any other set name. Our math symbols reference lists more look-alike pairs, such as ∈ and ε.

Membership and Subsets: ∈, ⊆ and the ⊂ Problem

∈ compares an element with a set. ⊆ compares a set with a set. Mixing them up is the classic beginner's slip. With A as above, 2∈A2 \in A is true and {2}⊆A\lbrace 2 \rbrace \subseteq A is true, but 2⊆A2 \subseteq A makes no sense, because 2 isn't a set here.

Every set is a subset of itself, so A⊆AA \subseteq A holds. And ∅ is a subset of every set, for a reason the logic section below makes clear.

The symbol ⊂ is where books disagree. The open textbook Discrete Mathematics: An Open Introduction uses A⊂BA \subset B to mean a proper subset, so A can't equal B. Plenty of other texts use ⊂ for any subset. We prefer ⊆ for "subset or equal" and ⊊ for "proper subset" in anything you publish, because neither one can be misread.

∣A∣\lvert A \rvert is the cardinality, the number of elements, so ∣A∣=4\lvert A \rvert = 4. The power set 𝒫(A) is the set of all subsets of A. A finite set with n elements has 2n2^n subsets. B has 3 elements, so it has 23=82^3 = 8 subsets, counting ∅ and B itself.

Reading Set-Builder Notation and Number Sets

Set-builder notation describes a set by a rule instead of a list:

{x∈Z∣x>0}\lbrace x \in \mathbb Z \mid x > 0 \rbrace

Say it as "the set of all integers x such that x is greater than 0". The vertical bar and a colon both mean "such that", so {x∈Z:x>0}\lbrace x \in \mathbb Z : x > 0 \rbrace is the same set.

The blackboard-bold letters name the standard number sets:

  • ℕ: the natural numbers, 0, 1, 2, 3 and so on, or 1, 2, 3 in many school books
  • ℤ: the integers, including negatives and zero
  • ℚ: the rationals, fractions of integers with a nonzero denominator
  • ℝ: the real numbers
  • ℂ: the complex numbers

ℕ is the one to watch. The international standard ISO 80000-2 counts 0 as a natural number, but many school books start at 1. If it matters, say which you mean, or write ℤ⁺ for the positive integers.

Is ∨ "And" or "Or"? Logic Connectives ∧, ∨ and ¬

∨ means or. The upside-down v, ∧, means and. ¬ means not. So the and and or symbols in math are ∧ and ∨, and people mix them up constantly. The trick that sticks: ∧ points up like the A in "And", and ∨ is the other one.

Each connective joins statements, here p and q, and its result depends only on whether they're true. The truth table covers all four combinations:

ppqqp∧qp \land q (and)p∨qp \lor q (or)¬p\neg p (not p)
TTTTF
TFFTF
FTFTT
FFFFT

The or in logic is inclusive. p∨qp \lor q is true when both are true, unlike "soup or salad" on a menu. When you need "one or the other but not both", that's exclusive or, often written ⊕.

You'll meet other spellings outside discrete math. Boolean algebra often writes and as a dot and or as a plus, programming uses &&, || and !, and some books write not as a tilde, ~p. The meanings match the table. To type ∧, ∨ and ¬ in math mode, our LaTeX symbols reference lists the command for each.

Implication and Equivalence: →, ⇒, ↔ and ⇔

p⇒qp \Rightarrow q reads "if p, then q" or "p implies q". It's false in exactly one case: p is true and q is false. Every other row is true, including both rows where p is false, which feels odd at first.

"If a number is in ∅, then it's greater than 100" is true. There's no number in ∅ to break the promise, so it holds automatically. Logicians call this vacuous truth, and it's the reason ∅ is a subset of every set.

The double arrow ⇔, or ↔, reads "if and only if", often shortened to iff. It's true when both sides have the same truth value. Writers differ on single versus double arrows. Some authors use → inside a formula and ⇒ between whole statements, but plenty of texts treat them as the same symbol, as the Wikipedia list of logic symbols shows.

Three related symbols turn up in proofs:

  • ≡ means "is logically equivalent to", as in p⇒q≡¬p∨qp \Rightarrow q \equiv \neg p \lor q
  • ∴ means "therefore" and introduces a conclusion
  • ∵ means "because" and introduces a reason

Quantifiers ∀ and ∃: Core Discrete Math Symbols

Quantifiers say how many things a statement covers. They're the symbols in discrete math that turn a claim about one x into a claim about many.

SymbolRead it asExampleMeaning of the example
∀for all∀x∈A,x≤4\forall x \in A, x \le 4every element of A is at most 4
∃there exists∃x∈A,x>3\exists x \in A, x > 3some element of A is bigger than 3
∃!there exists exactly one∃!x∈A,x>3\exists! x \in A, x > 3only one element of A exceeds 3
∄there does not exist∄x∈A,x>9\nexists x \in A, x > 9no element of A exceeds 9

Order changes the meaning. Over the integers, ∀x ∃y (y>x)\forall x \, \exists y \, (y > x) says every number has a bigger one, which is true. Swap them to ∃y ∀x (y>x)\exists y \, \forall x \, (y > x) and you claim one number beats all the others, which is false.

To negate a quantified statement, flip the quantifier and push the ¬ inside:

¬∀x P(x)≡∃x ¬P(x)¬∃x P(x)≡∀x ¬P(x)\neg \forall x \, P(x) \equiv \exists x \, \neg P(x) \qquad \neg \exists x \, P(x) \equiv \forall x \, \neg P(x)

So "not every student passed" means "some student didn't pass". It doesn't mean nobody passed.

How Set Symbols Mirror Logic Symbols

Here's what most lists of math set symbols miss. Every set operation is a logic connective in disguise. Union is defined with or, intersection with and, and complement with not. Once you see the pairs, you only have to learn one set of rules.

Set statementLogic statement about an element x
x∈A∪Bx \in A \cup Bx∈A∨x∈Bx \in A \lor x \in B
x∈A∩Bx \in A \cap Bx∈A∧x∈Bx \in A \land x \in B
x∈Acx \in A^c¬(x∈A)\neg (x \in A)
x∈A∖Bx \in A \setminus Bx∈A∧¬(x∈B)x \in A \land \neg (x \in B)
x∈A△Bx \in A \triangle B(x∈A)⊕(x∈B)(x \in A) \oplus (x \in B)
A⊆BA \subseteq B∀x (x∈A⇒x∈B)\forall x \, (x \in A \Rightarrow x \in B)
A=BA = B∀x (x∈A⇔x∈B)\forall x \, (x \in A \Leftrightarrow x \in B)
∅a statement that's always false
Ua statement that's always true

The shapes even match: ∪ and ∨ both open upward, while ∩ and ∧ both turn the other way. De Morgan's laws hold on both sides of the mirror too. In sets, the complement of an intersection is the union of the complements. In logic, "not (p and q)" is "not p or not q". The De Morgan's laws article gives both forms with proofs.

The demo below comes pre-filled with these pairs, and its preview renders each formula with KaTeX. Try changing A or B and check the results by hand.

Sets and logic side by side

Let A={1,2,3,4}A = \lbrace 1, 2, 3, 4 \rbrace and B={3,4,5}B = \lbrace 3, 4, 5 \rbrace.

A∪B={x∣x∈A∨x∈B}={1,2,3,4,5}A \cup B = \lbrace x \mid x \in A \lor x \in B \rbrace = \lbrace 1, 2, 3, 4, 5 \rbrace

A∩B={x∣x∈A∧x∈B}={3,4}A \cap B = \lbrace x \mid x \in A \land x \in B \rbrace = \lbrace 3, 4 \rbrace

De Morgan in both languages:

(A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c

¬(p∧q)  ⟺  ¬p∨¬q\lnot (p \land q) \iff \lnot p \lor \lnot q

Every element of A is at most 4: ∀x∈A,x≤4\forall x \in A, x \le 4

103 words449 characters15 lines
Markdown

Typing Set and Logic Symbols in Markdown Math

In plain text, pasting the Unicode characters (∪, ∧, ∀) works fine. For anything with structure, wrap LaTeX in dollar signs: single for inline, double for display. Our guide to writing equations in Markdown covers both delimiters. Our editor renders both with KaTeX in its live preview, and the same delimiters handle larger blocks such as matrices in Markdown.

Three things trip people up when moving math set symbols into Markdown:

  1. A bare vertical bar inside a table row ends the cell. Use \mid for "such that" and \lvert A \rvert for cardinality, which is why the tables above use \lvert.
  2. Some Markdown parsers treat \{ as an escaped brace and drop the backslash. \lbrace and \rbrace print the same braces with no ambiguity.
  3. Textbook macros fail outside their book. The open textbook linked above defines its own shortcuts, such as \pow, so swap in standard commands like \mathcal{P}.

One limitation to know: our editor recognises only $...$ and $$...$$. Many textbook websites write math between \( and \), so swap those delimiters before you paste. The KaTeX supported functions list confirms which commands render. For a single formula you want as an image, the LaTeX equation editor has a symbol palette and exports PNG or SVG. If a whole document is mostly math, Markdown vs LaTeX helps you choose.

Quick Answers on Set and Logic Notation

Math set symbols and logic symbols are one system written two ways: ∪ with ∨, ∩ with ∧, complement with ¬ and ⊆ with ⇒. Learn the pairs, keep ⊆ and ⊊ for subsets, and say which ℕ you mean. To practise, type the examples above into the Markdown editor and watch the KaTeX preview render each symbol as you write it.