← All resources

Thematic Analysis: 6 Steps with Worked Examples

19 min read
Thematic Analysis: 6 Steps with Worked Examples

Thematic analysis is a method for finding patterns of meaning in qualitative data such as interview transcripts, focus group notes, and open-ended survey answers. You do it in six steps: read your data closely, code it, group the codes into candidate themes, review those themes against the data, define and name them, and write them up with quotes as evidence. The method comes from Braun and Clarke's 2006 paper, and it works with or without software.

The hard part is not the steps. It is the volume. Ten interviews can produce tens of thousands of words, every sentence looks important, and it is easy to end up with a pile of quotes sorted by topic instead of an argument. Many first-time analysts also confuse a code, a topic, and a theme, which gives findings that describe the data but explain nothing.

This guide walks through each step with one running example: a small set of interviews about why first-year doctoral students struggle to analyze their own data. You get sample codes, a codebook entry, theme definitions, a review table, and a write-up structure. PlotStudio AI is built for researchers who analyze datasets, and mixed-methods projects often need both kinds of analysis, so the last step also shows how to turn coded themes into counts and figures.

What thematic analysis is and when to use it

Thematic analysis is a qualitative method for identifying, analyzing, and reporting patterns of meaning, called themes, across a dataset. You label segments of text with short codes, group the codes, and interpret what the groups say about your research question. It is one of the most common ways to analyze interviews and focus groups because it is flexible and does not require a specific theory.

What a theme is, and what it is not

A code is a short label for one segment of text. A theme is a pattern of meaning built from several codes around one central idea, and it makes a claim about the data. A topic only names a subject area. "Statistics software" is a topic. "Trusting results without knowing why" is a theme, because it says something about the participants.

The table shows how the levels stack in the running example used throughout this guide.

Level What it is Example from the running study
Data extract Raw text from a transcript "I ran the test my advisor suggested, got a p-value, and then had no idea whether I was allowed to trust it."
Code Short label for the extract Unsure how to check assumptions
Topic Subject area Statistics software
Theme Pattern of meaning with a claim Trusting results without knowing why

The study is invented for illustration: ten interviews of about 45 minutes each, with first-year doctoral students, asking what makes analyzing their own data difficult. Every excerpt below was written for this guide.

A theme is a claim about your data, not a label for a subject area.

When to choose it over other methods

Choose thematic analysis when your question is about experiences, views, or practices and you want to explain patterns across participants. It suits samples of almost any size and does not commit you to building a theory. Other methods answer different questions.

Method Main goal Choose it when
Thematic analysis Find and interpret patterns of meaning You ask about experiences, views, or practices
Content analysis Categorize and count content You need frequencies across a large body of text
Grounded theory Build a theory from the data No explanation exists yet and you can sample iteratively
Interpretative phenomenological analysis Understand how individuals make sense of an experience You have a small, similar sample and want lived-experience depth

Inductive, deductive, and reflexive approaches

In an inductive approach, your codes and themes come from the data itself, with no preset framework. In a deductive approach, you start from a theory or a list of expected categories and look for evidence of them. Most real projects mix both, but you should state which one leads. Codes can also be semantic, staying close to what people said, or latent, capturing the assumptions behind the words.

Braun and Clarke later developed what they call reflexive thematic analysis, and it changes how you talk about your own role. Themes do not "emerge" from the data like fossils from rock. You build them through your questions, background, and choices, so you should record those choices as you go. If you cite the method, the original reference is Braun, V., & Clarke, V. (2006). Using thematic analysis in psychology. Qualitative Research in Psychology, 3(2), 77-101.

Step 1. Read and reread your data

Read every transcript from start to finish before you code anything, and keep notes while you read. This step builds the familiarity that makes later coding faster and more accurate. Skipping it is the most common reason that codes end up fragmented.

Prepare the dataset

Start with a clean, complete record. Transcribe interviews verbatim, including pauses and laughter where they change the meaning, then replace names with participant IDs such as P1 to P10. Number the lines or paragraphs so you can find any extract again. Working from transcripts, not from memory or rough notes, keeps you honest about what people actually said.

Plan your time before you start. A useful rule of thumb is to budget at least as much time for analysis as you spent collecting data. Our ten example interviews produce about 55,000 words of transcript, so a realistic plan is several full days of reading and coding spread over a few weeks, not one weekend.

Read actively and keep memos

Do two passes. On the first, read each transcript straight through without coding, just to get the shape of it. On the second, highlight anything that bears on your research question and write a short memo beside it. Memos are your running notes on what you noticed, what surprised you, and what you assume. They also serve as your audit trail when you write the methods section.

Here are memos from the running example:

  • P3 trusts the p-value only because her advisor suggested the test. Is that borrowed confidence?
  • P7 lists cleaning tasks as if they were a chore nobody warned her about.
  • P4 sounds different from the rest. He mentions a statistician mentor in the first five minutes.
  • My own bias: I expected software to be the main complaint, and most participants barely mention it.

That last memo matters. Writing down what you expected to find makes it much harder to code only what confirms it.

Read all of your data before you code any of it, and write down what you expect to find.

Step 2. Code your data

Coding means attaching a short label to every segment of text that relates to your research question. Work through the whole dataset, line by line, and be inclusive: code anything that might matter, because you can merge or drop codes later but you cannot recover segments you never marked. This is what people mean by thematic coding in qualitative research.

Transcript pages with highlighted lines and margin marks, next to highlighter pens and index cards.

Write descriptive and interpretive codes

A descriptive code says what the segment is about. An interpretive code adds your reading of what is going on beneath it. Start with descriptive codes, because they are quick and consistent, and add interpretive ones as patterns become visible. Both can sit on the same extract.

Extract Descriptive code Interpretive code
P3: "I ran the test my advisor suggested, got a p-value, and then had no idea whether I was allowed to trust it." Unsure how to check assumptions Borrowed confidence
P7: "I spent three weeks cleaning the spreadsheet by hand. Every time I thought I was done I found another column with dates typed three different ways." Manual data cleaning Invisible labor
P5: "My lab mate uses R, my advisor uses Stata, and I was taught SPSS." Mismatched software Locked out of lab norms
P9: "I don't want to bother my advisor again. She already thinks I should know this." Reluctance to ask advisor Fear of looking incompetent
P2: "I was so relieved when the code finally ran that I never went back to check whether the numbers made sense." Code runs, no check Relief replaces verification

Keep code names short, two to five words, and written the same way each time. Aim for specific labels. "Problems" tells you nothing, while "Reluctance to ask advisor" can be compared across ten transcripts.

Keep a codebook

A codebook is a list of every code with a definition and rules for using it. It stops you from creating three codes for one idea, and it lets a second coder or your future self apply codes the same way. Update it as you go, and note when each change was made.

Code: Reluctance to ask advisor
Definition: Participant avoids or delays asking an advisor or lab member for help with analysis.
Include when: Participant describes holding back a question or putting off asking.
Exclude when: Participant says the advisor is unavailable (use "Advisor unavailable").
Example: "I don't want to bother my advisor again." (P9, line 41)
Version note: Added after transcript 3. Narrowed after transcript 6.

Two warnings apply here. Over-coding, where you create hundreds of near-identical labels, buries the patterns. Under-coding, where you tag only memorable quotes, misses the quiet material that often forms a theme. After the first three transcripts, stop and merge duplicate codes before you continue.

Choose manual, spreadsheet, or software coding

Any of these works, and the right one depends on your data volume and team.

  • Paper and highlighters: cheap and tactile, fine for under ten short transcripts, hard to share.
  • A spreadsheet: one row per extract, with columns for participant, line, extract text, and code. It sorts and filters well, but you will need a separate sheet for your codebook.
  • Qualitative software: NVivo, ATLAS.ti, MAXQDA, Dedoose, and Delve keep transcripts, codes, and memos in one place and let you pull every extract for a code in a click. They take time to learn and some need paid licenses.

Code inclusively and define every code in a codebook, because you can merge labels later but you cannot recover segments you skipped.

Step 3. Group codes into candidate themes

Gather all your codes in one place, cluster the ones that share a central idea, and write a one-sentence claim for each cluster. The cluster becomes a candidate theme, which you will test in the next step. This is where thematic analysis moves from organizing data to interpreting it.

Diagram of one candidate theme at the center with three supporting codes branching off it.

Cluster the codes

List every code on one page or one board, physically or digitally. Move related codes together, and for each cluster ask three questions. What is going on in this group? How are these codes related? How does this connect to my research question? Some codes will sit alone. Leave them aside for now rather than forcing them into a group.

Here is how the running example clusters.

Cluster Codes inside Candidate theme
A Unsure how to check assumptions; Code runs, no check; Cannot explain result to committee Trusting results without knowing why
B Manual data cleaning; Mixed date formats; Redoing cleaning after new data Cleaning work nobody sees
C Reluctance to ask advisor; Mismatched software; Methods taught in one short course Learning alone, asking quietly
D Software crashes; Slow laptop; Expired license Tool problems

Test whether a cluster is a theme or a topic

Try to state the cluster as a sentence that makes a claim. Cluster A passes: first-year students often get results they cannot judge, and they know it. Cluster D fails. "Tool problems" only tells you where the codes are from, and nothing links crashes, a slow laptop, and an expired license beyond the word "tool." That makes it a topic, and it needs more work in the next step.

You can also check that a cluster has a central organizing idea. If two or three different ideas are packed into one cluster, you probably have two or three themes. If a theme needs the phrase "and also" to hold together, it is probably two.

If you cannot state a candidate theme as a sentence that makes a claim, you have a topic.

Step 4. Review themes against the data

Check each candidate theme at two levels: first against the coded extracts that belong to it, then against the whole dataset. A good theme holds together internally, stays distinct from other themes, and speaks to your research question. In practice you will merge, split, or discard several candidates here.

Review at two levels

At the first level, read every extract under a theme in one sitting. Do they tell one story? If a few extracts do not fit, move them or recode them. At the second level, reread the entire dataset with your theme set in mind and ask whether the themes capture the data and whether anything important is missing.

Record your decisions. The table below shows a review of the running example. The participant counts are invented for illustration.

Candidate theme Participants (of 10) Decision
Trusting results without knowing why 8 Keep as is
Cleaning work nobody sees 7 Keep as is
Learning alone, asking quietly 9 Keep, and absorb "Mismatched software"
Tool problems 4 Discard as a topic, redistribute its codes

Here, "Tool problems" fell apart on review. Software crashes were minor and scattered, and the strongest software extracts, such as P5's mismatch between lab tools, were really about learning alone. Dropping a candidate theme is not failure. It is the review working.

Check deviant cases and know when to stop

Look for extracts that contradict a theme. P4 found analysis manageable because he had a statistician mentor, and that does not break the "Learning alone" theme. It strengthens it, because the one participant who did not learn alone is the one who did not struggle. Contradictory cases should be reported, not hidden.

Stopping is a judgment call. A good signal is that your revisions have turned cosmetic: you are renaming and reshuffling but not changing what the themes say. Take a day away, then return to the data once more. Fresh eyes often show that a theme is thinner than you thought, or that two themes are secretly one. If possible, ask a colleague to read a sample of extracts and tell you whether your themes fit.

A theme earns its place only when the extracts under it tell one story and the rest of the data does not contradict it.

Step 5. Define and name each theme

Write a short definition for each surviving theme that states its central idea, its boundaries, and how it answers the research question. Then give it a name that makes a claim. Definitions force you to be precise, and a precise definition makes the write-up much easier.

Write the definition

Use the same structure for every theme so you can compare them. Copy this template into your notes.

Theme name:
Central idea (one sentence):
Codes included:
What this theme does not cover:
How it answers the research question:
Strongest extracts (participant, line):
Related themes and how they differ:

For the first theme in the running example, the central idea reads: "Participants produce statistical results but lack the means to judge whether those results are valid, and they experience this as a private worry." Under "does not cover," you would note that complaints about software errors belong elsewhere, if anywhere. The related-themes line might say that "Learning alone" explains why the worry stays private, while this theme describes the worry itself.

Name themes so they carry meaning

A good name tells the reader what the pattern is. Avoid one-word topic labels, and avoid using a participant's quote as the name, because that hides your interpretation behind someone else's words.

Topic-style name Theme-style name
Statistics Trusting results without knowing why
Data cleaning Cleaning work nobody sees
Advisors Learning alone, asking quietly

Aim for names of about three to eight words. If a name needs a subtitle to make sense, the definition is probably still loose, so go back and tighten it.

Write the definition before you settle the name, because a name only works when the idea behind it is clear.

Step 6. Write up the analysis

Report each theme as a short analytic argument supported by carefully chosen quotes, not as a list of what participants said. The report should show how the themes answer your research question and how you reached them. Write the methods section as carefully as the findings, because it is where readers judge your rigor.

Structure each theme section

Give each theme the same pattern: state the claim, present one or two strong extracts, then add commentary that explains what the extracts show and why it matters. The commentary is the analysis. If a paragraph contains only quotes, it is description.

Here is a compact example for the first theme:

Participants described producing results they could not evaluate. P3 ran the test her advisor suggested and then "had no idea whether I was allowed to trust it," while P2 felt such relief when the code ran that she "never went back to check." Both treat a working analysis as a finished one. This suggests that the difficulty is less about running statistics than about lacking the means to judge them, which connects directly to our question about what makes independent analysis hard.

Choose quotes that are representative and short. A long quote rarely earns its length. In the methods section, say which approach you used (inductive or deductive, semantic or latent), who coded, whether you used software, and how you handled disagreement and your own assumptions.

Add counts and figures for mixed-methods work

Counting is not what makes a theme valid, since a theme can matter without being the most frequent. Still, a simple table of how many participants contributed to each theme helps readers see the spread, and it is often requested in mixed-methods projects. Keep one row per participant in a spreadsheet, with a 0 or 1 column for each theme and columns for attributes such as discipline or whether they had a mentor.

A laptop displaying a grouped bar chart beside a printed participant spreadsheet and a pencil.

If you want to compare theme presence across groups or chart it, you can upload that CSV to PlotStudio AI and ask for a grouped bar chart or a cross-tabulation in plain English. It shows its code and steps so you can check them, and its analysis runs on your machine. With only ten participants, report descriptive counts and do not run significance tests. If your participants are patients or other protected groups, confirm your ethics approval covers any tool you use.

Report themes as arguments with evidence, and treat counts as a supporting table rather than the proof.

Common mistakes and a final checklist

The most common failures are treating topics as themes, coding too little, skipping memos, and presenting themes as if they appeared on their own. Catching these before you write saves weeks of rework. A short checklist at the end lets you verify each step before you submit.

Mistakes to avoid

  • Topic summaries as themes. If the theme name is a noun, such as "communication" or "workload," it probably describes a subject, not a pattern.
  • Coding only the vivid quotes. Dramatic extracts feel important, but quiet repeated details often carry the pattern.
  • Forcing every extract into a theme. Some data will not fit your research question, and that is fine.
  • Saying themes "emerged." Describe your active choices instead.
  • Rushing the review. One pass is rarely enough. Expect to revisit steps 3 to 5 more than once.

Can AI do a thematic analysis for you?

AI chatbots can suggest candidate codes for a transcript, and that can be a useful second reader. They cannot do the interpretive and reflexive work that makes an analysis yours, and they may invent patterns that the text does not support. Check every suggested code against the transcript.

Privacy is the bigger issue. Pasting participant transcripts into a cloud service may breach your consent forms or ethics approval. Check your institutional requirements before you do it, and anonymize first.

A checklist before you submit

  • I read all transcripts fully before coding.
  • I kept memos, including notes on my own assumptions.
  • I coded the whole dataset, not just striking passages.
  • I have a codebook with definitions and examples.
  • Each theme can be stated as a claim, not a topic.
  • I reviewed themes against both the extracts and the whole dataset.
  • I looked for and reported deviant cases.
  • Each theme has a definition, boundaries, and a name that carries meaning.
  • Each theme section pairs short quotes with analytic commentary.
  • My methods section states my approach, coding process, tools, and reflexive choices.

Run the checklist before you write, because most flawed analyses can be fixed at step 4 but not after the report is drafted.

Start with one transcript

Thematic analysis comes down to a disciplined loop: read closely, code inclusively, group codes into claims, test those claims against the data, define and name them, and write each as an argument with evidence. The running example showed the key moves, from "Tool problems" collapsing into a topic to "Learning alone, asking quietly" emerging as a theme that explained the others.

You do not have to finish the whole dataset to start learning the method. Code one transcript this week, build a small codebook, and see which codes repeat in the second. If your project also includes survey results or other numeric data, PlotStudio AI is free to try with no credit card, and it can turn your theme counts and group comparisons into clear figures.

Thematic Analysis: 6 Steps with Worked Examples | PlotStudio AI