Skip to content
IB Diploma ProgrammeSL & HL

Voronoi diagrams

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Voronoi diagrams notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Voronoi diagrams notes as text: skim, search, and jump between subtopics.

~20 min read

1. Sites, cells, edges and vertices

A Voronoi diagram splits a map into regions. Each region is built around one point, called a site. The region around a site is its cell. Every point in a cell is closer to that site than to any other site.

The line between two cells is an edge. Every point on an edge is the same distance from the two sites either side of it. A vertex is a point where three edges meet. It is the same distance from the three sites around it.

To find the site closest to a point, find the cell that holds the point. Then name the site itself, such as a fire station, not just the point. A question about a real context may also ask why the nearest site might not be the one used. Any viable real-life reason is credited.

d = √((x₂ - x₁)² + (y₂ - y₁)²)

Worked example 12 marks

Three fire stations are at A(18, 8), B(16, 12) and C(8, 13). The Voronoi diagram for the three fire stations is shown on the coordinate grid, where 1 unit represents 2.5 km.

(b)(i) Identify the fire station that is expected to respond, based on the Voronoi diagram, if a fire is reported at a location with coordinates (14, 10). Justify your response.

(ii) Suggest a reason why a different fire station might respond to this fire.

  1. 1

    (i) B is expected to respond since (14, 10) lies in the same cell as fire station B, or since (14, 10) is closer to B than to any other fire station (R1) [1]

  2. 2

    (ii) any viable reason, for example the Voronoi diagram only considers straight-line distances, so a different fire station might have a shorter driving route to the fire (R1) [1]

2. The equation of an edge

An edge is the perpendicular bisector of the line joining two sites. The examination gives the coordinates of the sites. You are not asked to construct the bisector, but you may be asked for its equation.

There are three steps. Find the midpoint of the two sites. Find the gradient between the sites and turn it into the perpendicular gradient (negative reciprocal). Then write the line through the midpoint with that gradient.

Write a midpoint as a coordinate pair in parentheses. If two sites lie on a vertical or horizontal line, the edge is horizontal or vertical, so no gradient is needed.

M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

m = (y₂ - y₁)/(x₂ - x₁) m_⊥ = -1/m

y - y₁ = m(x - x₁)

Worked example 16 marks

Three fire stations are at A(18, 8), B(16, 12) and C(8, 13).

(a)(i) Find the midpoint of [BC].

(ii) Find the gradient of the perpendicular bisector of [BC].

(iii) Hence find the equation of the edge between sites B and C.

  1. 1

    (i) attempt to substitute the coordinates into the midpoint formula (M1) [1]

  2. 2

    (12, 12.5). Award A0 if the parentheses are omitted (A1) [1]

  3. 3

    (ii) attempt to find the gradient of BC from B and C (M1) [1]

  4. 4

    gradient of BC = (12 - 13)/(16 - 8) = -1/8 (A1) [1]

  5. 5

    gradient of the perpendicular is 8 (A1) [1]

  6. 6

    (iii) 8(x - 12) = y - 12.5 or y = 8x - 83.5 (A1) [1]

3. Vertices and equal distances

A vertex is on three edges, so it is the same distance from three sites. To find a vertex, solve the equations of two edges at the same time.

To show that a point is equidistant from three sites, calculate its distance from each site and check that the values are equal. Then write the conclusion in words. A GDC may solve the two edge equations, but write down the equations you solved.

At a vertex, any of the three nearest sites is equally good. A question may then ask which site should respond, and the answer is that any of them could.

d = √((x₂ - x₁)² + (y₂ - y₁)²)

Worked example 14 marks

Three fire stations are at A(18, 8), B(16, 12) and C(8, 13). A fire is reported at a location D with coordinates (111/3, 71/6). The distance of D from A on the Voronoi diagram, to six significant figures, is 6.71855 units.

(c)(i) Show that the distance of D from B, to six significant figures, is also 6.71855 units.

(ii) Show that any of the three fire stations would be expected to respond to the fire reported at D.

  1. 1

    (i) attempt to calculate the length DB (M1) [1]

  2. 2

    a correct expression: DB = √((111/3 - 16)² + (71/6 - 12)²) (A1) [1]

  3. 3

    DB = 6.71855 (AG)

  4. 4

    (ii) a correct expression: DC = √((111/3 - 8)² + (71/6 - 13)²) (A1) [1]

  5. 5

    DC = 6.71855, therefore the fire is equidistant from all 3 fire stations (R1) [1]

  6. 6

    so any of the fire stations would be expected to respond (AG). The R1 is not awarded unless this statement is seen.

4. Adding a site to a Voronoi diagram

A new site takes a new cell from its neighbours. Its edges are the perpendicular bisectors between the new site and each neighbouring site. These edges cut across old edges, so part of an old edge disappears.

Find each new edge in the same way: midpoint, perpendicular gradient, equation. Where two new edges meet an old edge, there is a new vertex. Points beyond that vertex on the old edge are now closer to the new site.

To check an edge, take a point on it and show that it is the same distance from both sites.

Worked example 16 marks

Two libraries are at A(2, 2) and B(10, 2) on a map grid. The edge between A and B in the Voronoi diagram is the line x = 6. A new library D is built at (6, 6) and is added as a third site.

(a) Find the equation of the edge between A and D.

(b) Show that the point (5, 3) lies on this edge.

(c) Hence write down the equation of the edge between B and D.

  1. 1

    (a) midpoint of [AD] is (4, 4) (A1) [1]

  2. 2

    gradient of AD = (6 - 2)/(6 - 2) = 1, so the perpendicular gradient is -1 (A1) [1]

  3. 3

    y - 4 = -(x - 4), so y = -x + 8 (A1) [1]

  4. 4

    (b) substitute x = 5: -5 + 8 = 3 (M1) [1]

  5. 5

    this equals the y-coordinate, so (5, 3) lies on the edge (R1) [1]

  6. 6

    (c) by symmetry in x = 6, the edge between B and D is y = x - 4 (A1) [1]

5. Nearest neighbour interpolation

Sometimes a value is known only at the sites, such as the rainfall at weather stations. Nearest neighbour interpolation estimates the value at any other point. The point takes the value of the nearest site.

So all points within a cell can be estimated to have the same value as the site of that cell. Find the cell by working out which site is nearest. Comparing squared distances is enough, since the smallest squared distance belongs to the nearest site.

A point on an edge is the same distance from two sites. The method gives no single value there.

Worked example 16 marks

Rainfall is recorded at three weather stations on a map grid, where 1 unit represents 1 km. Station S(1, 1) recorded 40 mm, station T(7, 1) recorded 55 mm and station U(4, 7) recorded 30 mm.

(a) Estimate the rainfall at (5, 2) by nearest neighbour interpolation.

(b) Explain why the method gives no single estimate for the point (4, 3).

  1. 1

    (a) attempt to find the distance from (5, 2) to each station (M1) [1]

  2. 2

    squared distances 17, 5 and 26, so distances √17, √5 and √26 to S, T and U (A1) [1]

  3. 3

    (5, 2) is closest to station T (R1) [1]

  4. 4

    estimate = 55 mm, the value at the nearest site (A1) [1]

  5. 5

    (b) squared distances to S, T and U are 13, 13 and 16 (A1) [1]

  6. 6

    S and T are equidistant and nearer than U, so (4, 3) lies on the edge between their cells and two values (40 mm and 55 mm) are possible (R1) [1]

6. The area of a cell

The cell of a site is bounded by edges and by the border of the map. Find the corners of the region first. They are vertices, or places where an edge meets the border or an axis.

Then split the region into triangles, a trapezium or a rectangle and add the areas. Write every length that you use in the area calculation. An answer asked for to the nearest whole number must be a whole number.

For a real area, convert the scale. If 1 unit represents 2.5 km, then 1 square unit is 2.5 × 2.5 square kilometres. Multiply the area in units by the square of the scale.

A_triangle = 1/2bh A_trapezium = 1/2(a + b)h

real area = area in square units × (scale)²

Worked example 17 marks

Three fire stations are at A(18, 8), B(16, 12) and C(8, 13). The Voronoi diagram is shown on the coordinate grid, where 1 unit represents 2.5 km. The three edges meet at (111/3, 71/6).

The equation of the edge between fire stations A and B is y = 0.5x + 1.5. The edge between fire stations A and C has an x-intercept of 7.75.

(d)(i) Determine the area, to the nearest square unit, of the region within the given Voronoi diagram for which fire station A is responsible.

(ii) Hence, calculate the actual area, in square kilometres, of this region.

  1. 1

    (i) 0.5 × 20 + 1.5 = 11.5 seen in an area calculation (A1) [1]

  2. 2

    20 - 7.75 = 12.25 or 20 - 11.333… = 8.666… seen (A1) [1]

  3. 3

    substitution into the triangle area formula for either triangle (M1) [1]

  4. 4

    A = 0.5 × (20 - 7.75) × 7.1666… + 0.5 × 11.5 × (20 - 11.3333…) (A1) [1]

  5. 5

    93.7291…, so 94 square units. The answer must be a whole number for this A1 (A1) [1]

  6. 6

    (ii) 1 square unit = 2.5 × 2.5 = 6.25 km² (A1) [1]

  7. 7

    94 × 6.25 = 587.5, so 588 km². Accept 586 km² from 93.7291… × 6.25 (A1) [1]

7. The toxic waste dump problem

Suppose a facility such as a waste dump must be as far as possible from every town. Its distance from the nearest town should be as large as it can be.

In the examination the solution is always at an intersection of three edges, a vertex of the Voronoi diagram. At a vertex the three nearest towns are equally far away.

So the method is to find the vertex, then calculate its distance from one of the three sites. Applications include urban planning, the spread of disease, ecology, meteorology and resource management.

Worked example 15 marks

Three towns are at P(0, 0), Q(6, 0) and R(2, 4), where 1 unit represents 1 km. In the Voronoi diagram the edge between P and Q is x = 3 and the edge between P and R is x + 2y = 5. A waste facility is to be placed inside triangle PQR, as far as possible from the nearest town.

(a) Find the coordinates of the point where these two edges meet.

(b) Calculate the distance from this point to P.

(c) Show that this point is the same distance from R as from P.

  1. 1

    (a) substitute x = 3 into x + 2y = 5: 3 + 2y = 5 (M1) [1]

  2. 2

    y = 1, so the vertex is (3, 1) (A1) [1]

  3. 3

    (b) √((3 - 0)² + (1 - 0)²) = √10 (M1) [1]

  4. 4

    3.16 km (A1) [1]

  5. 5

    (c) √((3 - 2)² + (1 - 4)²) = √(1 + 9) = √10 (A1) [1]

  6. 6

    the same as the distance to P. The point is also on the edge between P and Q, so it is equidistant from the three towns (AG)

Recap

  • Site: a point the diagram is built around. Cell: all points closer to that site than to any other. Edge: points equally far from two sites. Vertex: where three edges meet.
  • Edge between two sites: find the midpoint, find the perpendicular gradient, then write y - y₁ = m(x - x₁).
  • Perpendicular gradient: m_⊥ = -1/m. A horizontal line has a vertical perpendicular, and a vertical line a horizontal one.
  • Write the midpoint in parentheses, as (x, y).
  • Vertex: solve two edge equations at the same time. It is equidistant from three sites.
  • New site: its edges are the bisectors with its neighbours. Part of an old edge disappears beyond the new vertex.
  • Nearest neighbour interpolation: a point takes the value of the nearest site. A point on an edge has no single value.
  • Area of a cell: find the corners, split into triangles or a trapezium, add. Convert with the square of the scale.
  • Toxic waste dump: the best place is the intersection of three edges. Calculate its distance from one of the three sites.
  • Show every line of working, since a correct answer with no working may earn no marks. Give answers exact or to three significant figures.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State which of the following describes a vertex of a Voronoi diagram. A. a point that the diagram is built around; B. a point where three edges meet; C. a line equally far from two sites; D. a region closer to one site than to any other.1 mark
    Answer
    1. A vertex is a point where three edges meet, so the answer is B.

    Trap: A is a site, C is an edge and D is a cell. The four words name four different parts of the diagram.

  2. Do not use a calculator. Find the equation of the edge between A(2, 1) and B(2, 9).2 marks
    Answer
    1. The midpoint of [AB] is ((2 + 2)/2, (1 + 9)/2) = (2, 5).
    2. AB is vertical, so the edge is horizontal: y = 5.

    Trap: A vertical line has a horizontal bisector. Writing x = 5 or x = 2 gives the wrong direction.

  3. Do not use a calculator. Two sites are at P(1, 2) and Q(7, 6). (a) Find the midpoint of [PQ]. (b) Find the gradient of the perpendicular bisector of [PQ].3 marks
    Answer
    1. (a)
    2. ((1 + 7)/2, (2 + 6)/2) = (4, 4).
    3. (b)
    4. Gradient of PQ = (6 - 2)/(7 - 1) = 2/3.
    5. The perpendicular gradient is -3/2.

    Trap: The edge needs the perpendicular gradient. Giving 2/3 (the gradient of PQ) or -2/3 (a sign change only) loses the mark.

  4. Do not use a calculator. Find the equation of the edge between A(1, 1) and B(5, 3), in the form y = mx + c.4 marks
    Answer
    1. Midpoint = (3, 2).
    2. Gradient of AB = (3 - 1)/(5 - 1) = 1/2, so the perpendicular gradient is -2.
    3. y - 2 = -2(x - 3).
    4. y = -2x + 8.

    Trap: Using 2 instead of -2 is a sign error. Check by putting the midpoint (3, 2) into your equation: -2(3) + 8 = 2.

  5. Do not use a calculator. Stations K(1, 1), L(9, 1) and M(5, 9) record 18 ^(°)C, 22 ^(°)C and 15 ^(°)C. Estimate the temperature at (6, 3) by nearest neighbour interpolation.3 marks
    Answer
    1. Squared distances from (6, 3): K = 5² + 2² = 29, L = 3² + 2² = 13, M = 1² + 6² = 37.
    2. The smallest is L, so (6, 3) is in the cell of L.
    3. Estimate = 22 ^(°)C.

    Trap: Comparing only the x-distances (5, 3 and 1) picks M, which is wrong. Both coordinates are needed. An average of the three values is not nearest neighbour interpolation.

  6. Do not use a calculator. Two bus stops are at A(2, 1) and B(8, 5). (a) Show that the equation of the edge between A and B is 3x + 2y = 21. (b) A school is at (7, 3). Determine which bus stop is nearer to the school.6 marks
    Answer
    1. (a)
    2. Midpoint = (5, 3).
    3. Gradient of AB = (5 - 1)/(8 - 2) = 2/3, so the perpendicular gradient is -3/2.
    4. y - 3 = -3/2(x - 5), so 2y - 6 = -3x + 15.
    5. 3x + 2y = 21.
    6. (b)
    7. Squared distances from (7, 3): A = 5² + 2² = 29 and B = 1² + 2² = 5.
    8. B is nearer.

    Trap: A show-that answer needs every step to reach the given line. Using 2/3 as the edge gradient does not give the line. The school is on B's side: 3(7) + 2(3) = 27 > 21.

  7. Three villages are at P(0, 0), Q(10, 0) and R(4, 8), where 1 unit represents 1 km. In the Voronoi diagram the edge between P and Q is x = 5 and the edge between P and R is y = -0.5x + 5. A waste facility is to be placed inside triangle PQR, as far as possible from the nearest village. (a) Find the coordinates of the point where the three edges meet. (b) Calculate the distance from this point to P, to three significant figures.4 marks
    Answer
    1. (a)
    2. At x = 5: y = -0.5(5) + 5 = 2.5. The point is (5, 2.5).
    3. (b)
    4. √(5² + 2.5²) = √(31.25) = 5.59 km.

    Trap: Averaging the coordinates gives (14/3, 8/3), a central point whose nearest village is only 5.37 km away. The solution is always at an intersection of three edges.

  8. A nature reserve is the rectangle with 0 ≤ x ≤ 10 and 0 ≤ y ≤ 8, where 1 unit represents 1 km. Ranger stations are at S(3, 6) and T(9, 2). (a) Show that the edge between S and T has equation y = 1.5x - 5. (b) Find the x-coordinates of the points where this edge meets the lines y = 0 and y = 8. (c) Find the area of the part of the reserve that is closer to T than to S. Hence find the area of the part closer to S.8 marks
    Answer
    1. (a)
    2. Midpoint = (6, 4) and gradient of ST = (2 - 6)/(9 - 3) = -2/3, so the perpendicular gradient is 3/2.
    3. y - 4 = 1.5(x - 6), so y = 1.5x - 5.
    4. (b)
    5. At y = 0: x = 10/3. At y = 8: x = 26/3.
    6. (c)
    7. T's region is a trapezium with parallel sides 10 - 10/3 = 20/3 along y = 0 and 10 - 26/3 = 4/3 along y = 8, and height 8.
    8. Area = 1/2(20/3 + 4/3) × 8 = 32 km².
    9. Total area = 10 × 8 = 80, so S's part is 80 - 32 = 48 km².

    Trap: The edge leaves the reserve through the top side at x = 26/3. At x = 10 it would have y = 10, which is outside the reserve. Using x = 10 as the corner gives the wrong shape.

  9. Two clinics are at A(0, 0) and B(8, 0), so the edge between them is x = 4. A new clinic C is added at (2, 6). (a) Find the equation of the edge between A and C. Give your answer in the form ax + by = c. (b) The edge between B and C is y = x - 2. Find where the three edges meet. (c) State which part of the line x = 4 is still an edge of the new diagram. (d) A patient lives at (5, 4). Identify the clinic that is expected to treat the patient. Justify your response.8 marks
    Answer
    1. (a)
    2. Midpoint = (1, 3). Gradient of AC = (6 - 0)/(2 - 0) = 3, so the perpendicular gradient is -1/3.
    3. y - 3 = -1/3(x - 1), so 3y - 9 = -x + 1 and x + 3y = 10.
    4. (b)
    5. At x = 4: y = 4 - 2 = 2. Check in the edge AC: 4 + 3(2) = 10. The point is (4, 2).
    6. (c)
    7. Only the part with y ≤ 2. Above (4, 2), points on x = 4 are closer to C.
    8. (d)
    9. Squared distances from (5, 4): A = 5² + 4² = 41, B = 3² + 4² = 25, C = 3² + 2² = 13.
    10. Clinic C is expected to treat the patient, since (5, 4) is closer to clinic C than to any other clinic.

    Trap: Part of the old edge is lost, and the new site takes points from B: before C was added, (5, 4) was in the cell of B. In (d), "the point is closer to C" earns R0 because it names no clinic as the responder.

  10. A nature reserve is the rectangle with 0 ≤ x ≤ 12 and 0 ≤ y ≤ 8, where 1 unit represents 0.5 km. Water holes are at A(2, 2), B(10, 2) and C(6, 6). Each animal is assumed to drink at the nearest water hole. (a) Show that the edge between A and C is x + y = 8. (b) Find the coordinates of the vertex of the Voronoi diagram. (c) Determine the area, in km², of the part of the reserve for which water hole A is the nearest.8 marks
    Answer
    1. (a)
    2. Midpoint of [AC] = (4, 4). Gradient of AC = (6 - 2)/(6 - 2) = 1, so the perpendicular gradient is -1.
    3. y - 4 = -(x - 4), so y = -x + 8 and x + y = 8.
    4. (b)
    5. A and B have the same y-coordinate, so the edge between them is the vertical line through their midpoint: x = 6.
    6. At x = 6: y = 8 - 6 = 2. The vertex is (6, 2).
    7. (c)
    8. The region of A has corners (0, 0), (6, 0), (6, 2) and (0, 8), since x + y = 8 meets x = 0 at (0, 8), a corner of the reserve.
    9. It is a trapezium with parallel sides 8 (on x = 0) and 2 (on x = 6), 6 apart: area = 1/2(8 + 2) × 6 = 30 square units.
    10. 1 square unit = 0.5 × 0.5 = 0.25 km², so the area is 30 × 0.25 = 7.5 km².

    Trap: Multiplying by the scale 0.5 instead of its square gives 15 km², twice the true area. The markscheme credits 1 square unit = 2.5 × 2.5 = 6.25 km² in the same way.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Point B is closer to (14, 10), with no mention of a responder (R0)fire station B is expected to respond, since (14, 10) is closer to B than to any other fire station
the midpoint is 12, 12.5, with no bracketsthe midpoint is (12, 12.5), with parentheses (A0 if they are omitted)
DC = 6.71855, with no statement about the stationsDC = 6.71855, therefore the fire is equidistant from all 3 fire stations, so any would be expected to respond
the area is 93.7 square unitsthe area is 94 square units, a whole number as the question asks (the last A1 needs it)

Frequently asked questions

What is a Voronoi diagram?
A Voronoi diagram splits a map into regions, each built around one point called a site. The region around a site is its cell, and every point in a cell is closer to that site than to any other site. The line between two cells is an edge, and a vertex is a point where three edges meet.
How do I find the equation of the edge between two sites?
Find the midpoint of the two sites, then the gradient between them and its negative reciprocal, then write the line through the midpoint with that gradient. For fire stations B(16, 12) and C(8, 13), the midpoint is (12, 12.5) and the edge is y = 8x - 83.5.
How do I find a vertex of a Voronoi diagram?
A vertex lies on three edges, so solve the equations of two edges at the same time. At a vertex the three nearest sites are equally far away. For the towns P(0, 0), Q(6, 0) and R(2, 4), the edges x = 3 and x + 2y = 5 meet at (3, 1), which is 3.16 km from P.
How does nearest neighbour interpolation work?
Nearest neighbour interpolation gives a point the value of its nearest site. Find the cell that holds the point by comparing squared distances, since the smallest squared distance belongs to the nearest site. For example, (5, 2) is closest to station T, so its estimate is 55 mm. A point on an edge has no single value.
How do I find the area of a Voronoi cell in square kilometres?
Find the corners of the region, split it into triangles or a trapezium, and add their areas. Convert with the square of the scale: if 1 unit represents 2.5 km, one square unit is 2.5 × 2.5 = 6.25 km². For example, 94 square units is 94 × 6.25 = 587.5, so 588 km².
Why is my cell area 15 km² and not 7.5 km²?
Multiplying by the scale 0.5 instead of its square gives 15 km², twice the true area. Convert with the square of the scale: 1 square unit is 0.5 × 0.5 = 0.25 km², so 30 square units is 7.5 km².

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters