← All resources

What Is Open Coding in Qualitative Research? With Examples

14 min read
What Is Open Coding in Qualitative Research? With Examples

Open coding in qualitative research is the first pass through your data. You break transcripts, field notes, or documents into small segments and give each one a short label that says what is happening. You do not start from a list of themes. The labels come from the data itself. Strauss and Corbin, who formalized the technique inside grounded theory, described it as "opening up" the text so the ideas inside it become visible.

In plain terms, it is disciplined note-taking. If you have ever highlighted an interview printout and scribbled a few words in the margin, you have done a rough version. Open coding adds consistency: short labels, written definitions, and the habit of comparing each new passage against the ones you already coded.

This guide covers why the technique matters, how to do it step by step, and what a worked example looks like in a clinical-style interview. It then shows how open coding feeds axial and selective coding, and which mistakes to avoid. PlotStudio AI is built for the numeric side of research, and many studies pair coded interviews with a dataset, so the last section covers that handoff.

Why open coding matters for your analysis

Open coding matters because it ties your analysis to what participants said before you decide what it means. Researchers who skip it tend to find the themes they expected to find, and reviewers notice.

What open coding does for your analysis

Open coding does three jobs. It reduces raw material to small units you can handle, it exposes your assumptions early, and it creates the vocabulary that every later stage depends on. A 40-page interview transcript is hard to reason about. A list of labels, each tied to a specific passage, is something you can sort, compare, and argue about.

The method runs on constant comparison. Each new segment you code is compared with the segments already coded, which forces you to ask whether two passages describe the same thing or only sound alike. That habit separates open coding from tagging. Tagging sorts data into bins you already have. Open coding makes you build the bins, and rebuild them when the data refuses to fit.

Open coding keeps your analysis tied to what participants said, not to what you expected them to say.

When open coding fits and when closed coding is better

Use open coding when your question is exploratory, the phenomenon is poorly understood, or you want to build theory instead of testing it. Use closed coding when you already have a framework and want to apply it. In closed coding you start with a predefined list of codes, drawn from theory, earlier studies, or your interview guide, and assign them to the data. The table sets the two side by side.

Open coding Closed coding
Where codes come from The data, as you read it A predefined list or framework
Reasoning Inductive Deductive
Best for Exploratory questions, new phenomena, theory building Applying or testing an existing framework, large coding teams
Main risk Too many loosely defined codes Missing what the framework did not anticipate

Most real projects are hybrids. You might open code a first batch of transcripts to learn what matters, then write a codebook and apply it to the rest. Open coding is most closely tied to grounded theory, where Strauss and Corbin made it the first of three stages. Other grounded theorists use different names. Charmaz, for example, calls the first pass initial coding and the second focused coding. The core move, labeling small pieces of data without a preset scheme, also appears in thematic analysis and other inductive approaches.

How to do open coding step by step

To do open coding, prepare a clean copy of your data, read it once, then work through it in small segments. Give each segment a short label and revise the labels as you compare. The steps below follow that order.

Prepare your data and read it first

Start with a verbatim transcript that has line numbers and a wide margin, or load it into a coding tool where you can attach labels to selected text. Remove names and identifying details before you code, so your labels never carry them. Then read the whole document once without coding. That first read gives you a sense of the whole, so you do not over-label an early remark that turns out to be a throwaway.

  • Transcribe verbatim, including hesitations that carry meaning.
  • Anonymize names, places, and employers.
  • Number the lines or paragraphs.
  • Keep one document per participant so every code traces back to a source.
  • Read the full text before you code a single line.

Label small segments with short codes

Take one segment, ask what is happening in it, and write a label of two to four words. A segment can be a phrase, a sentence, or a short paragraph, as long as it holds one idea. Work through the document like this:

Five-step process showing how to pick, question, label, check, and multi-code a data segment.

  1. Pick a segment small enough to hold one idea.
  2. Ask what the participant is doing, feeling, or explaining.
  3. Write a short label, and name an action where you can ("Delaying treatment" says more than "Treatment").
  4. Check your existing codes. Reuse one if it fits, and create a new one only if it does not.
  5. Give the segment more than one code when it carries more than one idea.

A good open code names what is happening in a segment, not just the topic the segment belongs to.

Resist the urge to be clever. Plain labels that stay close to the participant's meaning are easier to compare later than abstract ones. You can raise the level of abstraction in the next stage.

Write memos and keep a codebook

Memos are short notes you write as you code. Record why you created a code, what doubts you have, which other passage it reminds you of, and what to check in the next interview. Date them. Memos are where analysis actually starts, because they capture your thinking while it is still fresh.

A codebook is the running list of your codes. For each one, record the name, a one-sentence definition, an example quote, and a note on when not to use it. Review the codebook every few transcripts, merging duplicates and tightening definitions. Without definitions, codes drift, and a label you used one way in week one means something slightly different in week four.

Decide how fine to code and when to move on

Line-by-line coding is the classic approach in grounded theory, and it works best on your first few transcripts, when you know the least. With a large dataset, coding larger chunks to capture main ideas is more practical. Choose a granularity that fits your question and your time, and say which one you used in your methods section.

You are ready to move toward axial coding when new segments mostly fit codes you already have. If you keep labeling passages with existing codes instead of inventing new ones, you have enough raw material to look for relationships. That is an early signal, not the same as theoretical saturation, which concerns the whole study and the stage where new data stops adding new insight.

A worked example of open coding

Here is open coding applied to a short excerpt from an invented interview in a study of how adults with type 2 diabetes manage daily medication. The excerpt is split into segments, and each segment gets a code and a memo.

An interview excerpt and its open codes

The participant's statements below are made up for illustration. A real study would code many interviews, and the codes would change as you compared them. The point is to see how a label relates to its segment and how a memo records what to check next.

A highlighted interview transcript with margin sticky notes next to a weekly pill organizer and a pencil.

Segment Open code Memo
"I take the metformin with breakfast because that's the one meal I never skip." Anchoring doses to meals Does the routine depend on a fixed anchor? Check other participants.
"The evening dose is harder. By then I'm tired" Evening fatigue Is it tiredness or the lack of an anchor?
"and if I'm at my sister's house I just forget." Forgetting away from home Routine tied to place. Ask about travel and visits.
"My doctor said missing doses doesn't matter much if my numbers are fine" Reading doctor's remark as permission Compare with how others recall clinician advice.
"so I don't stress about it." Relaxing about missed doses Possible link to the previous code.

Notice what the coder did. The third segment sits inside a sentence that also holds a second idea, so it received its own code. The fourth code is interpretive, but it still stays tied to the participant's words, and the memo points toward comparison with other interviews. None of these labels is final. If three more participants describe forgetting at friends' homes and on trips, you may merge or rename it.

Descriptive, in vivo, and process codes

Open codes come in a few common flavors, and you can mix them in the same project. Each one does a slightly different job.

  • Descriptive codes name the topic or content of a segment, such as "Evening fatigue".
  • In vivo codes use the participant's own words as the label, such as "the one meal I never skip". They are useful when a phrase is vivid or reflects a group's own vocabulary.
  • Process codes name an action, usually with an -ing verb, such as "Anchoring doses to meals". Many grounded theorists favor them because they keep attention on what people do rather than what they are.

A practical rule: use process codes when you can, descriptive codes when you cannot, and in vivo codes when the wording is too good to paraphrase. Put in vivo labels in quotation marks in your codebook so you always know which words are the participant's and which are yours.

How open coding leads to axial and selective coding

Open coding breaks data apart, axial coding reconnects the pieces into categories, and selective coding builds those categories around one core category that explains the phenomenon. In grounded theory these three stages overlap and repeat. They are not a strict sequence.

What axial coding is

Axial coding in qualitative research is the stage where you group open codes into categories and work out how those categories relate. The name comes from organizing data around the "axis" of a category. Strauss and Corbin suggested asking, for each category, about its conditions, its context, the actions people take in response, and the consequences that follow.

Index cards arranged in three groups, connected by string to one larger central card.

Using the example above, you might group the codes like this:

  • Building a dose routine: anchoring doses to meals.
  • What disrupts the routine: evening fatigue, forgetting away from home.
  • Treating advice as permission: reading doctor's remark as permission, relaxing about missed doses.

Now you can ask relational questions. Disruptions create missed doses. How the participant interprets a clinician's remark seems to shape how much those missed doses worry them. That is the shift axial coding makes, from describing pieces to explaining how they connect. You then check each relationship against the data in other interviews.

What selective coding adds

Selective coding is the stage where you choose a core category and relate every other category to it. The core category is the one that explains the most about your data and appears across many participants. In the example, a candidate might be "fitting medication around daily life". You would test it by returning to all your transcripts and asking whether it explains cases that seem to contradict it.

This is also where theory takes shape. You refine categories, fill gaps by collecting more data, and stop when new interviews no longer change the picture. A single excerpt can suggest a core category, but it can never confirm one.

Treat a core category as a hypothesis about your whole dataset until it survives contact with the cases that do not fit.

The three stages side by side

The table summarizes what each stage asks and produces, which also answers the common question of how the three types of coding differ.

Stage Main question You work with You produce
Open coding What is happening here? Raw segments of data Labeled codes and memos
Axial coding How do these codes relate? Open codes Categories, subcategories, and relationships
Selective coding What explains it all? Categories A core category and an emerging theory

You do not need all three stages for every project. If you are not building a grounded theory, you may stop after open coding and group codes into themes, as in thematic analysis. Selective coding is the stage most tightly tied to theory building. Whatever you choose, state which framework you followed and why, because reviewers expect the stages to match the study's aim.

Common mistakes, and where software and AI fit

The most common open coding mistakes are coding too coarsely, importing a theory too early, and never defining codes. Software and AI can speed up the work, but interpretation remains your job.

Five mistakes that weaken open coding

These problems show up again and again in first-time projects. Catching them early saves a lot of rework.

  1. Topic labels instead of meaning. "Work" or "Family" tells you nothing. "Bringing work home" tells you something you can compare.
  2. Forcing a theory onto the data. If you code with a framework in mind, you are doing closed coding, whatever you call it.
  3. Never defining codes. Undefined codes drift, and your later categories rest on shaky ground.
  4. Coding alone without a check. Ask a colleague to code a sample of the same transcript, then compare and discuss differences. The goal is a shared understanding, not identical codes.
  5. Skipping a return trip. Early transcripts get coded when you know the least. Revisit them with your final codebook.

Can ChatGPT or other AI do open coding?

AI can draft candidate labels quickly, but it cannot decide what a passage means in your study. A model may produce generic paraphrases, miss context from earlier in the interview, or invent a tidy pattern that the data does not support. If you use it, treat its output as a suggestion to verify against the transcript, and keep your own memos as the record of your reasoning.

Participant data raises a second question. Before you paste transcripts into any external tool, check your consent forms, ethics approval, and institutional policies. Interviews often contain sensitive details, and some protocols forbid sharing them outside approved systems.

Handing coded data to quantitative analysis

Many studies pair interviews with survey or clinical data. Once your coding is stable, you can build a participant-by-code table in a spreadsheet and export it as CSV. You can then count how many participants raised each code, or compare code frequencies between groups, like any other dataset. PlotStudio AI is built for datasets rather than transcripts, so do the coding itself in a qualitative package or a spreadsheet. After that, you can upload the exported table to PlotStudio AI to run the group comparisons and chart the results. Remember that counts describe how widespread a code is, not how important it is.

Where to start with your own data

Open coding comes down to one habit: label small pieces of data with what is happening in them, and let those labels, not a prior theory, guide what comes next. Read first, code in short segments, define each code, and write memos as you go. When new passages keep fitting your existing codes, you are ready to look for relationships through axial coding, and later for a core category through selective coding.

Start small. Take one transcript, code it line by line, and see which labels survive when you code the second. If your study also includes numeric data, such as survey scores or clinical measurements, you can analyze your coded data in PlotStudio AI alongside it. The free trial needs no credit card. The interpretation, as always, stays with you.

What Is Open Coding in Qualitative Research? With Examples | PlotStudio AI