Skip to content
Tutorials Center
My learning

Topics

Lesson 31 of 37 ยท Classification and Diversity of Life

Dichotomous Keys

Learn to use and write a dichotomous key to identify organisms using a series of two-choice questions, with a runnable key you can edit.

How do you find the name of an unknown insect or leaf? Biologists use an identification key. The most common is the dichotomous key ("dichotomous" means "divided into two"). It is a series of numbered steps, each giving two choices about an observable feature. Each choice either names the organism or sends you to another step, narrowing the options until one is left.

How a key works

Here is a short key to identify four animals:

  1. a) Has a backbone: go to step 2 b) No backbone: go to step 3
  2. a) Has feathers: bird b) No feathers: fish
  3. a) Has six legs: insect b) Has eight legs: spider

To identify a spider, you check 1: no backbone, go to step 3. Then eight legs: spider. Two decisions find the answer.

flowchart TB
  S["Backbone?"] -->|yes| F["Feathers?"]
  S -->|no| L["Number of legs?"]
  F -->|yes| B["Bird"]
  F -->|no| Fi["Fish"]
  L -->|six| I["Insect"]
  L -->|eight| Sp["Spider"]

The same key as a branching tree. Every question has exactly two answers.

Rules for a good key

  • Two choices at every step, never three. If you have three options, split them in two stages.
  • Use features that you can observe and count (number of legs, leaf edge smooth or toothed). Avoid vague terms such as "large" or "pretty". If you need size, give a measurement, such as "longer than 5 cm".
  • Use features that do not change with age or season, if possible.
  • Choices should be mutually exclusive: an organism fits one and only one.
  • Start with a broad feature that splits the set, and move toward finer ones.

Using a key: a method

  1. Observe the specimen and write down its features.
  2. Begin at step 1 and choose the statement that matches.
  3. Follow the instruction to a new step or a name.
  4. Check the result against a description or picture: a key is a tool, not proof.
JS Run a key as a program

Press Run (or Ctrl + Enter) to see the console output here.

No output.

You can change the specimen's answers and add new branches to the tree.

Writing your own key

Suppose you want to key four leaves: maple, oak, holly and a grass blade.

  1. a) Leaf is long and thin with parallel veins: grass b) Leaf is wide: go to step 2
  2. a) Edge has sharp spines: holly b) Edge has no sharp spines: go to step 3
  3. a) Edge is deeply lobed with pointed tips: maple b) Edge is deeply lobed with rounded tips: oak

Step 3 above is a good pair: both choices describe the same feature (lobe tips), so the learner has to compare. A bad pair would mix features, such as "has lobes" versus "is green".

Python Check that every species is reached exactly once

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A well-built key with n species always needs n - 1 questions in total, because each question splits one group into two.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. How many choices does each step of a dichotomous key give?

    'Dichotomous' means divided into two.
  2. 2. Which is the best feature to use in a key?

    A measurable feature gives the same answer for every user. 'Large' and 'pretty' are opinions.
  3. 3. A key identifies 6 species. How many questions does the whole key contain?

    Each question separates one group into two, so n species need n - 1 questions.
  4. 4. After you finish a key and get a name, what should you do?

    Keys can lead to wrong answers if a feature is misread, so confirm the result.

Summary

  • A dichotomous key identifies organisms by a series of two-choice steps.
  • Use observable, measurable and exclusive features.
  • A key for n species needs n - 1 questions.
  • Always check the answer against another description.

Next: Climate Change and the Greenhouse Effect