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

How to create a codebook: structure, example, and five mistakes reviewers notice

Category, definition, anchor example, coding rule: how a codebook for qualitative content analysis is structured, an example table, the five most common mistakes, and how to test it beforehand.

codebookqualitative content analysismethodology

The codebook is the document that reviewers open first when assessing a qualitative content analysis. In two minutes, they can see whether the analysis was rule-based or merely described as such. Yet in many projects, the codebook is only created at the end, retroactively derived from the finished results section—and it reads exactly like that.

This article explains what a codebook consists of, what a useful example looks like, the five mistakes that cause it to fail in review, and how to test it before coding your entire dataset.

The four components

Mayring describes the codebook with four columns. Kuckartz uses a similar structure and additionally emphasizes the distinction from other categories. For a thesis, these four components are sufficient:

  1. Category: a short, descriptive name.
  2. Definition: precisely what falls under this category—phrased so that another person can apply it without asking for clarification.
  3. Anchor example: a verbatim excerpt from your data that typically represents the category.
  4. Coding rule: how to decide in borderline cases, especially when distinguishing from adjacent categories.

An example

Suppose you have interviewed employees about their experiences with hybrid work. A section of the codebook might look like this (the quotes are fictional for this example):

CategoryDefinitionAnchor exampleCoding rule
Blurring boundariesStatements about work encroaching on private life in terms of time or space."The laptop is in the living room, so I end up checking it in the evening anyway." (B3, line 41)Only if the encroachment is explicitly described. General statements about workload → Workload.
Lack of informal exchangeStatements about the loss of unplanned conversations with colleagues."Before, you’d pick up on things at the coffee machine. That’s completely missing now." (B7, line 112)Planned meetings and coordination → Formal communication.
Increased autonomyStatements about greater self-determination in terms of time, place, or work methods."I can structure my day in the way that works best for me." (B1, line 18)If autonomy is described as burdensome in the same sentence, assign both categories.

The source reference after the anchor example (interview, line number) is small, but it makes all the difference: anyone who sees it can verify the quote, and this alone increases confidence in the entire codebook.

Five mistakes that cause codebooks to fail

1. The definition merely repeats the name

"Blurring boundaries: statements about blurring boundaries." This is not a definition. The test: could someone unfamiliar with your work use this definition to unambiguously assign an external text passage? If not, something is missing.

2. The anchor example is paraphrased

An anchor example must be a verbatim excerpt from the data. A smoothed or summarized version is an interpretation, not evidence—and it cannot be verified. This is also where AI tools can be risky if not checked: a language model might generate a "typical" quote that was never actually said.

3. Adjacent categories lack clear boundaries

Almost every category system has two categories that overlap. Without a coding rule, you decide borderline cases based on mood, and the frequencies in the results section become arbitrary. A single line per category stating "this does not belong here, but there" prevents this.

4. "Miscellaneous" becomes the largest category

A residual category is legitimate. But if a quarter of the data ends up there, a category is missing—or the selection criterion was too broad. Review what is in "Miscellaneous" before finalizing the codebook.

5. The level of abstraction varies

"Stress" and "time pressure due to shortened handover periods" cannot be at the same level in the same system. Either one is a subcategory of the other, or you must choose a single level of abstraction. How to establish and document this is explained in the article Inductive or deductive coding?

Test the codebook before coding everything

First, code a portion of the data—typically between 10 and 50 percent—and then revise the codebook. Common changes in this round: refining definitions, merging two categories, or adding a coding rule because a borderline case appeared three times.

Document what you changed and why. One sentence per change is enough. This is exactly the kind of documentation reviewers ask for in a defense: "How did your category system evolve during the analysis?"

If a second person codes a portion of the data using your codebook, you can calculate the agreement. In content analysis, this is an accepted quality criterion—and the toughest test of whether your definitions are truly unambiguous.

Where the codebook belongs in your thesis

  • Methods section: structure of the codebook, origin of the categories (deductive, inductive, or both), scope of the trial coding, and nature of the revisions.
  • Appendix: the complete codebook with all categories, definitions, anchor examples, and coding rules.
  • Results section: the categories as a structure—not the codebook repeated in prose.

And with AI?

An AI tool can usefully prepare the first draft of a codebook: suggesting categories with definitions and anchor examples from the data. Two things remain your responsibility: the coding rules, because they involve decisions about your research question, and verifying that every anchor example is verbatim from the data.

Themera enforces the second point technically: any evidence that does not appear exactly as it does in the data is rejected. The rest—merging categories, renaming them, refining definitions, and re-coding the data with the revised version—you do in the same tool. How this fits into the workflow of a Mayring analysis is shown in the article Qualitative content analysis according to Mayring with AI.

Conclusion

A good codebook is concise, verbatim, and unambiguous at the boundaries. It is created before the main coding, tested on a portion of the data, and then finalized. Those who do this address the most common reviewer questions before they are even asked.

View example analysis—with categories, definitions, and verbatim evidence—or test with your own data: three analyses free, no credit card required.

This article was translated from German with the help of AI. Read the original

Next step

From your material to a codebook with definitions and anchor examples

Themera drafts a codebook from your interviews, with a definition, anchor example and boundary for each code, and codes the whole dataset. You rename, merge and re-run.

  • Inductive or deductive; Kuckartz, Mayring or Braun & Clarke
  • Quotes not found word for word in the material are rejected
  • 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.