{"site":{"name":"Koji","description":"AI-native customer research platform that helps teams conduct, analyze, and synthesize customer interviews at scale.","url":"https://www.koji.so","contentTypes":["blog","documentation"],"lastUpdated":"2026-10-13T11:50:22.613Z"},"content":[{"type":"documentation","id":"a7f6c2fa-8dd9-49ad-b4f4-44eacdc990c5","slug":"template-analysis-qualitative","title":"Template Analysis: Nigel King's Flexible Approach to Thematic Coding","url":"https://www.koji.so/docs/template-analysis-qualitative","summary":"Template analysis, developed by Nigel King, is a style of thematic analysis in which researchers build a hierarchical coding template from a subset of their data, often starting from a few tentative a priori themes, then apply and revise it until new data stops changing it. Brooks, McCluskey, Turley and King (2015) describe six stages: familiarisation, preliminary coding, clustering, an initial template, repeated revision and final application. It sits between reflexive thematic analysis and fixed codebooks and suits applied studies where some topics are known. Koji's per-question interview analysis and cross-interview report give a draft to build and test a template against.","content":"Template analysis is a style of thematic analysis, developed by psychologist Nigel King, in which you build a hierarchical coding template from part of your data, often starting with a few themes chosen in advance, then apply it to the rest and revise it until it fits. It sits between fully inductive methods, where every theme comes from the data, and fixed codebooks, where every code is set before you start. That makes it a practical choice for applied research, where you know some of what you're looking for but want room to be surprised.\n\nThis guide explains how template analysis works, the six steps most researchers follow, how it differs from other thematic approaches, and where AI interview tools fit in.\n\n## What is template analysis?\n\nTemplate analysis organises qualitative data, usually interview transcripts, around a **coding template**: a structured, hierarchical list of themes. Broad themes sit at the top, with narrower sub-themes nested beneath them. The template is the main output of the analysis and the basis for your write-up.\n\nKing developed and refined the method through the 1990s and 2000s at the University of Huddersfield, and the most widely cited account of it is Brooks, McCluskey, Turley and King's 2015 paper in _Qualitative Research in Psychology_, \"The utility of template analysis in qualitative psychology research\". Although it was born in psychology, it's now used across health, education, management and user research.\n\nThree features define the method:\n\n- **A priori themes are allowed.** You can start with a small number of themes decided before coding, drawn from your interview guide, earlier research or a theory. They're tentative: you drop or redefine them if the data doesn't support them.\n- **The template is built from a subset.** You develop an initial version on part of the data, not the whole dataset, then apply and revise it.\n- **Hierarchy is flexible.** You code more deeply where the data is richest. One theme may have three levels of sub-themes while another has none.\n\n## Template analysis vs other thematic approaches\n\nTemplate analysis is easiest to understand next to its neighbours.\n\n![Table comparing template analysis with reflexive thematic analysis, codebook approaches and framework analysis on starting themes, structure and best use](/visuals/template-analysis-vs-thematic-approaches/template-analysis-vs-thematic-approaches.png \"Pick the approach by how much you know before you start and how much structure the reader needs\")\n\n- **Reflexive thematic analysis** (Braun and Clarke) treats themes as something the researcher actively builds from the data, with no codebook and no a priori themes. It's ideal for open, interpretive work. See our guide to [reflexive thematic analysis](/docs/reflexive-thematic-analysis).\n- **Codebook approaches** fix the codes up front, often with definitions and inclusion rules, so several coders can apply them consistently. See [building a qualitative research codebook](/docs/qualitative-research-codebook).\n- **Framework analysis** builds a thematic framework, from early data or prior theory, then charts summarised data into a matrix of cases and themes. It is popular in policy and health research. See [framework analysis](/docs/framework-analysis-qualitative).\n- **Template analysis** takes the middle ground: some structure up front, but a template that keeps changing until it fits the data.\n\nIf your team needs the speed and shared structure of a codebook but your research question isn't fully settled, template analysis is usually the better fit.\n\n## How to do template analysis: the six steps\n\nBrooks and colleagues describe the procedure in roughly these stages. In practice you'll loop back between them.\n\n![Process diagram of the six steps of template analysis, from getting familiar with the data to applying the final template](/visuals/template-analysis-steps/template-analysis-steps.png \"The loop between steps 4 and 5 is where the real analysis happens · Source: Brooks, McCluskey, Turley and King, 2015\")\n\n### 1. Get familiar with the data\n\nRead through your transcripts, or at least a good sample of them, before coding anything. Note first impressions, surprises and recurring language.\n\n### 2. Do some preliminary coding\n\nMark passages in a few transcripts that seem relevant to your research question. This is where a priori themes come in: if your study was built around, say, onboarding, pricing and support, you might start with those as tentative top-level themes. Keep them loose. A priori themes are a starting point, not a commitment.\n\n### 3. Cluster the codes into themes\n\nGroup related codes and decide how they relate. Some become top-level themes; others become sub-themes underneath. Look for **integrative themes** too: ideas that cut across several themes, such as trust or time pressure, which King suggests can be shown separately in the template.\n\n### 4. Write the initial template\n\nTurn your clusters into a first version of the coding template, based on a subset of the data. For a study of 20 interviews, that might be four to six transcripts chosen to cover the range of participants. Write a short definition for each theme so others can apply it.\n\n### 5. Apply the template and revise it\n\nCode further transcripts with the template. Each time something doesn't fit, change the template. You might add a theme, split one in two, merge two that overlap, move a sub-theme to a different parent, or delete an a priori theme the data never supported. Keep a note of each change and why. Repeat until new transcripts no longer prompt meaningful changes.\n\n### 6. Finalise and apply to the full dataset\n\nApply the final template to every transcript, then use it to structure your interpretation. The write-up usually follows the template, with themes illustrated by quotes and the template itself shown in full.\n\n## What a coding template looks like\n\nA template is just an indented list. Here's a short example from a study on why trial users don't convert:\n\n```text\n1. Getting started\n   1.1 First session experience\n   1.2 Setup effort\n       1.2.1 Data import\n       1.2.2 Inviting teammates\n2. Perceived value\n   2.1 The \"aha\" moment\n   2.2 Comparison with current tool\n3. Buying process\n   3.1 Who needs to approve\n   3.2 Timing against budget cycles\n\nIntegrative theme: time pressure (appears across all three)\n```\n\nNotice the uneven depth. Setup effort earned a third level because participants talked about it in detail; the buying process didn't.\n\n## Strengths and limitations\n\n**Strengths:**\n\n![Sticky notes grouped on a wall as a research team sorts interview themes into a hierarchy](https://images.unsplash.com/photo-1735639013995-086e648eaa38?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5NDUzMDN8MHwxfHNlYXJjaHw5fHxzdGlja3klMjBub3RlcyUyMHdhbGwlMjByZXNlYXJjaCUyMHRlYW18ZW58MXwwfHx8MTc5MTg2NzAxMXww&ixlib=rb-4.1.0&q=80&w=1080)\n\n_Photo by [Jakub Żerdzicki](https://unsplash.com/@jakubzerdzicki?utm_source=koji&utm_medium=referral) on [Unsplash](https://unsplash.com/?utm_source=koji&utm_medium=referral)_\n\n- **Flexible.** No fixed number of levels, no required set of codes.\n- **Efficient.** Building the template on a subset saves time on large datasets.\n- **Good for teams.** A shared template with definitions helps several researchers code consistently.\n- **Honest about prior knowledge.** You can name the themes you expect instead of pretending you came in with a blank slate.\n\n**Limitations:**\n\n- **A priori themes can blinker you.** If you hold on to them too tightly, you'll find what you expected. Actively look for material that doesn't fit; [negative case analysis](/docs/negative-case-analysis) is a useful discipline here.\n- **The template can become the analysis.** A tidy hierarchy isn't an interpretation. You still need to explain what the themes mean and how they connect.\n- **Less suited to deeply interpretive or idiographic work,** where approaches such as interpretative phenomenological analysis fit better.\n\n## Template analysis with AI interviews in Koji\n\nKoji runs AI-moderated voice and text interviews and analyses each one automatically, which gives you a head start on several steps.\n\n- **Your brief supplies a priori themes.** The questions and topics in your study's research brief are a natural first set of tentative themes, just as an interview guide is in a manual template analysis.\n- **Answers arrive sorted by question.** Each interview is analysed against the questions you asked, including what came out in follow-ups. That makes preliminary coding (step 2) faster, because related material is already grouped.\n- **Themes across interviews.** Koji's [research report](/docs/generating-research-reports) groups recurring themes across participants and shows how many people support each one. Use that as a draft to compare against your own template, not as a replacement for it.\n- **Every theme links to evidence.** You can [trace each finding back to the quotes](/docs/tracing-report-findings-to-evidence) behind it, which helps when you're checking whether a theme earns its place.\n- **Structured questions for the closed parts.** If one part of your study is really a rating or a choice, ask it as one of Koji's [structured questions](/docs/structured-questions-guide) and keep the template for the open material.\n\n![Koji research report with participant, duration, themes and quality stats above a summary of findings](/email/shots/shot-report.jpg \"Koji's report groups themes across interviews: a useful draft to test your template against\")\n\nA sensible workflow: let Koji run and summarise the interviews, read a handful of full transcripts yourself to build your initial template, then use Koji's report and evidence panel to test and revise it against the rest.\n\n## Tips for a strong template analysis\n\n- **Limit a priori themes.** Three to five is plenty. More and you're writing a codebook.\n- **Choose the subset deliberately.** Include participants who differ in ways that matter: role, segment, outcome.\n- **Write definitions early.** A one-line definition per theme prevents drift, especially in teams.\n- **Keep a change log.** It's your audit trail, and it shows readers how the analysis evolved.\n- **Show the final template.** Readers trust findings more when they can see the structure behind them.\n\n## Related Resources\n\n- [Structured questions in AI interviews](/docs/structured-questions-guide): handle the closed parts of a study without coding\n- [Reflexive thematic analysis](/docs/reflexive-thematic-analysis): the fully inductive alternative\n- [Building a qualitative research codebook](/docs/qualitative-research-codebook): when codes should be fixed up front\n- [Framework analysis in qualitative research](/docs/framework-analysis-qualitative): the matrix-based neighbour\n- [Coding qualitative data](/docs/coding-qualitative-data): the basics of coding interviews\n- [Rapid qualitative analysis](/docs/rapid-qualitative-analysis): when you need findings in days\n","category":"Research Methods","lastModified":"2026-10-13T04:50:12.023711+00:00","metaTitle":"Template Analysis in Qualitative Research: Steps and Example | Koji","metaDescription":"Template analysis explained: Nigel King's hierarchical coding template, a priori themes, the six steps, an example and how it compares with thematic analysis.","keywords":["template analysis qualitative","template analysis nigel king","template analysis vs thematic analysis","coding template qualitative","a priori themes","hierarchical coding"],"aiSummary":"Template analysis, developed by Nigel King, is a style of thematic analysis in which researchers build a hierarchical coding template from a subset of their data, often starting from a few tentative a priori themes, then apply and revise it until new data stops changing it. Brooks, McCluskey, Turley and King (2015) describe six stages: familiarisation, preliminary coding, clustering, an initial template, repeated revision and final application. It sits between reflexive thematic analysis and fixed codebooks and suits applied studies where some topics are known. Koji's per-question interview analysis and cross-interview report give a draft to build and test a template against.","aiPrerequisites":["Interview transcripts or recordings","Basic familiarity with coding qualitative data"],"aiLearningOutcomes":["Explain what template analysis is and where it came from","Use a priori themes without letting them bias the analysis","Build and revise a hierarchical coding template","Compare template analysis with reflexive thematic analysis, codebooks and framework analysis","Use Koji interview analysis as a starting point for a template"],"aiDifficulty":"intermediate","aiEstimatedTime":"10 minutes"}],"pagination":{"total":1,"returned":1,"offset":0}}