TOPICS
Search

Chromatic Number


ChromaticNumber

The chromatic number of a finite simple graph G with at least one graph vertex is the smallest number of colors needed to color the vertices of G so that no two adjacent vertices share the same color (Harary and Palmer 1973, p. 269; Skiena 1990, p. 210), i.e., the smallest value of k possible to obtain a k-coloring. Minimum vertex colorings and chromatic numbers for a sample of graphs are illustrated above. The graph with no vertices has chromatic number 0 by convention.

The chromatic number of a graph G is most commonly denoted chi(G) (e.g., Skiena 1990, West 2000, Godsil and Royle 2001, Pemmaraju and Skiena 2003), but occasionally also gamma(G).

Empty graphs with at least one graph vertex have chromatic number 1 (OEIS A000012), while bipartite graphs with at least one graph edge have chromatic number 2.

The chromatic number of a graph G is also the smallest nonnegative integer z for which the chromatic polynomial pi_G(z)>0. The optimization problem of finding a minimum vertex coloring, and hence calculating the chromatic number, is the vertex coloring problem.

Computation of the chromatic number of a graph is implemented in the Wolfram Language as VertexChromaticNumber[g]. Precomputed chromatic numbers for many named graphs can be obtained using GraphData[graph, "ChromaticNumber"].

The chromatic number of a graph must be greater than or equal to its clique number. A graph is called a perfect graph if, for each of its induced subgraphs g_i, the chromatic number of g_i equals the largest number of pairwise adjacent vertices in g_i. A graph for which the clique number is equal to the chromatic number (with no further restrictions on induced subgraphs) is said to be weakly perfect.

For a simple graph with at least one graph edge and largest and least adjacency eigenvalues theta_(max) and theta_(min), the Hoffman ratio bound gives

 chi(G)>=[1-(theta_(max))/(theta_(min))],
(1)

where [x] denotes the ceiling function (Brouwer and Haemers 2012). For a regular graph of vertex degree k, the largest graph eigenvalue is k. In this case the result also follows from chi(G)>=[v/alpha(G)] and the Hoffman ratio bound, where v is the number of vertices and alpha(G) is the independence number.

By definition, the edge chromatic number of a graph G equals the chromatic number of the line graph L(G).

Brooks' theorem states that the chromatic number of a connected simple graph with at least one graph vertex is at most the maximum vertex degree Delta, unless the graph is complete or an odd cycle, in which case Delta+1 colors are required (Brooks 1941). The Borodin-Kostochka conjecture seeks a stronger bound in terms of Delta and the clique number at large maximum vertex degree.

A graph with chromatic number <=2 is said to be bicolorable, and a graph with chromatic number <=3 is said to be three-colorable. In general, a graph with chromatic number k is said to be a k-chromatic graph, and a graph with chromatic number <=k is said to be k-colorable.

The following table gives the chromatic numbers for some named classes of graphs.

For any two positive integers g and k, there exists a graph of girth at least g and chromatic number at least k (Erdős 1959, 1961; Lovász 1968; Skiena 1990, p. 215; Bollobás and West 2000).

The chromatic number of a closed surface that is connected and orientable is the largest chromatic number of a graph embeddable in it. For genus g>=0, its value is

 gamma(g)=|_1/2(7+sqrt(48g+1))_|,
(2)

where |_x_| is the floor function. For g>=1, this is the Heawood conjecture, proved by Ringel and Youngs (1968). For g=0, sufficiency of four colors is the four-color theorem. gamma(g) is sometimes also denoted chi(g) (which is unfortunate, since chi(g)=2-2g commonly refers to the Euler characteristic). For g=0, 1, ..., the first few values of chi(g) are 4, 7, 8, 9, 10, 11, 12, 12, 13, 13, 14, 15, 15, 16, ... (OEIS A000934).

A different invariant, the achromatic number, maximizes the number of colors in a proper vertex coloring for which every pair of colors appears at the ends of a graph edge. It is at least the chromatic number.

Excluding a fixed induced subgraph can define a chi-bounded graph class. Huang et al. (2026) proved that every nonempty simple graph G with no induced subgraph isomorphic to the path graph on six vertices satisfies

 chi(G)<=omega(G)^(clog_2omega(G)),
(3)

where omega(G) is the clique number and c=45/log_2(4/3)<109. Huang et al. (2026) report AI-generated arguments developed through interactive mathematical review.

Coja-Oghlan et al. (2026) identified two consecutive possible chromatic numbers for the random graph G(n,m) throughout the range n/m->0 and m^2/n^3->0.

The circular chromatic number refines chi(G) by allowing colors to be points of a circle with a minimum distance between adjacent vertex colors (Vince 1988).

For every integer k>=3, Choi and Sieniawski (2026) proved that a finite simple graph with chromatic number greater than k has at least (k+1)!/(2k) cycles whose lengths are divisible by k. The bound is sharp for the complete graph K_(k+1).

The cochromatic number allows each color class to be either a clique or an independent vertex set, so it is at most the chromatic number. For G_n∼G(n,1/2), the two invariants have the same leading asymptotic value, but Petkov (2026) reports that their difference is at least 0.063n/(lnn)^3 with probability tending to 1 along all integers n.

Erdős and Hajnal asked whether sufficiently large chromatic number forces a subgraph of prescribed large girth and chromatic number. Kohlmeyer and Kruer (2026) constructed triangle-free graphs of arbitrarily large chromatic number in which every subgraph with no cycle of length four is 6-colorable. Nguyen and Walczak (2026) sharpened 6 to 3. Consequently, for any g>=5 and k>=4, large chromatic number does not force a subgraph of girth at least g and chromatic number at least k. For g=4, Rödl proved that a sufficiently large chromatic number does force a triangle-free graph as a subgraph of at least any prescribed chromatic number (Rödl 1977). For any fixed g, sufficiently large chromatic number does force a subgraph of girth at least g and chromatic number at least 3 (Erdős and Hajnal, cited by Nguyen and Walczak 2026). The bound 3 is optimal because every nonbipartite triangle-free graph contains an odd graph cycle of length at least 5 as a subgraph. For g>=5, the graph disjoint union of finite counterexamples with unbounded chromatic number gives a graph of infinite chromatic number all of whose subgraphs of girth at least g are 3-colorable.

More generally, a fixed graph H is called chi-avoidable if graphs of arbitrarily large chromatic number exist in which all H-free subgraphs have chromatic number bounded by a constant depending only on H. Steiner showed that this holds exactly when H is nonbipartite (Nguyen and Walczak 2026).

For odd girth, Steiner (2026) proved that sufficiently large chromatic number forces a subgraph with any prescribed chromatic number lower bound and odd girth lower bound. For odd girth at least 5, a host with chromatic number at least exp(k^(3+epsilon)) suffices for a triangle-free graph as a subgraph with chromatic number at least k, for any fixed epsilon>0 and all sufficiently large integers k.

For an infinite graph, the chromatic number is the least cardinal number of colors in a proper coloring. Let h_G(n) be the maximum, over the n-vertex induced subgraphs of G, of the minimum number of edges that must be deleted to make the subgraph bipartite. Erdős et al. (1982) constructed a graph of chromatic number ℵ1 with h_G(n)<=2n^(3/2). Clary (2026) proved the upper-bound assertion of Erdős problem 111: for every epsilon>0 there exists a graph G with chromatic number ℵ1 and h_G(n)=O(n^(1+epsilon)). Here O denotes big-O notation. The graph may depend on epsilon. Clary's Lean proof uses a construction based on shift graphs.

The lower-bound assertion of Erdős problem 111 was proved by Plasma AI. For every fixed graph G with uncountable chromatic number, h_G(n)/n->infty as n->infty. Equivalently, if h_G(n) is bounded above by a constant times n, then G admits a countable coloring. The Palomar Registry records verification of the Lean proof (Parish 2026).


See also

Betti Number, Bicolorable Graph, Brelaz's Heuristic Algorithm, Brooks' Theorem, Choice Number, Chromatic Invariant, Chromatic Polynomial, Cochromatic Number, Correspondence Chromatic Number, Cyclic Chromatic Number, Dichromatic Number, Edge Chromatic Number, Edge Coloring, Euler Characteristic, Fractional Chromatic Number, Genus, Heawood Conjecture, Hoffman Ratio Bound, k-Chromatic Graph, k-Colorable Graph, Local Antimagic Chromatic Number, Map Coloring, Perfect Graph, Quantum Chromatic Number, Three-Colorable Graph, Torus Coloring, Vector Chromatic Number, Vertex Coloring Problem Explore this topic in the MathWorld classroom

Explore with Wolfram|Alpha

References

Bollobás, B. and West, D. B. "A Note on Generalized Chromatic Number and Generalized Girth." Disc. Math. 213, 29-34, 2000. https://doi.org/10.1016/S0012-365X(99)00165-X.Brooks, R. L. "On Colouring the Nodes of a Network." Proc. Cambridge Philos. Soc. 37, 194-197, 1941. https://doi.org/10.1017/S030500410002168X.Brouwer, A. E. and Haemers, W. H. Spectra of Graphs. New York: Springer, 2012. https://doi.org/10.1007/978-1-4614-1939-6.Chartrand, G. "A Scheduling Problem: An Introduction to Chromatic Numbers." §9.2 in Introductory Graph Theory. New York: Dover, pp. 202-209, 1985.Choi, I. and Sieniawski, K. "The Minimum Number of Cycles of Length 0 Modulo k in Graphs with No Proper k-Coloring." 10 Nov 2026. https://arxiv.org/abs/2611.13580.Clary, T. "Erdős Problem 111: Uncountably Chromatic Graphs with Bipartite Distance O(n^(1+epsilon))." Palomar Registry, Nov. 27, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-27-000058&version=1.Coja-Oghlan, A.; Isaev, M.; Kang, M.; and Zakharov, P. "The Chromatic Number of a Random Graph with o(n^(3/2)) Edges." 24 Oct 2026. https://arxiv.org/abs/2610.33678.Eppstein, D. "The Chromatic Number of the Plane." https://ics.uci.edu/~eppstein/junkyard/plane-color.html.Erdős, P. "Graph Theory and Probability." Canad. J. Math. 11, 34-38, 1959. https://doi.org/10.4153/CJM-1959-003-9.Erdős, P. "Graph Theory and Probability II." Canad. J. Math. 13, 346-352, 1961.Erdős, P.; Hajnal, A.; and Szemerédi, E. "On Almost Bipartite Large Chromatic Graphs." Ann. Disc. Math. 12, 117-123, 1982. https://doi.org/10.1016/S0304-0208(08)73497-2.Gardner, M. The Sixth Book of Mathematical Games from Scientific American. Chicago, IL: University of Chicago Press, p. 9, 1984.Godsil, C. and Royle, G. Algebraic Graph Theory. New York: Springer-Verlag, 2001.Harary, F. and Palmer, E. M. "A Survey of Graphical Enumeration Problems." In A Survey of Combinatorial Theory (Ed. J. N. Srivastava). Amsterdam, Netherlands: North-Holland, pp. 259-275, 1973.Huang, S.; Zhou, Y.; and Zhou, Y. "A Quasi-Polynomial chi-Bound for P_6-Free Graphs." 24 Oct 2026. https://arxiv.org/abs/2610.33407.Lovász, L. "On Chromatic Number of Finite Set-Systems." Acta Math. Acad. Sci. Hungar. 19, 59-67, 1968.Kohlmeyer, J. and Kruer, L. "A Counterexample to Erdős Problem 108 via Arc Graphs." 2026. https://jenwin.io/papers/erdos108-arc-graphs.pdf.Nguyen, T. and Walczak, B. "On the Solution to the Erdős-Hajnal Problem on High-Girth High-Chromatic Subgraphs." 1 Oct 2026. https://arxiv.org/abs/2609.40192v2.Parish, J. "Erdős Problem 111: Bipartizing Finite Subgraphs of Uncountably Chromatic Graphs." Palomar Registry, Oct. 19, 2026. https://data.palomar-registry.org/entries/PALOMAR-2026-10-19-000007-v1.json.Pemmaraju, S. and Skiena, S. Computational Discrete Mathematics: Combinatorics and Graph Theory in Mathematica. Cambridge, England: Cambridge University Press, 2003.Petkov, S. "A Full-Sequence Quantitative Gap Between the Chromatic and Cochromatic Numbers of a Random Graph." 15 Nov 2026. https://arxiv.org/abs/2608.30604v2.Ringel, G. and Youngs, J. W. T. "Solution of the Heawood Map-Coloring Problem." Proc. Nat. Acad. Sci. USA 60, 438-445, 1968. https://doi.org/10.1073/pnas.60.2.438.Rödl, V. "On the Chromatic Number of Subgraphs of a Given Graph." Proc. Amer. Math. Soc. 64, 370-371, 1977. https://doi.org/10.1090/S0002-9939-1977-0469806-4.Skiena, S. Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, 1990.Steiner, R. "Locally Bipartite Subgraphs via Multicolor Ramsey Numbers." 7 Sep 2026. https://arxiv.org/abs/2608.02522v2.Sloane, N. J. A. Sequences A000012/M0003 and A000934/M3292 in "The On-Line Encyclopedia of Integer Sequences."Vince, A. "Star Chromatic Number." J. Graph Th. 12, 551-559, 1988. https://doi.org/10.1002/jgt.3190120411.West, D. B. Introduction to Graph Theory, 2nd ed. Englewood Cliffs, NJ: Prentice-Hall, 2000.

Referenced on Wolfram|Alpha

Chromatic Number

Cite this as:

Weisstein, Eric W. "Chromatic Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ChromaticNumber.html

Subject classifications