In this guide
The short versionWhat is a code?Before you codeTypes of first-cycle codesA worked exampleCoding in passesBuild a codebookWrite memos as you goCommon mistakes and how to fix themHow long does coding take?Coding checklistCoding in TralyxFrequently asked questionsHow to code an interview transcript
Learn qualitative coding with a worked example: descriptive, in vivo and process codes, building a codebook, writing memos, and common mistakes.
Part of the series: Qualitative data analysis: a step-by-step guide
The short version
- Coding means giving short labels to parts of a transcript so you can compare them.
- Read first, then code in passes, keep a codebook and write memos.
- A code names what a passage is about or shows.
- A theme is bigger and comes later.
What is a code?
A code is a word or short phrase that labels a piece of data, such as a sentence or a paragraph of a transcript. It works like a keyword for an article. Once passages carry codes, you can pull together everything about one idea from every interview and compare it.
A code is not a finding, and it is not a theme. Saldaña, whose Coding Manual is the standard reference, describes coding as a way to get from raw data to categories and ideas, in more than one pass.
Before you code
- Read the whole transcript once without coding. Listen to the audio if someone else transcribed it. Note your first impressions in a few lines.
- Write your research questions at the top of your working document. They keep you from coding everything that is merely interesting.
- Choose your approach. Inductive coding builds codes from the data. Deductive coding starts from codes taken from a theory or earlier work. Many studies mix the two.
- Decide who codes. One person can code alone. If two or more people code, agree on a starting codebook and compare a sample of transcripts early.
Types of first-cycle codes
Saldaña describes many coding methods. These four cover most interview studies:
| Method | What the code is | Example label | Use it when |
|---|---|---|---|
| Descriptive | A noun or short phrase naming the topic | storing recordings | You need a clear map of what the data covers |
| In vivo | The participant's own words | "I never let it leave my laptop" | You want to keep their voice and language |
| Process | A verb ending in -ing for actions | double-checking consent | The data is about actions and how they unfold |
| Initial (open) | A first-pass label, any kind, line by line | worry about being overheard | You're exploring and don't want to decide too soon |
A worked example
Here is an invented excerpt from an interview with a researcher about handling recordings. It shows how one passage can carry different kinds of code.
P03I used to upload everything to a transcription site because it was quick. Then a participant asked me where the recording actually went, and I couldn't answer. I felt awful. Now I keep everything on my own laptop, and I tell people that up front.
- Descriptive code
- changing how recordings are handled. It names what the passage is about.
- In vivo code
- "I couldn't answer". It keeps the participant's own words for a turning point.
- Process code
- telling participants up front. It captures an action.
- Interpretive code
- accountability to participants. This is your reading of why it matters, and it can come in a later pass.
Notice that none of these codes is a finding. Each one points to a passage. Later you'll compare "changing how recordings are handled" across interviews to see what links them.
Coding in passes
- First pass: label as you read. Stay close to the data. Don't worry about perfect names. Use short descriptive, in vivo or process codes.
- Second pass: tidy. Merge codes that mean the same thing. Split any code that covers two ideas. Rename vague codes such as "issues".
- Third pass: group. Collect related codes under broader headings, and ask what connects them. Saldaña calls this second-cycle work, using methods such as pattern or focused coding.
- DataWhat people said“I couldn’t answer.”
- CodesShort labels on passagesunable to answer a participant
- CategoriesRelated codes groupedaccountability to participants
- ThemeAn idea that answers your questionI have to be able to answer for where the recording goes

Take a break between passes. A day away often shows you things you missed.
Build a codebook
A codebook is a list of your codes with a definition and an example for each. It keeps your meaning stable over weeks of work and lets a second coder apply the codes the same way.
| Field | What to write | Example |
|---|---|---|
| Code name | Short and specific | changing how recordings are handled |
| Definition | One or two sentences on what it covers | The participant describes altering how they store or send recordings. |
| Include / exclude | What counts and what doesn't | Exclude: plans they haven't acted on |
| Example | A short quote that fits | "Now I keep everything on my own laptop." |
Write memos as you go
A memo is a short note to yourself about an idea, a doubt, or a link between codes. Date it and write it the moment the thought appears. Analysis happens in memos, and they give you a record of how your thinking moved.
- Methodological memo: "I coded P03 line by line but P04 by paragraph. Recode P04 the same way."
- Analytic memo: "Two people mention a participant's question as the moment they changed. Is that a turning point pattern?"
- Reflective memo: "I expected people to say speed was the reason. Why did I assume that?"
Common mistakes and how to fix them
| Mistake | What goes wrong | Fix |
|---|---|---|
| Too many codes too early | Hundreds of one-off labels that never combine | Merge as you go; aim for fewer, clearer codes |
| Vague codes like "problems" | You can't tell what's inside it later | Name the specific problem |
| Calling a code a theme | The analysis stays a list of topics | Treat themes as a later step built from codes |
| Coding only what you expected | You miss surprises and contradictions | Code negative cases and oddities on purpose |
| No link back to the quote | You can't support your claims | Keep the exact passage attached to every code |
| Never revisiting early transcripts | Early and late interviews are coded differently | Re-read the first transcripts after your codebook settles |
How long does coding take?
It depends on how much data you have and how deep you go. Many researchers plan at least as much time for analysis as they spent on collecting data. Rushing coding usually costs more later, because weak codes weaken everything built on them.
Coding checklist
- Research questions are written where I can see them.
- I read each transcript fully before coding it.
- Each code has a definition and an example in my codebook.
- I merged duplicate codes and renamed vague ones.
- I coded contradictions and negative cases.
- Every code leads back to an exact passage.
- I wrote memos with dates.
- A second person checked a sample, or I recoded a sample after a break.
Coding in Tralyx
Tralyx is built for this work. Review and code as you read, build a codebook, add memos, and export with your codes and memos to Word, CSV or REFI-QDA. It works on your own computer. Cloud Turbo, our optional faster processing, sends only the files you choose. It's coming soon.
Frequently asked questions
How many codes should I use per transcript?
There's no rule. Early on you may create many; as you merge and refine, the list shrinks. Judge by whether your codes are specific, clear and useful for your questions.
Should I code line by line or by paragraph?
Line-by-line coding gives close detail and suits early exploration. Larger units suit later passes or large data sets. Pick one approach per pass and apply it consistently.
Can one passage have more than one code?
Yes, when it truly says more than one thing. Don't over-apply, though, or your codes will blur.
Should I code the interviewer's questions?
Usually you code the participant's words. Keep the questions visible as context, since what someone says depends on what they were asked.
Should I code by hand or with software?
Both work. Software keeps every code tied to its quote and makes it quick to see all the passages for a code. Paper is flexible and good for small projects.
