Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Advanced Properties of Geometric Figures

Planar Graphs and Euler's formula

20 practice questions 2 video lessons Theory + worked examples

A planar graph can be drawn with no edges crossing, and for any connected planar graph Euler's formula links the vertices, edges and faces: \(v - e + f = 2\). This NSW Year 9 Advanced maths subtopic applies the formula (NESA outcome MA5‑NET‑P‑01).

You will count vertices, edges and faces, including the outside face, redraw graphs in planar form, and use Euler's formula to find a missing value or spot a counting error. You will apply it to a pyramid, a solid with \(12\) faces, a map of walking tracks and a soccer ball, and use it to show that the complete graph \(K_5\) cannot be drawn without crossings. It is part of Year 9 Advanced Properties of Geometric Figures.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Planar Graphs and Euler's formula - Video - Planar Graphs Introduction - Equivalent (Isomorphic Graphs) and Drawing Graphs in Planar Form Watch
  • Planar Graphs and Euler's formula - Video - Planar Graphs - Euler's Formula - It always works and here's how to work with it Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A planar graph can be drawn with no two edges crossing, and its edges then split the page into faces. For every connected planar graph, Euler's formula \(v - e + f = 2\) links the vertices, edges and faces. This Year 9 Advanced maths page shows how to count faces, redraw a graph in planar form, and use the formula for solids, degrees and face counts.

A graph is planar if it can be drawn in the plane so that no two edges cross. A drawing with no crossings is in planar form. A drawing with crossings does not prove a graph is non-planar: it may be possible to redraw it. A non-planar graph is one that can never be drawn without a crossing.

A planar drawing splits the page into regions called faces. The unbounded region all around the outside of the graph is also a face, and it is the one most often forgotten.

For a connected planar graph with \(v\) vertices, \(e\) edges and \(f\) faces, Euler's formula says \(v - e + f = 2\). One way to see it: start from a single vertex (\(1 - 0 + 1 = 2\)). Adding an edge to a new vertex adds \(1\) to both \(v\) and \(e\). Adding an edge between two existing vertices closes a loop, adding \(1\) to both \(e\) and \(f\). Either way \(v - e + f\) stays \(2\).

The corners and edges of a solid such as a prism or a pyramid can be flattened into a planar graph without changing the counts, so Euler's formula holds for those solids too (with \(v\) = corners and \(f\) = faces).

A planar graph with its faces numberedA planar drawing with an outer triangle and an inner triangle joined at their corners: 6 vertices and 9 edges. The regions are numbered 1 to 5, with region 5 the outside. 1 2 3 4 5 (outside)
\(v = 6\), \(e = 9\), \(f = 5\) (counting the outside): \(6 - 9 + 5 = 2\).
The same graph drawn two waysLeft: two triangles ABC and DEF side by side, joined by edges AD, BF and CE, where CE crosses DF. Right: the same graph redrawn with triangle DEF inside triangle ABC, so that no edges cross. A B C D E F A B C D E F
Two drawings of one graph. The left drawing has a crossing, but the graph is still planar, because it can be redrawn with none.

For a connected planar graph:

\[v - e + f = 2\]
v−e+f=2

Rearranged for each letter:

\[v = 2 + e - f \qquad e = v + f - 2 \qquad f = 2 - v + e\]
e=v+f−2
Edges from degrees. The handshake rule gives \(2e = \) sum of the degrees. Use it when the question gives degrees instead of edges.
Edges from faces. Every edge borders two faces (or the same face twice). So if you add up the number of edges round every face, you get \(2e\). When every face has \(k\) edges, \(kf = 2e\). The same idea counts the edges of a solid: total number of sides of all its faces \(\div 2\). In a graph with no double edges every face has at least \(3\) edges, so \(3f \le 2e\). If Euler's formula gives an \(f\) that breaks this, the graph cannot be planar.

How to count faces and use Euler's formula

  1. Check the drawing is in planar form. If two edges cross, redraw it first: move a vertex, or take an edge round the outside.
  2. Count \(v\) and \(e\) from a list, ticking each one off. Count the faces as enclosed regions, then add \(1\) for the outside.
  3. Check with \(v - e + f = 2\). If it does not give \(2\), a count is wrong, and the usual culprit is the outside face.
  4. Solve for a missing count by substituting the two you know into the rearranged formula.

Harder questions

  1. Testing a claim: substitute the three numbers. If \(v - e + f \ne 2\), no connected planar graph has them.
  2. Two unknowns linked by a sentence (for example "twice as many edges as vertices"): write one in terms of the other, substitute and solve the linear equation.
  3. Expressions: if \(v\), \(e\) and \(f\) are given in terms of \(x\), substitute all three, collect like terms and solve.
  4. Adding to a graph: recount \(v\) and \(e\) and use the formula again. An edge that closes a loop adds a face.
Example 1 β€” Counting and checking
For the connected planar graph shown, count the vertices \(v\), edges \(e\) and faces \(f\), and check that Euler's formula holds.
Solution
Graph with 7 verticesA connected planar graph: a hexagon ABCDEF with the chords BF and CE, and an extra vertex G joined only to D. The regions are numbered 1 to 4, with 4 the outside. A B C D E F G 1 2 3 4 (outside)

Vertices: \(A\) to \(G\), so \(v = 7\). Edges: the six sides of the hexagon, \(BF\), \(CE\) and \(DG\), so \(e = 9\).

Faces: \(ABF\), \(BCEF\), \(CDE\) and the outside, so \(f = 4\). The edge \(DG\) does not enclose a region, so it adds no face.

\(v - e + f\)\(=\)\(7 - 9 + 4\)
\(\)\(=\)\(2 \ \checkmark\)
7−9+4=2
Example 2 β€” Euler's formula for a solid
A solid has \(7\) faces and \(10\) corners (vertices). How many edges does it have? Name a solid that fits.
Solution

The corners and edges of a solid can be flattened into a connected planar graph, so \(v - e + f = 2\). Make \(e\) the subject.

\(e\)\(=\)\(v + f - 2\)
\(\)\(=\)\(10 + 7 - 2\)
\(\)\(=\)\(\mathbf{15}\)
e=v+f−2=15

A pentagonal prism fits: \(2\) pentagons and \(5\) rectangles make \(7\) faces, with \(10\) corners and \(5 + 5 + 5 = 15\) edges.

Pentagonal prismA pentagonal prism: two pentagon faces joined by five rectangular faces. Hidden edges are dashed.
Example 3 β€” Degrees, then faces
A connected planar graph has \(8\) vertices, and every vertex has degree \(3\). How many edges and faces does it have?
Solution

Euler's formula needs \(e\). Get it from the degrees with the handshake rule.

\(2e\)\(=\)\(8 \times 3 = 24\)
\(e\)\(=\)\(\mathbf{12}\)
2e=8×3,e=12
\(8 - 12 + f\)\(=\)\(2\)
\(f\)\(=\)\(\mathbf{6}\)
8−12+f=2,f=6
Planar drawing of the corners and edges of a cubeA square inside a square with matching corners joined: 8 vertices, each of degree 3, and 12 edges, making 6 regions including the outside.

These are the numbers for a cube: \(8\) corners, \(12\) edges and \(6\) faces. The drawing shows the cube flattened, with the outside region as the sixth face.

Example 4 β€” Counting edge-sides
A connected planar graph has \(10\) vertices. Every face, including the outside face, is bounded by exactly \(4\) edges. Find the number of faces and edges.
Solution

Count the sides of the faces two ways. Face by face, there are \(4f\) edge-sides. Edge by edge, each edge has a face on each side, so there are \(2e\).

\(4f\)\(=\)\(2e\)
\(e\)\(=\)\(2f\)
4f=2e

Substitute into Euler's formula with \(v = 10\):

\(10 - 2f + f\)\(=\)\(2\)
\(10 - f\)\(=\)\(2\)
\(f\)\(=\)\(\mathbf{8}\)
\(e\)\(=\)\(2 \times 8 = \mathbf{16}\)
10−2f+f=2

Check: \(10 - 16 + 8 = 2\), and \(4 \times 8 = 32 = 2 \times 16\).

Common pitfalls

Count the outside face. The region around the outside is a face. Missing it makes \(v - e + f\) come out as \(1\) instead of \(2\).
A crossing is not a vertex. Where two edges cross in a drawing there is no dot, so it is not a vertex. Redraw the graph in planar form before counting faces.
Crossings do not mean non-planar. One drawing with crossings proves nothing. A graph is non-planar only if every possible drawing has a crossing.
Connected only. Euler's formula \(v - e + f = 2\) is for connected planar graphs. A graph in two separate pieces does not satisfy it.
Signs in the formula. It is \(v - e + f\), not \(v + e - f\). Edges are subtracted.

Frequently asked questions

What is Euler's formula for planar graphs?

For any connected planar graph, the number of vertices minus the number of edges plus the number of faces equals \(2\): \(v - e + f = 2\). The outside region counts as a face.

What is a planar graph?

A planar graph is a graph that can be drawn on a flat page with no two edges crossing. A particular drawing may have crossings, but if any crossing-free drawing exists, the graph is planar.

Does the outside count as a face?

Yes. The unbounded region around the outside of a planar drawing is a face, so a single triangle has 2 faces: the inside and the outside.

Does Euler's formula work for 3D shapes?

Yes, for solids such as prisms and pyramids. Their corners, edges and faces can be flattened into a connected planar graph, so corners \(-\) edges \(+\) faces \(= 2\). A cube has \(8 - 12 + 6 = 2\).

Is every graph planar?

No. Some graphs can never be drawn without a crossing. Two famous examples are the complete graph on 5 vertices and the graph joining each of 3 houses to each of 3 utilities.