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.
V − E + F = 8 − 12 + 6 = 2 · genus g = 0 · expected 2 − 2g = 2 ✓
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
Count the vertices V, edges E, and faces F of a polyhedron. For every convex polyhedron the combination V − E + F equals 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.
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.