Inductive vs. deductive coding: differences, examples and which to use
Coding is the heart of thematic analysis, and your methods section has to say how you did it. There are two broad approaches, and most real studies use a mix of both. This guide explains each one, codes the same interview excerpt both ways so you can see the difference, and gives you wording for your methods chapter.
The short answer
Inductive coding builds codes from the data itself, bottom-up, without a list decided in advance. Deductive coding applies codes you decided before you started, taken from a theory, a framework or an earlier study. Hybrid coding does both: you start with a framework and add new codes when the data shows something it doesn't cover.
Coding your own transcripts?
Let the data suggest codes, or bring your own codebook. Each code links to its quote. Free for up to 3 transcripts.
Inductive vs. deductive coding at a glance
| Aspect | Inductive | Deductive |
|---|---|---|
| Starting point | Your data | A theory, framework or earlier study |
| Codebook | Built as you code, and changes as you go | Written before coding starts |
| Direction | Bottom-up | Top-down |
| Best for | Exploratory questions and under-researched topics | Testing or applying a theory, and comparing with earlier studies |
| Main strength | Finds patterns you didn't know to look for | Fast, consistent and easy to compare |
| Main risk | Codes multiply and drift | Missing anything the framework doesn't cover |
| Typical question | “How do night-shift nurses experience rest days?” | “How do night shifts affect nurses' autonomy, competence and relatedness?” |
Inductive coding (data-driven)
In inductive coding you start without a list of codes. You read a transcript, label what each relevant passage is about in your own words, then compare those labels across participants, merging some and splitting others. The codebook is an output of the analysis, not an input. It is the usual choice for exploratory questions and for synthesising findings across studies, because it surfaces patterns you didn't know to look for.
“Inductive” does not mean theory-free. Braun and Clarke point out that researchers can't step outside their theoretical and epistemological commitments, so even data-driven coding is shaped by what you already know and believe (Braun & Clarke, 2006). That is why examiners prefer “predominantly inductive” to “purely inductive”, and why a reflexivity statement matters so much in an inductive study.
The trade-off is consistency. Without a fixed scheme, codes can multiply and drift, especially across a long coding period or between coders. Keep a short definition for each code as you go, and revisit early transcripts once your codes have settled.
Deductive coding (theory-driven)
In deductive coding you bring a codebook to the data: a set of codes, each with a definition, taken from a theory, a framework or an earlier study. You then read the data looking for passages that fit each code. Braun and Clarke call this “theoretical” thematic analysis. It is fast, consistent and comparable across datasets, which suits studies that apply or test a theory, and teams where several people code the same data.
The risk is tunnel vision. A framework can only find what it was designed to find, so anything outside it goes unrecorded. Good deductive studies keep a note of data that didn't fit any code and report it, because examiners will ask. Our guide to building a codebook shows what each entry should contain.
One excerpt, coded both ways
Here is an invented excerpt from an interview with a nurse about working night shifts:
“Honestly, after a run of nights I don't really talk to anyone. My partner's asleep when I get in and at work by the time I'm up. The rota comes out two weeks before, so I can't plan anything. I just say no to everything. The only people who get it are the other night staff; we have a group chat that's basically keeping me sane.”
The inductive codes describe what the participant said in the researcher's own words. The deductive codes apply Self-Determination Theory, which proposes three basic needs: autonomy, competence and relatedness (Deci & Ryan, 2000).
| Excerpt | Inductive code | Deductive code (SDT) |
|---|---|---|
| “after a run of nights I don't really talk to anyone. My partner's asleep when I get in” | Living out of sync with family | Relatedness (thwarted) |
| “The rota comes out two weeks before, so I can't plan anything” | Rota published too late to plan around | Autonomy (thwarted) |
| “I just say no to everything” | Withdrawing from social life | Autonomy (thwarted) |
| “we have a group chat that's basically keeping me sane” | Night-shift group chat as a lifeline | Relatedness (supported) |
Three things stand out. First, the inductive codes are more specific: “rota published too late to plan around” is a practical finding a manager could act on, while the deductive code files it under the broader “autonomy”. Second, the deductive codes connect straight to theory, so your discussion chapter can compare them with other SDT studies. Third, nothing in this excerpt fits “competence”. In deductive coding, a code with little or no data is a finding in its own right, and worth reporting.
Which should you use?
Let your research question decide. If it names a theory, you are already working deductively. If it asks what people experience in an area with little research, start inductively.
| If… | Use |
|---|---|
| Your question asks what people experience, and little has been written on it | Inductive |
| Your question names a theory or framework, or your supervisor asked you to use one | Deductive |
| You want to compare your findings with a specific earlier study | Deductive, using that study's codes |
| Your question is exploratory, but your field expects you to engage with a framework | Hybrid |
| Several people are coding and need to agree on what each code means | Deductive or hybrid, with a shared codebook |
| You are doing a literature review and want themes across studies | Usually inductive (as in thematic synthesis) |
Hybrid coding: how most studies actually do it
Few analyses are purely one or the other. Braun and Clarke describe orientation to data as a spectrum rather than a choice between two boxes, and expect you to say where your study sits on it (Braun & Clarke, 2021). A well-known hybrid approach, from Fereday and Muir-Cochrane (2006), works like this:
- Write a starting codebook from your framework, with a definition for each code.
- Code the data against it.
- Add a new, data-driven code whenever a passage matters to your question but fits none of the existing codes.
- Review both kinds of code together when you build themes, and report which codes came from the framework and which came from the data.
In the night-shift example, a hybrid analysis would keep the three SDT needs and add “rota published too late to plan around” as a new code, because it is too specific and too useful to lose inside “autonomy”.
Don't confuse it with semantic vs. latent coding
Inductive vs. deductive is about where your codes come from. Semantic vs. latent is about how deep you read: semantic codes stay close to what participants said, while latent codes interpret the assumptions underneath. The two are separate choices (Braun & Clarke, 2006). “Living out of sync with family” is inductive and semantic. Reading “I just say no to everything” as evidence that the participant sees night work as incompatible with a normal identity would be inductive and latent. Your methods section should state both choices.
How to describe it in your methods section
Name the approach, say why it suits your question, and say what you did with data that didn't fit. Adapt one of these:
Inductive: “Coding was predominantly inductive: codes were developed from the data rather than from a predefined framework, as little previous research has examined [topic]. Code definitions were refined throughout, and early transcripts were recoded once the codebook had stabilised.”
Deductive: “Coding was deductive, using a codebook derived from [theory] (Author, year). Data that did not fit any code were recorded separately and are reported in [section].”
Hybrid: “A hybrid approach was used (Fereday & Muir-Cochrane, 2006). An initial codebook was drawn from [framework], and new codes were added inductively where data relevant to the research question fell outside it. Codes of each type are identified in Appendix [X].”
Avoid writing that themes “emerged” from the data. In reflexive thematic analysis you develop themes; they don't appear on their own. Our guide to Braun & Clarke's thematic analysis explains why.
Common mistakes
- Claiming to be purely inductive. Your reading is always shaped by what you know. Say “predominantly inductive” and explain your standpoint.
- Hiding data that doesn't fit. In deductive coding, passages outside the framework are often the most interesting part. Report them.
- Using a codebook with no definitions. A list of code names isn't a codebook. Each code needs a definition and an example so it is applied the same way every time.
- Not saying which approach you used. Leaving it out makes your coding look arbitrary, and it is one of the first things an examiner checks.
Frequently asked questions
Is thematic analysis inductive or deductive?
It can be either, or a mix. Thematic analysis is a method, not a fixed approach to coding, so you choose where your study sits and say so in your methods section.
Is reflexive thematic analysis inductive?
It is often mostly inductive, but it doesn't have to be. Braun and Clarke allow reflexive TA to lean inductive or deductive, as long as you are open about the choice and about your own role in shaping the codes.
What is an example of deductive coding?
Coding interview data against the three needs in Self-Determination Theory (autonomy, competence and relatedness), as in the example above. Other common frameworks include the Theoretical Domains Framework and the codes from a published study you want to compare with.
Can I switch approach partway through?
Yes, and many studies do, usually by adding inductive codes to a deductive codebook. Record when and why you changed, and describe it in your methods section as a hybrid approach.
Doing either with the analysis tool
The thematic analysis tool codes your data inductively by default, with the verbatim quote behind every code. To code deductively, paste or upload your codebook. Your codes are applied on top of the tool's own (hybrid), or you can choose to use only your codes (strict deductive). Either way, you get a first pass to review and refine, not a finished analysis.
See how the AI thematic analysis tool handles both, or compare qualitative data analysis software if you are still choosing a program.
References
- Braun, V. and Clarke, V. (2006). Using thematic analysis in psychology. Qualitative Research in Psychology, 3(2), pp.77–101. doi:10.1191/1478088706qp063oa
- Braun, V. and Clarke, V. (2021). One size fits all? What counts as quality practice in (reflexive) thematic analysis? Qualitative Research in Psychology, 18(3), pp.328–352. doi:10.1080/14780887.2020.1769238
- Deci, E.L. and Ryan, R.M. (2000). The “what” and “why” of goal pursuits: human needs and the self-determination of behavior. Psychological Inquiry, 11(4), pp.227–268. doi:10.1207/S15327965PLI1104_01
- Fereday, J. and Muir-Cochrane, E. (2006). Demonstrating rigor using thematic analysis: a hybrid approach of inductive and deductive coding and theme development. International Journal of Qualitative Methods, 5(1), pp.80–92. doi:10.1177/160940690600500107