Topology
Euler Characteristic
χ(X) = V − E + F (vertices − edges + faces) — topological invariant for any cell decomposition
The Euler characteristic χ(X) is the alternating sum of cell counts in any CW-decomposition of a space X: χ = c₀ − c₁ + c₂ − …, where cₖ is the number of k-cells. For a convex polyhedron (or any sphere triangulation), V − E + F = 2 — Euler's polyhedron formula (1758). For a torus, V − E + F = 0; for a Klein bottle, χ = 0; for a genus-g orientable surface, χ = 2 − 2g. Independent of the chosen decomposition: χ is a topological invariant — homeomorphic spaces have the same χ. Equivalently, χ = Σ(−1)ⁿ βₙ (alternating sum of Betti numbers). Used in: classifying surfaces (closed orientable surface up to homeomorphism is determined by χ), the Gauss-Bonnet theorem, electrical circuit analysis (Cauchy's formula F + V − E = 1), and proving there are exactly 5 Platonic solids.
- DefinitionV − E + F = c₀ − c₁ + c₂ − …
- Sphereχ = 2
- Torusχ = 0
- Klein bottleχ = 0
- Genus gχ = 2 − 2g
- EquivalentΣ(−1)ⁿ βₙ
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
Why Euler characteristic matters
- Classification of surfaces. Every closed connected surface is determined up to homeomorphism by two pieces of data: orientability and Euler characteristic. The orientable surfaces are S² (χ = 2), torus (χ = 0), genus-2 (χ = −2), and so on. The non-orientable ones are ℝℙ² (χ = 1), Klein bottle (χ = 0), ℝℙ² # ℝℙ² # ℝℙ² (χ = −1). A single integer plus a bit is a complete invariant.
- Gauss-Bonnet bridge. For a closed Riemannian surface M, ∫∫_M K dA = 2π χ(M). The total Gaussian curvature is determined entirely by topology. A surface with χ ≠ 0 cannot carry a flat (K = 0) metric; a surface with χ < 0 must somewhere have negative curvature. This is the deepest local-to-global statement in classical differential geometry.
- Platonic solids. Exactly 5 regular convex polyhedra exist. Setting V − E + F = 2 and using p faces meeting at each vertex with q edges per face, one derives 1/p + 1/q = 1/2 + 1/E with p, q ≥ 3 and E > 0. The integer solutions are (p, q) ∈ {(3, 3), (3, 4), (3, 5), (4, 3), (5, 3)} — tetrahedron, cube, dodecahedron, octahedron, icosahedron. Euler's formula closes the case in three lines.
- Topological data analysis. Euler characteristic curves track χ across a filtration of a point cloud at varying scales. A robust, computable scalar summary of topology that is faster to compute than full persistent homology and useful as a feature in machine-learning pipelines.
- Triangulation budgets in graphics. A closed surface mesh with V vertices and F triangle faces has E = 3F/2 edges, so V − F/2 = χ. A genus-g closed mesh therefore has F ≈ 2(V − χ) = 2V − 4 + 4g, locking the relationship between vertex count, face count, and topology in any rendering pipeline.
- Electrical circuits. For a planar circuit graph, the Euler relation F − E + V = 1 (treating the outer face implicitly) underlies Kirchhoff's voltage and current laws and the count of independent loops in mesh analysis: a connected planar circuit has E − V + 1 independent meshes — exactly the Euler-derived count.
Why V − E + F = 2 for any convex polyhedron
Project the polyhedron radially from an interior point onto a sphere — this gives a graph drawn on S² whose vertices, edges, and 2-cell faces match the polyhedron's. Now reduce the sphere graph step by step:
- Remove a leaf. If some vertex has degree 1, delete it together with its incident edge. V and E both decrease by 1, F stays the same. V − E + F is unchanged.
- Contract an edge. If two distinct vertices are joined by an edge, contract the edge (identify the two endpoints). V decreases by 1, E decreases by 1, F stays the same. V − E + F is unchanged.
- Remove a face by deleting an edge. If an edge is shared by two distinct faces, delete the edge and merge the two faces. E decreases by 1, F decreases by 1. V − E + F unchanged.
Iterate until what remains is a single vertex on the sphere with no edges and one face (the rest of the sphere). At that point V = 1, E = 0, F = 1, so V − E + F = 2. The same value held at every step, so the original polyhedron satisfied V − E + F = 2.
Computed examples
- Tetrahedron. V = 4, E = 6, F = 4. χ = 4 − 6 + 4 = 2.
- Cube. V = 8, E = 12, F = 6. χ = 8 − 12 + 6 = 2.
- Octahedron. V = 6, E = 12, F = 8. χ = 6 − 12 + 8 = 2.
- Dodecahedron. V = 20, E = 30, F = 12. χ = 20 − 30 + 12 = 2.
- Icosahedron. V = 12, E = 30, F = 20. χ = 12 − 30 + 20 = 2.
- Soccer ball (truncated icosahedron). V = 60, E = 90, F = 32 (12 pentagons + 20 hexagons). χ = 60 − 90 + 32 = 2. Has to — it is a sphere.
- Torus from a square. 1 vertex, 2 edges, 1 face. χ = 1 − 2 + 1 = 0.
- Double torus from an octagon. 1 vertex, 4 edges, 1 face. χ = 1 − 4 + 1 = −2 = 2 − 2(2).
Common misconceptions
- Must be ≥ 0. No. χ can be any integer. Genus-2 orientable surface has χ = −2; genus-g has χ = 2 − 2g, unbounded below. Connected sum of three projective planes has χ = −1. Negative Euler characteristic is the rule for "complicated" surfaces, not the exception.
- Depends on triangulation. No — that is the whole point. Two different cell decompositions of the same space give the same χ, by the refinement argument. Even a single vertex and one 2-cell on the sphere (a "balloon" decomposition) gives χ = 1 − 0 + 1 = 2. The value is intrinsic.
- Only for surfaces. Defined for any space with a CW-decomposition (and in fact any space with finite Betti numbers via Σ(−1)ⁿβₙ). For a 3-manifold like S³, χ = 0 (Poincaré duality forces vanishing in odd dimensions). For a 4-manifold, χ can be any integer; CP² has χ = 3.
- Same χ means homeomorphic. Only among closed orientable surfaces (and likewise among non-orientable ones). The torus and Klein bottle both have χ = 0 but are not homeomorphic — orientability distinguishes them. In higher dimensions χ is far from a complete invariant: S² × S² and CP² # CP̄² both have χ = 4 but are not homeomorphic.
- Sum equals product. For disjoint unions χ(X ⊔ Y) = χ(X) + χ(Y); for products χ(X × Y) = χ(X) χ(Y); for connected sums of n-manifolds χ(M # N) = χ(M) + χ(N) − χ(Sⁿ). The product formula explains why χ(T²) = χ(S¹) χ(S¹) = 0 · 0 = 0 mechanically.
- Cauchy proved it. Euler stated and proved (in modern eyes, with gaps) the polyhedron formula in 1758. Cauchy gave a clean proof in 1813 using projection and edge-removal. Legendre, Lhuilier, and others contributed cases. The general result for arbitrary CW-complexes via Betti numbers is Poincaré (1895).
Frequently asked questions
Why is V − E + F = 2 for a sphere (Euler's polyhedron formula)?
Project the polyhedron from an interior point onto a sphere; you get a graph drawn on S² that decomposes the sphere into V vertices, E edges, F faces. Now reduce: at each step, either remove a degree-1 edge with its leaf vertex (V−1, E−1, F unchanged) or contract an edge between two distinct vertices (V−1, E−1, F unchanged). Both operations preserve V − E + F. Continue until one vertex remains: V = 1, E = 0, F = 1, so V − E + F = 2. Therefore the original satisfied V − E + F = 2.
Why is it a topological invariant?
Two CW-decompositions of the same space are connected by a sequence of refinements (subdividing a cell into smaller cells). Each refinement preserves χ: subdividing an edge adds one vertex and one edge, leaving V − E unchanged; subdividing a face by adding an edge between two boundary vertices adds one edge and turns one face into two, leaving F − E unchanged. So χ depends only on the homotopy type of X. More generally, χ = Σ(−1)ⁿ rank Hₙ(X), and homology is a homotopy invariant.
What's χ for a torus? Klein bottle?
Torus T²: Use the standard square decomposition with one vertex (corners glued), two edges (the two glued sides), one face. χ = 1 − 2 + 1 = 0. Klein bottle K: Same square decomposition, one vertex, two edges, one face. χ = 1 − 2 + 1 = 0. Same Euler characteristic, but Klein bottle is non-orientable (its H₁ has torsion: ℤ ⊕ ℤ/2 versus ℤ² for the torus). Two surfaces with the same χ but different orientability.
How does it classify closed surfaces?
Classification of closed surfaces: every closed orientable surface is homeomorphic to a sphere with g handles attached (genus-g surface) and has χ = 2 − 2g. Every closed non-orientable surface is homeomorphic to a connected sum of k projective planes and has χ = 2 − k. So orientability + χ uniquely determine a closed surface. Sphere (g = 0, χ = 2), torus (g = 1, χ = 0), double torus (g = 2, χ = −2). Non-orientable: ℝℙ² (k = 1, χ = 1), Klein bottle (k = 2, χ = 0).
Why does it equal Σ(−1)ⁿ βₙ?
Compute the cellular chain complex of a CW-decomposition: C_n is free abelian of rank c_n. The Euler characteristic of any chain complex equals the Euler characteristic of its homology — a general result in homological algebra (the alternating sum of ranks of cycles minus boundaries collapses to the alternating sum of ranks of homology). So χ = Σ(−1)ⁿ c_n = Σ(−1)ⁿ βₙ. The right side is manifestly topological-invariant; the left side is computable from any decomposition.
How is it used in the Gauss-Bonnet theorem?
For a closed Riemannian surface M, the Gauss-Bonnet theorem states ∫∫_M K dA = 2π χ(M), where K is Gaussian curvature. The total curvature is a topological invariant: a sphere of any radius integrates to 4π = 2π(2). A flat torus integrates to 0 = 2π(0). A surface with negative curvature everywhere must have χ < 0. Beautifully unifies geometry (curvature) and topology (Euler characteristic) — local geometry constrained globally by topology.