| Element |
|---|
| Lower Element | Upper Element |
|---|
For subset mode, enter sets like {}, {a}, {b}, {a,b}. Click a node in the diagram to inspect comparable elements.
Use this Hasse Diagram Calculator to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
| Element |
|---|
| Lower Element | Upper Element |
|---|
For subset mode, enter sets like {}, {a}, {b}, {a,b}. Click a node in the diagram to inspect comparable elements.
Click a node in the diagram to inspect comparable and incomparable elements.
| Lower | Upper |
|---|
| Property | Issue |
|---|
▼ See explanations and tips below ▼
A Hasse diagram is a compact drawing of a finite partially ordered set, often called a poset. A poset is a set together with a relation that tells when one element is below, before, contained in, divides, or otherwise precedes another element.
The word “partial” matters. In an ordinary number line, any two numbers can be compared: one is smaller, larger, or equal. In a partial order, some pairs may be incomparable. For example, in the divisibility order on the divisors of \(12\), \(3\) divides \(6\) and \(12\), but \(3\) and \(4\) are not comparable because neither divides the other.
A Hasse diagram makes this structure easier to see by drawing only the essential order steps. Instead of showing every relation pair, it removes self-loops and relations that are already implied through transitivity. The remaining edges are cover relations.
For a finite poset, the diagram is useful because it shows:
Hasse diagrams turn abstract relation rules into a visual structure. That makes them especially helpful in discrete mathematics, combinatorics, computer science, algebra, and set theory.
Students often meet Hasse diagrams when studying divisibility, subset inclusion, prerequisites, dependency graphs, Boolean lattices, or finite lattices. In each case, the diagram helps answer questions that are harder to see from a long list of ordered pairs.
For example, if a relation contains:
the pair \(a \le c\) is important, but it does not need its own Hasse diagram edge. It is already implied by the path from \(a\) to \(b\) to \(c\). Removing that extra edge makes the structure clearer.
A Hasse diagram starts with a partial order. For the weak partial orders commonly used in finite Hasse diagrams, the relation must satisfy three properties.
First, every element is related to itself:
This is called reflexivity.
Second, two different elements cannot be related in both directions:
This is called antisymmetry.
Third, the relation must pass through intermediate elements:
This is called transitivity.
Once a valid partial order is available, the Hasse diagram keeps only cover relations. The cover relation is usually written as \(a \prec b\), meaning that \(b\) covers \(a\):
In plain language, \(a \prec b\) means that \(a\) is below \(b\), and there is no element strictly between them.
In a divisibility poset, one number is below another when it divides the other evenly. For example, with:
the relation is:
Some true relation pairs are:
But \(1 \le 12\) is not drawn as a direct Hasse diagram edge, because there are intermediate elements such as \(2\), \(4\), and \(6\). The cover edges are:
This example has a least element, \(1\), and a greatest element, \(12\).
In a subset-inclusion poset, one set is below another when it is contained in the other. For example:
The empty set is below every set in this example:
The cover edges are:
The edge from \(\{\}\) to \(\{a,b\}\) is not drawn, because it is implied through either \(\{a\}\) or \(\{b\}\).
In a custom relation, the ordered pairs you provide define the relation. The key point is that a custom relation must already include the reflexive and transitive pairs needed for a partial order.
For example, the pairs:
do not define a partial order yet, because transitivity requires:
Without that pair, the relation says \(a \le b\) and \(b \le c\), but it does not say \(a \le c\). A Hasse diagram should be built only after the relation passes the partial-order checks.
For the set:
ordered by divisibility, \(1\) is at the bottom because it divides every element. \(12\) is at the top because every element divides it.
The relation contains many true pairs. For instance:
But these are not necessarily cover relations. The diagram keeps only the immediate steps. This is why \(2\) connects directly to \(4\) and \(6\), but not directly to \(12\).
This poset is also a lattice. For any two divisors of \(12\), the meet is their greatest common divisor and the join is their least common multiple within the same divisor set. For example:
For the power set of \(\{a,b\}\), ordered by subset inclusion, the elements are:
The empty set is the least element, and the full set is the greatest element.
The meet of two subsets is their intersection:
The join of two subsets is their union:
This is one of the simplest examples of a finite lattice.
Suppose a custom relation on \(\{a,b,c\}\) contains:
The reflexive pairs are present, but the transitive pair \((a,c)\) is missing. Since a valid partial order must satisfy:
this relation fails the transitivity check. The correct next step is not to draw the Hasse diagram yet, but to fix the relation by adding the missing pair.
A result that says the relation is a partial order means the relation passed the reflexive, antisymmetric, and transitive checks. Once that happens, the Hasse diagram can be interpreted as the cover-relation diagram of the poset.
A cover edge from \(a\) to \(b\) means:
That is stronger than merely saying \(a \le b\). It means \(a\) is immediately below \(b\) in the order, with no intermediate element between them.
Minimal and maximal elements describe local endpoints:
Least and greatest elements describe global endpoints:
Every least element is minimal, but a minimal element does not have to be least. A poset can have several minimal elements, and none of them may be below all the others. The same distinction applies to greatest and maximal elements.
A lattice result of “yes” means every pair of elements has exactly one meet and exactly one join. A least or greatest element alone is not enough to guarantee that a poset is a lattice.
A maximum chain is a largest detected subset in which all elements can be compared in a single ordered path. A maximum antichain is a largest detected subset in which no two distinct elements are comparable.
A Hasse diagram does not draw every true relation pair. It draws only cover relations. If \(a \le c\) is already implied by \(a \le b\) and \(b \le c\), the direct edge from \(a\) to \(c\) is removed.
A weak partial order must include \((a,a)\) for every element \(a\). In custom pair mode, those pairs must be part of the relation. They are not automatically inferred.
If \((a,b)\) and \((b,c)\) are included, then \((a,c)\) must also be included for transitivity. The Hasse diagram may later remove the direct visual edge, but the relation itself still needs the pair.
An element can be minimal without being least. Minimal means nothing is below it. Least means it is below everything.
For example, in a poset with two incomparable bottom elements, both may be minimal, but neither is least.
An element can be maximal without being greatest. Maximal means nothing is above it. Greatest means everything is below it.
A finite poset can have several maximal elements.
A lattice requires every pair of elements to have a unique meet and a unique join. Having a bottom element and a top element can help, but it does not automatically settle every pair in the middle.
Divisibility mode needs nonzero integers. Subset mode needs set-style labels such as \(\{\}\), \(\{a\}\), or \(\{a,b\}\). Custom pair mode needs pairs that use elements from the current element list.
Use Hasse diagrams when you need to understand the structure of a finite partial order.
They are especially useful for:
A Hasse diagram is only as valid as the relation behind it. If the relation is not reflexive, antisymmetric, and transitive, then it is not a weak partial order, and the diagram should not be interpreted as a poset diagram.
For finite sets, Hasse diagrams are usually manageable when the number of elements is small. As the set grows, the diagram can become crowded even when the mathematics is correct. A compact drawing may hide symmetry, and different layouts can make the same poset look easier or harder to understand.
This calculator is designed for finite input sets and limits the number of elements to 18 for readability. For every valid partial order within that limit, it computes an exact maximum chain and maximum antichain; inputs beyond that readability limit are rejected before those results are requested. It does not infer missing reflexive or transitive pairs in custom mode.
There is no decimal rounding in the mathematical results because the outputs are relation properties, element labels, counts, tables, and diagrams. The only rounding that may occur is in the pixel dimensions used when exporting the diagram image.
For coursework, proofs, or formal writing, use the output as a guide and still explain the relation, the partial-order checks, and the cover relations in your own words.
A Hasse diagram shows the cover relations of a finite partially ordered set. It leaves out self-loops and relation edges that are already implied by transitivity, so the drawing focuses on the immediate order steps.
They are not missing from the relation; they are omitted from the drawing because they are implied by paths through other elements. For example, if \(a \le b\) and \(b \le c\), then \(a \le c\) is true by transitivity, but the diagram usually draws only the two shorter cover steps.
A minimal element has nothing strictly below it. A least element is below every element in the poset. A poset may have several minimal elements, but it can have at most one least element.
A maximal element has nothing strictly above it. A greatest element is above every element in the poset. A poset may have several maximal elements, but it can have at most one greatest element.
A poset is a lattice when every pair of elements has a unique meet and a unique join. The meet is the greatest lower bound, and the join is the least upper bound.
Yes. A custom relation can look orderly but still fail if it is missing reflexive pairs, has two distinct elements related in both directions, or omits a transitive implication. The partial-order checks should be resolved before interpreting the diagram.
This calculator's divisibility mode is restricted to finite nonzero integers so every relation test can use exact integer remainders. Use custom ordered pairs if your convention explicitly includes zero.
Yes. The calculator returns an exact maximum chain and an exact maximum antichain for every valid partial order within the 18-element input limit. If several answers have the same maximum size, it returns one deterministic example.
Books
Online and Educational Sources