Until 31 December 2026 only: try Themera Pro free for 7 days (first subscription). Cancel before and you pay nothing.Try Pro now →
10 min read

How to Create a Codebook for Qualitative Research: Entries, Example and Versioning

How to create a codebook for qualitative research: what each entry needs, a worked example from five invented excerpts, a change log, and when to re-code after changing a definition.

CodebookCodingResearch methods

You have a list of forty labels, and two weeks later you can no longer say why one passage got "workload" and the next got "time pressure". A codebook fixes that: it records what each code means, where it stops, and what a typical passage looks like. This guide shows the entries, a worked example, and what to do when the codebook changes after coding has started.

What a codebook entry contains

A widely cited structure comes from MacQueen, McLellan, Kay and Milstein (1998, Cultural Anthropology Methods), written for team-based analysis. Each entry has six parts: the code, a brief definition, a full definition, when to use it, when not to use it, and an example. Beginners tend to skip "when not to use", although it is the field that separates a code from its neighbours.

For a thesis, you can compress this into four fields. They correspond closely to the German Kodierleitfaden: category, definition, anchor example and coding rule.

FieldQuestion it answers
Code nameWhat is the label? A short, specific phrase
DefinitionWhat does it cover, in one or two sentences?
Anchor exampleWhich passage from the data clearly fits?
Coding ruleWhen does it not apply, and which code takes over?

Worked example: from five excerpts to a codebook

The research question and all excerpts below are invented for illustration: How do employees experience workload in hybrid work?

A first pass might give all five the code "workload". That is too coarse to answer the question. Comparing the excerpts shows three different things: the amount of work, how work arrives, and when it is done.

CodeDefinitionAnchor (invented)Coding rule
Overall volumeThe amount of work is described as highP2Not if the point is how tasks arrive: use Unplanned tasks
Unplanned tasksTasks arrive without notice or agreementP1The lack of notice or consultation must be visible in the passage
Extended availabilityWork continues outside usual hoursP4Not for long days where no timing is mentioned: use Overall volume

P3 fits Unplanned tasks. P5 is the borderline case: the volume is high, but the task was chosen. It gets Overall volume, not Unplanned tasks. If more participants describe self-chosen extra work, that is a reason to consider a new code. Write such decisions down while you make them.

How to build it, step by step

  1. Decide where codes come from. Theory and your research question, the data, or both. Record the origin of each code; you will need it for the methods section.
  2. Code a small, varied subset. A few transcripts that differ clearly from each other produce more borderline cases than similar ones.
  3. Write definitions and rules. If you cannot say when a code does not apply, it is probably too vague or overlaps with another.
  4. Test it early. Ideally a second person codes the same passages independently. Discuss every disagreement and decide whether the definition or the application was the problem. See intercoder reliability and AI coding for ways to check agreement.
  5. Revise and give it a version number. Merge codes that keep getting confused, split codes that hold two ideas, then apply that version to the material.

Versioning and re-coding after changes

Codebooks change, and MacQueen and colleagues advise accepting that text will need to be re-coded as the codebook is refined. The risk is a definition that changes halfway through: the same code then means two things in one data set, and comparisons built on it are unreliable. Use this table to decide what a change requires.

ChangeWhat to re-check
Renamed, same meaningNothing; log it
Definition or rule changedAll passages under this code and its neighbours, plus passages it may now include
Code splitEvery passage under the old code
Codes mergedThe merged passages against the new definition
New code addedMaterial coded before the code existed

A change log can be this short. Copy it and replace the entries:

VersionChangeReasonRe-coded
0.1Single code WorkloadFirst passNot applicable
0.2Split into three codesP1, P2 and P4 describe different problemsAll Workload passages

Three typical mistakes and their fixes

1. Codes that are really findings

"Employees feel overwhelmed because managers plan badly" is a claim, not a code. Fix: label the kind of content (Unplanned tasks) and keep the claim for a memo. More in how to code qualitative data.

2. Anchor examples that only show the obvious case

An easy example does not help with hard decisions. Fix: keep the typical anchor and add one borderline passage to the coding rule, with your decision and the reason.

3. Silent changes

A definition is edited, earlier transcripts stay as they were. Fix: no edit without a log line, and re-code what the change affects.

Check also that your method wants a fixed codebook at all. Reflexive thematic analysis treats coding as interpretive and does not aim for a fixed codebook or agreement scores; see reflexive vs codebook thematic analysis.

What software can and cannot do here

Software cannot decide what your codes mean or where their boundaries lie. It can make testing and documenting easier. In Themera, every code is backed by a verbatim quote, and quotes that are not exactly in the material are rejected automatically. A coverage indicator shows which responses got no code, which can point to a gap in the codebook. You can edit the codebook and re-code the material, and an intercoder agreement check offers blind re-coding with Cohen's kappa. Pseudonymisation runs before analysis, results export to DOCX or CSV, and data are stored and processed in the EU and not used for training. Keep your own change log with the reasons. Data protection questions belong with your supervisor or your university's data protection office.

Wording for your methods section

A template with placeholders, not a description of a real study. Delete whatever you did not do.

The codebook structure followed MacQueen et al. (1998) [in condensed form]. Initial codes were derived from [theory/research question]; further codes were developed inductively from [number] transcripts selected for variation. Each code was documented with a definition, an anchor example and a coding rule. The draft was tested on [number] further transcripts [and coded independently by a second coder]. Changes were recorded in a change log. Version [number] was applied to the full material, and passages affected by later changes were re-coded. [If applicable: An AI-assisted tool suggested codes and supporting quotes; all coding decisions were reviewed by the researcher.]

See a sample analysis with codebook and verbatim quotes, or try it with your own interviews: three analyses free, no card needed.

Next step

A codebook and verbatim evidence from your interviews, in minutes

Themera codes interviews and open-ended responses following Kuckartz, Mayring or Braun & Clarke. Every code is tied to a verbatim quote, and anything that could not be coded stays visible.

  • Transcription and pseudonymisation before analysis
  • Edit the codebook and re-run
  • 3 analyses free, no card

Pricing

  • Free€0

    3 analyses, 30 transcription minutes

  • Thesis€69

    once, 90 days, no subscription

  • Solo€39

    per month, cancel any month

Stored and processed in the EU (Mistral AI, Paris). No training on your data, DPA available.

Free, no sign-up

Codebook generator →

Enter your research question, get categories with coding rules and anchor examples.

Free, no sign-up

Cohen's kappa calculator →

Agreement, chance agreement and confidence interval, with an APA-style sentence.