In mathematics, Cayley's formula is a result in graph theory named after Arthur Cayley. It states that for every positive integer , the number of trees on labeled vertices is .
The formula equivalently counts the spanning trees of a complete graph with labeled vertices (sequence A000272 in the OEIS).