Euler's Polyhedron Formula Calculator (V − E + F)
Use Euler's polyhedron formula V − E + F = 2 to find a missing count of vertices, edges, or faces, or verify a polyhedron and read its Euler characteristic.
One formula that ties a solid together
Count the corners, edges, and flat faces of any convex polyhedron, and a small miracle happens every time: vertices minus edges plus faces always equals 2.
V − E + F = 2
A cube has 8 vertices, 12 edges, and 6 faces: 8 − 12 + 6 = 2. A soccer ball (a truncated icosahedron) has 60 vertices, 90 edges, and 32 faces: 60 − 90 + 32 = 2. It does not matter how lopsided or intricate the solid is, as long as it is convex and has no holes. Leonhard Euler noticed this in 1758, and it became one of the first theorems of topology. This calculator uses it two ways: enter any two of the three counts and it solves for the third, or enter all three and it checks whether your shape is a valid convex polyhedron.
The Euler characteristic
The number 2 is not magic. It is the Euler characteristic χ of a sphere, and a convex polyhedron is really just a sphere with flat panels. Deform a cube into a ball and the counts still describe the same surface, so the total holds. Change the surface and the number changes with it.
When it is not 2
Punch a hole through the solid and you get something shaped like a doughnut, a torus, whose Euler characteristic is 0. Two holes give −2, three give −4. The pattern is χ = 2 − 2g, where g is the genus, the number of holes. So if you tally V, E, and F on a model and get anything other than 2, either the mesh has an error or the shape is not topologically a sphere. That single check is why 3D modelers and finite-element engineers lean on this formula to catch broken meshes.
A quick reference
The five Platonic solids all obey it: tetrahedron (4, 6, 4), cube (8, 12, 6), octahedron (6, 12, 8), dodecahedron (20, 30, 12), and icosahedron (12, 30, 20). Every one returns 2. The same relationship governs connected planar graphs, where the faces count the regions the graph carves the plane into, including the unbounded outer region.