Vertices, edges and faces
Pick up any solid with flat sides — a brick, a tent, a gemstone — and three simple things describe its shape completely: the corner points, the straight edges joining them, and the flat faces they enclose. Count all three for a cube and something surprising happens: faces, vertices, edges, and . Try a triangular prism, a square pyramid, any convex solid bounded only by flat polygons, and the same combination always lands on . This is not a coincidence — it is Euler's formula, one of the oldest and most useful relationships in solid geometry. This article builds the definitions, proves why the formula must hold for prisms and pyramids of any size, and shows how to use it as a fast error check whenever you sketch or count a 3-D solid.
For any convex polyhedron, faces plus vertices minus edges always equals two, , so knowing any two of the three counts fixes the third.
The core idea
A polyhedron is a solid bounded only by flat polygonal faces — no curved surfaces allowed. Three building blocks describe it:
- A face is one flat polygon forming part of the solid's boundary (a cube has square faces).
- An edge is the line segment where exactly two faces meet (a cube has edges).
- A vertex is a corner point where three or more edges meet (a cube has vertices).
These three counts are never independent. Euler's formula ties them together for every convex polyhedron:
where: is the number of faces, is the number of vertices, and is the number of edges. Rearranged, the same relationship finds any missing count once the other two are known:
Two families of solids appear over and over in this chapter. For a prism whose cross-section is an -sided polygon (an -gon), the two end faces plus rectangular side faces give ; each end contributes vertices, so ; and the edges are the edges of each end plus vertical connectors, so . For a pyramid on an -sided base, the base plus triangular sides give ; the base's corners plus the single apex give ; and the edges are the base edges plus slant edges up to the apex, so . Both families satisfy Euler's formula for every value of , which is exactly what the derivation below proves. Counting from a solid or its net is where students actually make mistakes, so it helps to count in a fixed order every time: faces first (they are usually the easiest to see and rarely missed), then vertices (walk around the solid corner by corner), and edges last, cross-checked against . A net — the flat, unfolded pattern of a solid's faces — is a useful cross-check too: every face in the net becomes a face of the solid, but edges that are cut open in the net to let it lie flat get glued back together when it is folded, so a net's outer boundary edges do not equal the solid's edge count directly. This is why counting directly on the folded solid, or on a clear 3-D sketch, is safer than counting straight off a net.
The goal is to show, using nothing beyond algebra, that the combination equals exactly for a prism with any -sided base and for a pyramid with any -sided base, so that Euler's formula is not a lucky pattern seen in a handful of examples but a guaranteed identity for these two whole families of solids.
Step 1. Write the prism counts in terms of , the number of sides of its polygonal base. A prism has two identical -gon ends plus rectangular side faces joining them, so . Each end supplies corner vertices and the two ends are distinct sets of vertices, so . The edges are the edges of the top -gon, the edges of the bottom -gon, and the vertical edges joining each top vertex to the matching bottom vertex, giving .
Step 2. Substitute these three expressions into and simplify. . The terms containing cancel exactly, leaving regardless of what value takes — this is why every prism from a triangular prism () to a decagonal prism () obeys Euler's formula.
Step 3. Repeat the same substitution for a pyramid on an -sided base. Here (the base plus triangular sides), (the base corners plus one apex), and (the base edges plus slant edges to the apex). So . Again the terms cancel, leaving .
Step 4. Read the result. Because the cancellation happens algebraically for any , Euler's formula is guaranteed for the entire prism family and the entire pyramid family at once — not just for the specific cube, triangular prism, or square pyramid a textbook happens to list. This is also why the formula is such a reliable check: any correctly counted convex, flat-faced solid must reduce the same way.
Worked example
Problem: A hexagonal prism has a hexagonal (6-sided) base. Find its number of faces, vertices and edges, verify Euler's formula, and confirm the result matches the general prism formulas.
Step 1. Faces: a prism with an -sided base has polygon ends plus rectangular side faces, so . Here , giving .
Step 2. Vertices: each of the two hexagonal ends contributes corner vertices, so .
Step 3. Edges: the two hexagonal ends together have edges, plus vertical edges connecting matching vertices of the two ends, giving — matching the general formula .
Step 4. Verify Euler's formula: , exactly as guaranteed. A hexagonal prism has faces, vertices and edges, and it satisfies .
Competitive stretch
If instead a polyhedron is known to have faces and edges, Euler's formula gives . Comparing with the prism pattern gives , and checking and both agree — so this is a pentagonal prism, found without drawing a single line.
Common traps
- Forgetting that each edge is shared by exactly two faces and each vertex is shared by three or more edges — sloppy sketch-counting double-counts or misses lines.
- Applying Euler's formula to a solid with a curved surface, such as a cylinder or cone; the formula is guaranteed only for flat-faced, convex polyhedra at this level.
- Mixing up the prism formulas (, , ) with the pyramid formulas (, , ) when substituting a value of .
- Assuming that any three numbers which happen to satisfy must describe a real solid — the formula is a necessary check, not proof that such a polyhedron actually exists.
Ask the tutor: If you have counted a solid's faces and edges and want the vertex count checked step by step with Euler's formula, ask the AI tutor to work through your exact numbers.
Why does a vertex need at least three edges meeting there, not just two
Two edges meeting at a point would just make one bent line, not a solid corner — you need at least three faces (and therefore three edges) coming together to close off a genuine 3-D corner. Picture the corner of a cube: three edges and three faces meet there. If only two edges met, the two faces would simply continue as one flat or folded surface with no corner point worth naming, so the definition of a vertex requires three or more.
Does Euler's formula work for solids that are not prisms or pyramids, like a solid with a hexagonal face and some triangular faces mixed together
Yes, as long as the solid is convex and every face is flat — Euler's formula holds for any such polyhedron, not only the prism and pyramid families. The derivation above proves it specifically for prisms and pyramids because those are the shapes this syllabus asks you to count, but the formula itself is far more general; it is only the curved-surface and non-convex cases that fall outside this syllabus's guarantee.
If I count faces and vertices correctly but my edge count does not satisfy Euler's formula, what should I do
Recount the edges first, since edges are the easiest to miss or double-count on a busy sketch, especially the hidden edges at the back of a solid. A faster route is often to trust your face and vertex counts and simply compute the edges directly from , then check that number against your sketch — if it disagrees, you likely missed a hidden edge rather than made an arithmetic mistake.