History of Math

Euler Characteristic V − E + F

For convex polyhedra, vertices minus edges plus faces always equals 2. Switch between a tetrahedron, cube, octahedron, torus, and double torus to see the formula give 2, 0, and −2, and learn why the genus controls the answer.

6 minLevel 2/3The interactive stage stays ad-free.
Vertices V8Edges E12Faces F6V − E + F2Genus g0
convex polyhedron wireframe

V − E + F = 8 − 12 + 6 = 2 · genus g = 0 · expected 2 − 2g = 2 ✓

Convex polyhedron: χ = 2Six square faces. Euler checked his formula against many such solids.
Euler, 1750Leonhard Euler noticed that for convex polyhedra the counts of vertices, edges, and faces always satisfy V − E + F = 2. The formula became a founding result of topology: the quantity V − E + F is now called the Euler characteristic, and it stays the same when a shape is bent or stretched, as long as it is not torn. A sphere gives 2; each hole, called a handle or genus, subtracts 2.
Counting is the pointThe torus and double-torus counts here come from a small grid model of the surface, so the exact numbers are illustrative. What matters is the invariant: χ = 2 − 2g. Face counts depend on how finely you subdivide a surface, but V − E + F does not, for a fixed shape.

Switch between solids and watch V − E + F. For a tetrahedron, cube, and octahedron it is always 2, even though their individual counts differ. Drill a hole and the number drops to 0; add a second hole and it drops to −2. The pattern is V − E + F = 2 − 2g, where g is the genus, the number of handles.

What you are seeing

1

Count the vertices V, edges E, and faces F of a polyhedron. For every convex polyhedron the combination V − E + F equals 2.

2

Punch a hole through the surface and it becomes a torus: now V − E + F equals 0. Add a second hole and it becomes −2.

3

In general V − E + F = 2 − 2g, where g is the genus, the number of handles or holes. The quantity is unchanged by stretching or bending.

Why it matters

Euler’s polyhedron formula is a founding result of topology. It launched the study of properties that survive continuous deformation, and it underlies modern ideas such as surfaces, invariants, and the Euler characteristic used throughout geometry and data analysis.

Complexity & details

Counting is O(1) once the counts are known. Verifying the formula over a mesh with V vertices costs O(V + E + F).

Frequently asked questions

Why does a hole change the answer by 2?+

Adding a handle changes the topology. The general formula is V − E + F = 2 − 2g, so each unit of genus lowers the value by 2. A sphere has genus 0, a torus genus 1, and a double torus genus 2.

Do the face counts depend on how I draw the mesh?+

Yes. Subdividing a face adds edges and vertices, so the individual counts change. But V − E + F stays the same as long as the surface itself is unchanged, which is exactly why it is called an invariant.