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 and , 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.
| Symbol | Name | Read it as | Example | LaTeX |
|---|---|---|---|---|
{ } | Set braces | the set of | \lbrace \rbrace | |
| ∈ | Element of | is in, belongs to | \in | |
| ∉ | Not an element of | is not in | \notin | |
| ⊆ | Subset | is a subset of | \subseteq | |
| ⊊ | Proper subset | is a proper subset of | \subsetneq | |
| ⊂ | Subset (meaning varies) | depends on the textbook | \subset | |
| ⊈ | Not a subset | is not a subset of | \nsubseteq | |
| ⊇ | Superset | contains, is a superset of | \supseteq | |
| ∪ | Union | A union B | \cup | |
| ∩ | Intersection | A intersect B | \cap | |
| ∖ | Set difference | A minus B | \setminus | |
| Aᶜ | Complement | the complement of A | A^c or \overline{A} | |
| ∅ | Empty set | the empty set | \emptyset | |
| U | Universal set | the universe | U | |
| Cardinality | the size of A | \lvert A \rvert | ||
| 𝒫(A) | Power set | the power set of A | \mathcal{P}(A) | |
| × | Cartesian product | A cross 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 with the A and B from the table. Here's every basic operation worked out:
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 .
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, is true and is true, but makes no sense, because 2 isn't a set here.
Every set is a subset of itself, so 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 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.
is the cardinality, the number of elements, so . The power set 𝒫(A) is the set of all subsets of A. A finite set with n elements has subsets. B has 3 elements, so it has 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:
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 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:
| (and) | (or) | (not p) | ||
|---|---|---|---|---|
| T | T | T | T | F |
| T | F | F | T | F |
| F | T | F | T | T |
| F | F | F | F | T |
The or in logic is inclusive. 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 ⇔
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
- ∴ 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.
| Symbol | Read it as | Example | Meaning of the example |
|---|---|---|---|
| ∀ | for all | every element of A is at most 4 | |
| ∃ | there exists | some element of A is bigger than 3 | |
| ∃! | there exists exactly one | only one element of A exceeds 3 | |
| ∄ | there does not exist | no element of A exceeds 9 |
Order changes the meaning. Over the integers, says every number has a bigger one, which is true. Swap them to and you claim one number beats all the others, which is false.
To negate a quantified statement, flip the quantifier and push the ¬ inside:
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 statement | Logic statement about an element x |
|---|---|
| ∅ | a statement that's always false |
| U | a 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.
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:
- A bare vertical bar inside a table row ends the cell. Use
\midfor "such that" and\lvert A \rvertfor cardinality, which is why the tables above use\lvert. - Some Markdown parsers treat
\{as an escaped brace and drop the backslash.\lbraceand\rbraceprint the same braces with no ambiguity. - 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.