Betti Numbers and Euler Characteristic Explained with Worked Examples

The Betti numbers count the -dimensional holes of a space: the connected pieces, the loops, the voids. The Euler characteristic is the alternating sum .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Betti numbers and Euler characteristic means

A circle has , , so . A sphere has , so . A torus has : two independent loops (round and through the hole), so . A surface of genus 2 has and , matching in the Euler characteristic of a surface. The count of loops is related to the winding numbers of the fundamental group of the circle.

The same number is obtained from any decomposition into vertices, edges and faces, : for a cube (Euler's formula). That the alternating sum of simple counts equals the alternating sum of the Betti numbers is the Euler–Poincaré formula. For a graph, (for a connected graph): the number of independent cycles, related to edges in a tree where .

Betti numbers are computed with linear algebra, as ranks of boundary matrices (the rank-nullity theorem), and they are the foundation of topological data analysis. The boundary-of-a-boundary rule behind them is the idea in the generalised Stokes theorem, and the curvature version is the Gauss–Bonnet theorem.

What is it used for?

Betti numbers count holes of each dimension, and their alternating sum is the Euler characteristic.

How to use betti numbers and euler characteristic

  1. Find the Betti numbers of the space.
  2. Form the alternating sum .
  3. Compare with for a decomposition.
  4. For a connected graph use .

Graph

Betti numbers of the torus: 1, 2, 1 (χ = 0)b0 = 1b1 = 2b2 = 100.511.522.533.5400.511.522.5Betti numbers of the torus: 1, 2, 1 (χ = 0)dimension + 1yGraph with x from 0 to 4 and y from 0 to 2.6. Shows bars (3); point b0 = 1 at (1, 1); point b1 = 2 at (2, 2); point b2 = 1 at (3, 1).

The alternating sum 1 − 2 + 1 is 0.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: the sphere

Find of the sphere with Betti numbers .

Worked example
Answer
22
  1. Alternating sum

Example 2: the torus

Find of the torus with Betti numbers .

Worked example
Answer
00
  1. Alternating sum

Example 3: a graph

A connected graph has 6 vertices and 9 edges. Find and .

Worked example
Answer
b1=4, χ=−3b_1=4,\ \chi=-3
  1. b₁
  2. χ

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

The sphere

b₀ = 1, b₁ = 0, b₂ = 1: χ = 2

One piece, no loops, one void.

The torus

b₀ = 1, b₁ = 2, b₂ = 1: χ = 0

Two independent loops.

A graph

4 vertices, 5 edges, connected: b₀ = 1, b₁ = 2, χ = −1

χ = V − E.

Genus g surface

b₁ = 2g: χ = 2 − 2g

Matches the formula.

Word problems

The Betti number b_k counts k-dimensional holes. The Euler characteristic is χ = b₀ − b₁ + b₂ − ….

The sphere

Find χ for a sphere with b = (1, 0, 1).

  1. Alternating sum1 − 0 + 1
  2. Check: ✓2.

The torus

Find χ for a torus with b = (1, 2, 1).

  1. Alternating sum1 − 2 + 1
  2. Check: ✓0.

A graph Higher

A connected graph has 4 vertices and 5 edges. Find b₁.

  1. χ4 − 5 = −1
  2. b₀ − b₁1 − b₁ = −1
  3. Check: b₁ = 2 ✓b₁ = 2.

Genus 3 Higher

A genus-3 surface has b₁ = 6. Find χ.

  1. b₀ − b₁ + b₂1 − 6 + 1
  2. Check: 2 − 2g = −4 ✓−4.

Common mistakes

Adding all Betti numbers

sphere χ = 1 + 0 + 1 = 2 (by luck) ✗

alternate the signs ✓

The torus shows the difference.

Counting b₀ wrongly

b₀ = 0 for a connected space ✗

b₀ = 1 ✓

b₀ counts components.

Confusing b₁ with χ

b₁ = χ ✗

b₁ counts loops ✓

Different invariants.

Forgetting b₂ for a closed surface

torus b₂ = 0 ✗

b₂ = 1 ✓

A closed orientable surface has a void.

Exam tips

  1. χ = b₀ − b₁ + b₂.
  2. b₀: components.
  3. b₁: loops.
  4. b₂: voids.
  5. Graph: χ = V − E.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. b = (1, 0, 1): find χ Foundation

2

2. b = (1, 4, 1): find χ Foundation

−2

3. Graph with V = 5, E = 5, connected: χ Foundation

0

4. Connected graph V = 6, E = 9: find b₁ Higher

4

5. Genus 4: find b₁ Higher

8

6. b = (2, 1, 0): find χ Higher

1

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Betti number
Counts holes of a dimension.
Euler characteristic
Alternating sum.
Connected component
A separate piece.
Homology
Algebra counting holes.
Void
A 2D hole.
Graph
Vertices and edges.

Frequently asked questions

What are Betti numbers?

Counts of k-dimensional holes.

What is χ in terms of Betti numbers?

b₀ − b₁ + b₂ − ….

What are the Betti numbers of a torus?

1, 2, 1.

What is b₁ of a connected graph?

E − V + 1.

Which page covers χ for surfaces?

Euler characteristic of a surface.

Which page covers the circle?

fundamental group of the circle.

More in Analysis, algebra and topology and the formula sheets.