Copperplate
Qualitative research guide

Thematic Coding and Thematic Analysis: A Step-by-Step Guide

Thematic coding is how qualitative researchers label meaningful features of their data and build those labels into themes. This guide follows Braun and Clarke's six phases, with a worked coded excerpt, a codebook template and NVivo tips.

Research Methods7 min readUpdated Copperplate editorial team

In brief

  • Thematic coding labels segments of data with codes; thematic analysis develops those codes into themes that answer your research question.
  • Braun and Clarke's six phases run from familiarization to writing up, and you move back and forth between them.
  • In reflexive thematic analysis, themes are patterns of shared meaning that the researcher actively constructs; they do not simply emerge.
  • Inductive coding starts from the data; deductive coding starts from existing theory or questions.
  • Software such as NVivo organizes coding but does not do the analysis for you.

What is thematic coding?

A code is a label for a piece of data. A theme is a claim about what the data mean.

Thematic coding is the process of assigning short labels (codes) to segments of qualitative data, such as interview transcripts, that capture something relevant to your research question. Codes are then compared, grouped and refined into broader themes. Thematic coding is the core activity of thematic analysis, a method for identifying, analyzing and reporting patterns of meaning across a dataset.

Thematic analysis was set out as a distinct method by Virginia Braun and Victoria Clarke in their 2006 paper "Using thematic analysis in psychology", one of the most cited methods papers in the social sciences. It is flexible: it is not tied to one theory, and it works with interviews, focus groups, open survey responses, diaries and documents.

Thematic analysis in qualitative research: three main approaches

Braun and Clarke now emphasize that "thematic analysis" covers a family of methods with different assumptions. They distinguish three broad types:

ApproachHow coding worksExamples
Coding reliability TAA structured codebook applied by several coders; agreement measured (for example, Cohen's kappa)Boyatzis; Guest and colleagues
Codebook TAA codebook or framework developed early, but interpretation remains qualitativeTemplate analysis; framework analysis
Reflexive TAOpen, organic coding by the researcher; subjectivity treated as a resource; no inter-rater reliabilityBraun and Clarke

In reflexive thematic analysis, a theme is a pattern of shared meaning underpinned by a central organizing concept. A theme is not a topic heading such as "experiences of workload" that collects everything participants said about workload. Name the approach you used in your methods section and keep your procedures consistent with it. Mixing reflexive TA with inter-rater reliability scores is a common reviewer criticism.

Braun and Clarke's six phases of thematic analysis

The phases were first published in 2006 and renamed slightly in Braun and Clarke's later work, including their 2021 book Thematic Analysis: A Practical Guide. The process is recursive: you will loop back to earlier phases.

PhaseCurrent name (2006 name)What you do
1Familiarization with the data (Familiarizing yourself with your data)Transcribe or check transcripts, read and reread, make notes on initial ideas
2Coding (Generating initial codes)Work systematically through the whole dataset, labeling anything relevant to the research question
3Generating initial themes (Searching for themes)Cluster codes that share a core idea into candidate themes; draft a thematic map
4Developing and reviewing themes (Reviewing themes)Check themes against coded extracts and the full dataset; merge, split or discard
5Refining, defining and naming themes (Defining and naming themes)Write a short definition of each theme's central concept and its boundaries; choose a clear name
6Writing up (Producing the report)Weave analytic narrative with vivid data extracts and connect to literature and the research question

Keep a reflexive journal from phase 1 onward. A dated record of your decisions is the simplest way to show rigor to supervisors and peer reviewers.

Qualitative Data Analysis

Working on thematic analysis? Get guidance from a qualitative researcher who reviews your codes and themes with you.

See how it works

Inductive vs deductive coding

Inductive coding (bottom-up) builds codes from the data themselves, without a pre-set frame. It suits exploratory questions and is the usual starting point for inductive thematic analysis. Deductive coding (top-down) applies concepts from existing theory, previous research or your interview guide. Many projects combine the two: a few theory-driven codes plus new codes from the data.

Braun and Clarke also distinguish semantic codes, which capture what participants explicitly say, from latent codes, which interpret underlying assumptions or ideas. Analysis that stays entirely semantic risks becoming description rather than interpretation.

For example, in the night-shift study below, a deductive code drawn from the job demands-resources model might be "lack of recovery time", while an inductive code from the data might be "texting my partner like a flatmate". Both can sit in the same analysis, as long as you report where each came from.

Other types of coding in qualitative research

Saldaña's The Coding Manual for Qualitative Researchers describes many coding methods. Common first-cycle methods include descriptive coding (topics), in vivo coding (participants' own words), process coding (actions, using gerunds) and values coding. Pattern coding is a common second-cycle method that groups first-cycle codes.

Codes vs themes

CodeTheme
ScopeOne specific idea in a segment of dataA broader pattern across many codes and participants
FormA short label, often a few wordsA named central concept with a definition
RoleBuilding blockAnalytic claim that answers the research question
NumberDozens to hundredsUsually two to six in a report
Example"Answering emails at night""Work leaks into every hour"
Thematic analysis codebook template
CODEBOOK
Project: 
Approach: [reflexive TA / codebook TA / coding reliability TA]
Research question: 
Version and date: 

THEME: [name]
  Central organizing concept: [one or two sentences]
  Boundaries: [what this theme includes and excludes]

  Code 1: [short label]
    Definition: [what the code captures]
    Type: [inductive / deductive; semantic / latent]
    Include when: 
    Exclude when: 
    Example extract: "..." (P__, line __)
    Analytic memo: [ideas, links to other codes]

  Code 2: [short label]
    Definition: 
    Type: 
    Include when: 
    Exclude when: 
    Example extract: "..." (P__, line __)
    Analytic memo: 

CHANGE LOG
  [date] [code merged / split / renamed / dropped] [reason]

Note: in reflexive TA, treat this as a living record of your coding rather than a fixed instrument for measuring agreement.

Thematic analysis example: a coded excerpt

Imagine an interview study with early-career nurses about working night shifts. Here is one short extract and how it might be coded.

Interview excerpt (Participant 7)

"When I started nights, I thought I'd get used to it in a month. I didn't. [1] I sleep in pieces, three hours here, two hours there. [2] My partner works days, so we basically text each other like flatmates. [3] And you can't really complain on the ward, because everyone's tired, and you don't want to be the one who can't cope."

Codes

  • [1] Fragmented sleep (semantic); expectation of adaptation not met (latent)
  • [2] Relationship reduced to logistics (latent); out of sync with partner (semantic)
  • [3] Silencing own distress (latent); fear of appearing incompetent (latent); fatigue as shared norm (semantic)

Candidate theme after coding all transcripts

"Coping quietly": participants treated exhaustion as a private failing to be managed alone, because ward culture framed tiredness as normal and complaint as weakness. Supported by codes from 11 of 14 participants, including silencing own distress, fear of appearing incompetent and self-medicating with caffeine.

Notice that the theme makes an interpretive claim. A topic summary such as "sleep problems" would not.

Reflexivity in thematic analysis

Reflexivity means examining how your own position, assumptions and experience shape what you notice and how you interpret it. In reflexive TA, this subjectivity is part of the method rather than a source of error to remove. In practice:

  • write a short positionality statement before analysis begins;
  • keep a reflexive journal of reactions, hunches and decisions during coding;
  • discuss codes and themes with a supervisor or colleague to deepen interpretation, not to reach numerical agreement;
  • report in your methods how your perspective may have influenced the analysis.

For a full methods chapter that explains your approach clearly, our research methodology examples show how to justify qualitative choices.

Thematic coding in NVivo: practical tips

NVivo, from Lumivero, is widely used qualitative coding software. Since NVivo Release 1 (2020), what used to be called "nodes" are called codes.

  1. Import your data through the Import tab (Files). Transcripts with consistent speaker labels are easier to code; our transcription service can prepare them.
  2. Code as you read. Select text, then drag it onto a code or right-click and choose Code. Create codes freely in phase 2; tidy them later.
  3. Use memos and annotations for your reflexive notes and initial ideas, linked to the source.
  4. Turn on coding stripes to see which codes sit on each passage and to check consistency.
  5. Build candidate themes by grouping codes into a hierarchy, with the theme as the parent code.
  6. Use cases and classifications to store participant attributes, then run a Matrix Coding Query or Crosstab to compare groups.

ATLAS.ti, MAXQDA and the free tool Taguette offer similar functions. Auto-coding features can suggest topics, but they cannot interpret meaning. If you want an experienced qualitative researcher to review your codes and themes with you, see our qualitative data analysis support.

Sources and further reading

  1. Braun V, Clarke V. Using thematic analysis in psychology. Qualitative Research in Psychology 2006;3(2):77-101
  2. Braun V, Clarke V. One size fits all? What counts as quality practice in (reflexive) thematic analysis? Qualitative Research in Psychology 2021;18(3):328-352
  3. Thematic Analysis: resources from Virginia Braun and Victoria Clarke
  4. Byrne D. A worked example of Braun and Clarke's approach to reflexive thematic analysis. Quality & Quantity 2022;56:1391-1412
FAQ

Frequently asked questions

What is the difference between thematic analysis and content analysis?

Content analysis often counts how frequently codes or categories occur and can be largely quantitative, while thematic analysis focuses on interpreting patterns of meaning and rarely relies on counts. Qualitative content analysis sits closer to thematic analysis, but it usually stays more descriptive and works with categories rather than interpretive themes.

How many themes should a thematic analysis have?

There is no fixed number. Most journal articles report between two and six themes, sometimes with subthemes. Fewer, well-developed themes with clear central concepts are stronger than a long list of thin ones. Check that each theme answers your research question and is distinct from the others.

Should I calculate inter-rater reliability in thematic analysis?

It depends on the approach. Coding reliability TA uses inter-rater reliability. Braun and Clarke argue that it does not fit reflexive TA, where coding is interpretive and the researcher's perspective is a resource. If you use reflexive TA, describe how you discussed and refined codes instead of reporting a kappa statistic.

How do I describe thematic analysis in my methods section?

Name the specific approach (for example, reflexive thematic analysis following Braun and Clarke), state whether coding was inductive, deductive or both, and whether codes were semantic or latent. Describe how you moved through the phases, what software you used, who coded the data, how codes and themes were reviewed, and how you practiced reflexivity. Cite the sources your approach follows.

What is the best software for thematic analysis?

NVivo, ATLAS.ti and MAXQDA are the most widely used. Taguette and QualCoder are free alternatives, and small projects can be coded well in Word or a spreadsheet. Choose software your institution supports and that you can learn quickly; the quality of the analysis depends on your thinking, not the tool.

What is the Braun and Clarke 2006 reference?

Braun, V., & Clarke, V. (2006). Using thematic analysis in psychology. Qualitative Research in Psychology, 3(2), 77-101. If you use reflexive TA, also cite their more recent work, such as their 2021 book, because the method has developed since 2006.

Contact us

Want an expert to
read it with you?

If you are working on this right now, an editor can review your draft and explain every change. Start with a quote for qualitative data analysis.

Need a full quote with your file? Use the quote form
WhatsApp