How to Do Thematic Analysis in NVivo or ATLAS.ti

A worked example of coding interviews, developing themes and writing qualitative findings.

Thematic analysis helps researchers develop an account of patterned meaning across a dataset. This guide uses Braun and Clarke’s reflexive approach. The software helps you organise and retrieve evidence. You build the interpretation through close reading, coding, memo writing and repeated comparison with the full dataset.

1. Define the question and become familiar with the data

Worked research question. How do small retailers in Greater Accra describe using mobile money records to manage stock? The excerpts below are fictional and illustrate the workflow. This open-ended question calls for an interpretation of experience, so the example uses a research question in place of a statistical hypothesis.

Prepare a transcript for each interview and assign a participant ID. Remove identifying details in line with your study protocol before importing transcripts. Read each transcript in full, jot down what stands out, and note assumptions that might shape your interpretation. For example, if you expect digital records to improve stock management, record that expectation so you can notice accounts that challenge it.

2. Code the relevant passages

Select a passage long enough to retain its meaning and apply a short label that captures what matters to your research question. One passage may receive several codes. Review earlier transcripts when you refine a code and use memos to record why.

Fictional interview extractInitial codeAnalytic memo
P01. “I check the messages at night and match the amounts to my book.”Matching payments to the stock bookThe digital record is useful because the retailer reconciles it with another source.
P02. “The message shows the amount. It doesn’t tell me which size of shoe I sold.”Payment lacks product detailA payment trace does not explain which item moved.
P03. “My assistant sells on my day off, but the payment messages come to my phone.”Shared work, private payment recordWho receives the alert affects who can update stock.
P04. “For repeat orders, the reference has the item code, so I can update the book directly.”Item code connects sale to stockA contrasting case shows how a reference can bridge the information gap.

Table 1. An extract-to-code table documents how the initial interpretation was developed.

3. Generate candidate themes

Compare coded extracts in their transcript context. Look for a central idea that explains how several codes are related. In the example, P01 and P02 suggest that payment records help when they can be linked to a stock record. P04 adds a condition: where item codes already travel with payments, reconciling records may take less work.

Candidate theme. Payment traces become stock records through reconciliation. Its central idea is that the usefulness of a payment record depends on whether the retailer can connect it to an item and a stock entry.

Keep P03 in view. It raises a related question about access to payment records and could develop into a candidate theme about who can see and act on the information. In a real study, review other interviews before deciding whether that idea has enough depth and coherence to stand as a separate theme.

4. Review, define and name each theme

Re-read both the coded extracts and full transcripts. Ask whether the central idea captures the range of accounts, whether another theme covers the same idea, and whether contrasting extracts reveal conditions or limits. Write a short definition for each retained theme and explain how it answers the research question.

Figure 1. A worked example of how one extract contributes to a theme. Theme development draws on the wider dataset.
Figure 1. A worked example of how one extract contributes to a theme. Theme development draws on the wider dataset.

Code counts can help locate passages. Interpret passages in context to decide what the theme explains and how well it answers the question.

5. Use the software to inspect the evidence

TaskNVivoATLAS.ti
Import and organiseImport de-identified transcripts and associate them with participant cases if useful.Add de-identified transcripts as documents and use document groups if a comparison is relevant.
Code and memoApply codes to selected excerpts. Use memos to record decisions and possible themes.Code selected quotations. Use memos to record interpretations and distinguish themes from code groups.
Compare and exportUse a Matrix Coding Query to compare codes against cases or case groups. Open relevant cells and read the passages.Use the Code-Document Table to compare codes across transcripts or groups. Open relevant cells and review quotations in context.

Table 2. Equivalent tasks in NVivo and ATLAS.ti. Interface labels can vary by release.

Illustrative coding matrixP01P02P03P04
Matching payments to stock book1000
Payment lacks product detail0100
Shared work, private payment record0010
Item code connects sale to stock0001

Table 3. Recreated software-style output. Each cell counts coded references in the four fictional extracts. A count of zero only means no excerpt in this example was coded to that cell.

6. Write up the theme

Sample findings paragraph. Payment messages helped retailers reconstruct sales when they could link payments to stock entries. P01 described checking the messages against a stock book at the end of the day. P02 highlighted a limit: the payment amount did not identify the shoe size. P04 described a contrasting case where an item code was included in the payment reference. Together, the extracts illustrate how the detail on a payment record shapes the work required to update inventory.

In your thesis, describe the version of thematic analysis you used, how you developed and reviewed themes, and how you handled participant confidentiality. Include enough context around each quotation for readers to understand your interpretation.

Braun and Clarke. Thematic Analysis.

Lumivero. NVivo matrix coding queries.

ATLAS.ti. Code-Document Table.

Explore WIStat Research data analysis services.