How to Code Qualitative Data: Inductive, Deductive and Saldaña’s Cycles
Reviewed by Prof. Dr. Alexander Holtermann · Updated 16 October 2026 · 7 min read
Coding means labelling segments of qualitative data with short codes. You code inductively or deductively, then group codes into categories in a second cycle.
Key takeaways
- A code is a short word or phrase that captures the essence of a data segment. Coding is the bridge between raw data and categories, themes or theory.
- Inductive coding builds codes from the data; deductive coding applies codes defined in advance from theory or your research question. Most dissertations combine both.
- Saldaña distinguishes first cycle coding (initial labels such as descriptive, in vivo or process codes) and second cycle coding (pattern or focused coding that organises codes into categories).
- Write analytic memos while coding: they document your thinking and are the raw material for your findings chapter.
- Code the whole dataset at least twice, keep code names consistent and document every change in a codebook.
What does coding mean in qualitative research?
In qualitative research, a code is, in Saldaña’s widely used definition, most often a word or short phrase that symbolically assigns a summative, salient, essence-capturing attribute to a portion of data. Coding is the process of attaching such labels systematically to your interview transcripts, field notes or documents so that you can retrieve, compare and organise what participants said.
Coding is not the analysis itself, but it is the foundation of almost every qualitative method: thematic analysis, qualitative content analysis, grounded theory and framework analysis all start with coding, even if they use different terms. What differs is how open the coding is, whether codes are fixed in advance and what you do with the codes afterwards.
Running example: you interviewed 12 first-generation students about belonging at university. Your research question is: how do first-generation students develop (or fail to develop) a sense of belonging in their first year?
Inductive vs deductive coding
Inductive coding (also data-driven or bottom-up) means you develop codes from the material itself, without a predefined list. It suits exploratory questions and approaches such as grounded theory and conventional content analysis. Deductive coding (concept-driven or top-down) means you start with a list of codes derived from theory, previous studies or your interview guide and assign data to them. It suits directed content analysis, framework analysis and studies that test or extend existing models.
In practice most student projects use a hybrid approach: you start with a few deductive main codes from your interview guide and add inductive subcodes as new aspects appear. Say so explicitly in your methodology chapter.
| Inductive coding | Deductive coding | |
|---|---|---|
| Starting point | The data | Theory, literature, interview guide |
| Codebook | Develops during coding | Defined before coding, then refined |
| Risk | Getting lost in hundreds of codes | Overlooking what does not fit the theory |
| Example code | “going home every weekend to stay sane” | “social belonging” (from a belonging model) |
First cycle coding methods (Saldaña)
Saldaña’s *Coding Manual for Qualitative Researchers* describes more than 30 coding methods. You do not need all of them. Choose one or two first cycle methods that fit your research question and name them in your methods section. The most common in dissertations are listed below.
| Method | What you label | Example from the belonging study |
|---|---|---|
| Descriptive coding | The topic of a passage, usually a noun | “Office hours” |
| In vivo coding | The participant’s own words, in quotation marks | “I felt like a tourist on campus” |
| Process coding | Actions and processes, using gerunds (-ing words) | “Hiding financial worries from friends” |
| Initial (open) coding | Anything potentially relevant, line by line, as in grounded theory | “Comparing self with privately educated peers” |
| Emotion coding | Feelings expressed or inferred | “Shame”, “relief” |
| Values coding | Values, attitudes and beliefs | “Education as repaying parents” |
| Structural coding | Segments answering a particular interview question | “Q3: first week experiences” |
Second cycle coding: from codes to categories
After first cycle coding you may have 100 to 300 codes. Second cycle coding reorganises them into a smaller number of categories, themes or concepts. Saldaña describes methods such as pattern coding (grouping similar codes into meta-codes), focused coding (selecting the most frequent or significant codes, as in Charmaz’s grounded theory), axial coding (relating categories to subcategories and specifying their properties) and theoretical coding (integrating categories around a core concept).
At this stage you compare codes, merge duplicates, split codes that are too broad and build a hierarchy of parent and child codes. Our free coding tool at /codieren supports this with parent and child codes and a code matrix that shows which codes appear in which interviews.
- Merge synonyms: “paid work” and “part-time job” become one code
- Group related codes under a parent code: “Time poverty” with “paid work”, “commuting”, “caring responsibilities”
- Look for relationships: does time poverty lead to missing informal social events, which in turn weakens social belonging?
- Check negative cases: participants whose accounts contradict the pattern
Analytic memos: thinking on paper
An analytic memo is a short note in which you reflect on a code, a participant, a pattern or your own role. Memos are where interpretation happens. Saldaña and Charmaz both treat memo writing as essential, not optional. Write memos while you code, date them and link them to the relevant codes or segments.
Good memos ask questions: why does P04 frame asking for help as a sign of failure? Is this pattern the same for students who live at home? What do I, as a researcher, expect to find, and how could that shape my coding? Later, your memos become the first drafts of paragraphs in the findings chapter.
Practical decisions: units, lumping, splitting, rounds
Before you start, decide on your coding unit. Most students code meaningful segments (a sentence to a paragraph) rather than single words or entire answers. Code enough context that a quote still makes sense when retrieved on its own.
Saldaña describes two styles: lumpers apply one code to a larger passage, splitters code line by line with many fine-grained codes. Splitting produces richer but more numerous codes; lumping is faster but can miss nuance. Both are legitimate; be consistent.
- Round 1: code all interviews with first cycle methods
- Round 2: recode with the revised code list and check consistency across interviews
- Round 3: second cycle coding to categories or themes
- Throughout: update your codebook with definitions and examples for every code
- Your supervisor or department may prescribe a specific coding procedure: follow your university’s guidelines (you can upload them to Professor Digital)
How to describe your coding in the methodology chapter
Examiners look for transparency: what did you do, in what order and why? A concise description might read: “Coding followed a hybrid approach. Deductive codes were derived from the interview guide; inductive codes were developed through descriptive and in vivo coding (Saldaña, 2021). In a second cycle, pattern coding was used to group 164 initial codes into 18 categories. Analytic memos documented decisions throughout.” Then provide the codebook and an example of a coded transcript excerpt in the appendix.
Frequently asked questions
What is the difference between inductive and deductive coding?
Inductive codes are developed from the data itself; deductive codes are defined in advance from theory or the research question and then applied. Many studies combine both.
How many codes should I have?
After first cycle coding, 80 to 250 codes are common for 10 to 15 interviews. Second cycle coding should reduce them to roughly 15 to 30 categories and a handful of themes or main categories.
What are first and second cycle coding?
In Saldaña’s terms, first cycle methods assign initial codes to data segments (for example descriptive, in vivo or process coding); second cycle methods such as pattern or focused coding organise these codes into categories, themes or concepts.
Can I code qualitative data without special software?
Yes. Paper and highlighters, a spreadsheet or a free browser tool such as /codieren all work for 10 to 15 interviews. Software helps with retrieval and organisation but does not do the analysis.
What is in vivo coding?
In vivo coding uses a participant’s own words as the code, written in quotation marks, for example “I felt like a tourist on campus”. It keeps the analysis close to participants’ language.
Which software should I use to code qualitative data?
NVivo, ATLAS.ti and MAXQDA are the most widely licensed packages; Dedoose works in the browser; Taguette and QualCoder are free and open source; /codieren is a free browser tool. Choose what your university licenses or your team uses.
Sources and further reading
- Saldaña, J. (2021). The Coding Manual for Qualitative Researchers (4th ed.). Sage.
- Charmaz, K. (2014). Constructing Grounded Theory (2nd ed.). Sage.
- Braun, V., & Clarke, V. (2022). Thematic Analysis: A Practical Guide. Sage.
Your university’s examination regulations and style guide always take precedence.
Related articles
- CodebookA codebook lists every code with a name, definition, inclusion and exclusion criteria and examples, so that coding is consistent and transparent.
- Thematic analysisThematic analysis finds patterns of shared meaning (themes) in qualitative data. Braun and Clarke describe six recursive phases from familiarisation to report.
- Qualitative content analysisQualitative content analysis systematically codes text into categories. Hsieh and Shannon distinguish conventional, directed and summative approaches.
- Grounded theoryGrounded theory develops a theory from data through constant comparison, open and axial coding, memo writing and theoretical sampling until saturation.
- QDA softwareQDA software helps you organise, code, retrieve and compare qualitative data. It does not analyse for you; for small projects, free tools can suffice.
- QDA software comparedNVivo, ATLAS.ti and MAXQDA are full-featured QDA packages, Dedoose runs in the browser, Taguette and QualCoder are free. Choose by data, team and licence.