A perfect matching of a finite graph on vertices is a matching
(i.e., an independent edge set) in which every
vertex of the graph is
incident to exactly one edge of the matching.
A perfect matching is therefore a matching containing
edges
(the largest possible), meaning perfect matchings are only possible on graphs
with an even number of vertices.
A perfect matching is sometimes called a complete matching or 1-factor.
Special classes of graphs obtained by removing a perfect matching are summarized in the following table.
| base graph | derived graph |
| complete
graph | cocktail party graph |
| complete
bipartite graph | crown graph |
| complete
tripartite graph | complete
tripartite graph minus perfect matching |
The nine perfect matchings of the cubical graph are illustrated above.
Note that rather confusingly, the class of graphs known as perfect graphs are distinct from the class of graphs with perfect matchings.
Precomputed graphs having a perfect matching return True for GraphData[g, "PerfectMatching"] in the Wolfram Language.
While not all graphs have a perfect matching, all graphs do have a maximum independent edge set (i.e., a maximum matching; Skiena 1990, p. 240; Pemmaraju and Skiena 2003, pp. 29 and 343). Furthermore, every perfect matching is a maximum independent edge set. A graph either has the same number of perfect matchings as maximum matchings (for a perfect matching graph) or else no perfect matchings (for a graph with no perfect matching).
A graph has a perfect matching iff its matching number
satisfies
where
is the vertex count of
.
The numbers of unlabeled simple graphs on , 4, 6, ... vertices
having a perfect matching are 1, 6, 101, 10413, ... (OEIS A218462),
and the corresponding numbers of connected unlabeled
simple graphs are 1, 5, 95, 10297, ... (OEIS A218463).
The graph illustrated above is a 16-node graph with no perfect matching that is implemented in the Wolfram Language as GraphData["NoPerfectMatchingGraph"].
Every connected vertex-transitive graph on an even number of vertices has a perfect matching, and each vertex in a connected vertex-transitive graph on an odd number of vertices is missed by a matching that covers all remaining vertices (Godsil and Royle 2001, p. 43; i.e., it has a near-perfect matching).
Every claw-free connected graph with an even number of vertices has a perfect matching (Sumner 1974, Las Vergnas 1975).
Petersen's theorem states that every cubic graph with no bridges has a perfect matching (Petersen 1891; Skiena 1990, p. 244). In fact, this theorem can be extended to read, "every cubic graph with 0, 1, or 2 bridges has a perfect matching."
The Lovász-Plummer conjecture, proved by Esperet et al. (2011), strengthens the bridgeless cubic
graph case to an exponential count. Every such graph
on vertices has at least
perfect matchings.
Tutte's theorem states that a graph (where
is the vertex set and
is the edge set) has no perfect
matching iff there is a set
whose removal results in more
odd-sized components than
(the cardinality of
; Tutte 1947, Pemmaraju and Skiena 2003,
p. 344).
Chang et al. (2026) proved that there is an integer such that, for every even
and every integer
, a simple
graph
on
vertices contains
pairwise edge-disjoint perfect matchings whenever
for every pair of nonadjacent vertices
. Here
is the vertex degree,
and the threshold
is independent of
. The assertion for all even
is Win's conjecture (Win 1982). The proved
result is stronger. For even
,
contains
pairwise edge-disjoint Hamiltonian
cycles. For odd
, it contains
such cycles and a perfect
matching, all pairwise edge-disjoint. Chang et al. (2026) report GPT-6 Pro
assistance in obtaining the initial proof of the perfect-matching
assertion, before they established the stronger cycle-packing result.
In a benzenoid molecular graph, the edges of a perfect matching mark the double bonds of a Kekulé structure (Hansen and Zheng 1993).