Home › Blog › Thinking Out Loud in Coding

How to Practice Thinking Out Loud in a Coding Interview

Thinking out loud is a skill, not a personality trait. Here is a narration template, what interviewers listen for at each step, and drills that build the habit.

To practice thinking out loud in a coding interview, use the same narration template on every problem (restate, clarify, example, approach, code, test, complexity) and drill it in stages: first alone on easy problems, then recorded so you can hear your silences, then in timed mock interviews where someone, or an AI, asks follow-up questions. Within a couple of weeks of regular practice, many candidates find narrating starts to feel normal rather than forced.

Most candidates practice coding in silence and then try to narrate for the first time in the real interview, which splits their attention exactly when they need it most. Interviewers in coding rounds commonly evaluate how you reason, not only whether the final code runs, and they can only assess reasoning they hear. This guide gives you a template to follow, shows what interviewers want to hear at each step, and lays out a practice plan. For the mistakes this habit prevents, see our list of coding interview mistakes and the wider common interview mistakes roundup.

What do interviewers want to hear at each step?

You don't need to narrate every keystroke. You need to make your decisions audible. This table shows what to say at each stage, with an example line we wrote for a "find the longest substring without repeating characters" problem.

StepWhat to sayExample line we wrote
RestateThe problem in your own words"So I need the length of the longest stretch of the string with no repeated character."
ClarifyAssumptions about input and output"Is it ASCII only? And for an empty string I return 0?"
ExampleA small case solved by hand"For 'abcabcbb' the answer is 3, from 'abc'."
ApproachBrute force, then the better idea and why"Checking every substring is O(n squared) or worse. A sliding window with a set of seen characters gets it to O(n)."
CodeIntent of each block, not syntax"When I see a repeat, I shrink from the left until it's gone."
TestTrace your example, then an edge case"Tracing 'abba': at the second b, left jumps to 2. Then the final a…"
ComplexityTime and space with the reason"O(n) time, since each pointer moves at most n steps; O(k) space for the set, where k is the alphabet size."

Notice what is missing: reading code aloud, apologizing, and filler like "um, so, yeah." The goal is a running commentary on decisions, at roughly one sentence per meaningful step.

A narration template you can use on every problem

Here is the template we wrote. Practice it until you don't need to think about it, so your full attention goes to the problem.

  1. "Let me restate it…" One sentence in your own words.
  2. "A few quick questions…" Two to four clarifying questions about size, types, duplicates and edge inputs.
  3. "Let me try a small example…" Solve one by hand and keep it for testing.
  4. "The straightforward way is… which is O(…). I think we can do better because…" Brute force, then the insight.
  5. "My plan is… Does that sound good before I code it?" Get agreement.
  6. "This part handles…" One sentence per block while coding. If you need quiet: "Give me thirty seconds to work out the loop condition."
  7. "Let me trace my example…" Then one edge case.
  8. "Time is… space is… If I had more time, I'd…" Close with complexity and one improvement.
Tip: Silence is fine when you announce it. "Let me think about this for a moment" turns a worrying pause into a deliberate one, and interviewers can wait while you think.

Why is thinking out loud so hard, and what does research say?

Talking while solving a hard problem competes for attention. Psychologists K. Anders Ericsson and Herbert Simon, whose 1980 paper "Verbal Reports as Data" shaped think-aloud research, distinguished between voicing the thoughts you're already having and being asked to explain or justify them; in their account, explaining is the kind of verbalizing more likely to change how you think. The practical takeaway for interviews: narrate what you are doing and deciding in plain words as you go, and save fuller explanations for decision points such as choosing an approach.

The other reason it's hard is simply lack of practice. Research on deliberate practice, starting with Ericsson, Krampe and Tesch-Römer (1993), describes improvement as coming from focused practice on specific weaknesses with feedback, rather than from repetition alone. A later replication by Macnamara and Maitra (2019) found a smaller effect than the original study, so treat it as a sensible method, not a guarantee. Applied here: practice narration specifically, get feedback on it, and fix one thing at a time.

Drills to build the habit

Work through these in order. Each adds a little more pressure and a little more feedback.

1. Solo narration on easy problems

Pick problems well below your level, so all your effort goes into narration. Talk through the full template out loud, even alone in a room. Easy problems make it obvious where you go quiet out of habit rather than difficulty.

2. Recorded sessions

Record your voice and screen while you solve a medium problem with a 30 to 45-minute timer. Play it back and note every long silence, every stretch of reading code aloud, and every step of the template you skipped. Many recording apps can produce a transcript, which makes repeated filler words easy to spot. Our guide on how to record yourself for interview practice covers the setup.

3. Practice with a partner

Have a friend play interviewer and interrupt with "Why that data structure?" and "What happens with an empty input?" Answering mid-code is a separate skill from narrating, and only a live questioner tests it. Remote rounds add their own complications; see our live coding interview tips for Zoom and Teams.

4. AI mock interviews

When no partner is available, an AI mock interview fills the gap. In the browser, the free mock interview needs nothing installed and includes a coding track. In the CoPilot Interview desktop app, Mock Interview builds the session from your résumé and the job description: you choose the level, 3, 5 or 8 questions, the mix (including coding) and your coding language. It reads each question aloud, listens to your spoken answer, and scores it out of 10 with what worked, what to fix and a model answer, then gives you a report card. Coding questions never auto-submit, so you can think quietly when you need to and narrate when you're ready.

Compare the model answer with your own explanation: did you state the approach before coding, test, and give complexity? Then pick one weakness for your next session. Our guide on how to practice with an AI interview assistant has a full weekly plan.

How do you think out loud without slowing down?

If you get stuck mid-problem, narrating still helps: say what you've ruled out and why. Our guide on what to do if you don't know the answer in an interview covers that moment.

A two-week practice plan

Practice it

Narration only becomes automatic through repetition with feedback. CoPilot Interview's AI interview assistant includes a Mock Interview mode that asks coding and behavioral questions built from your résumé and the job description and scores every answer out of 10 with what to fix. It's free for 15 minutes a day, with no account. If you're new to these tools, start with what an AI interview assistant is. Follow each employer's rules on AI tools, and use AI to prepare beforehand.

Make thinking out loud a habit

Answer coding and behavioral questions out loud, get each answer scored out of 10 with what to fix, and compare your explanation with a model answer. Free for 15 minutes a day, no account needed.

Try a free AI mock interview

FAQ

Why do interviewers want you to think out loud?

Because they can only assess the reasoning they hear. Narrating lets them evaluate how you clarify, choose an approach and test, and gives them a chance to offer a hint before you go too far down the wrong path.

Is it OK to be silent during a coding interview?

Short, announced silences are fine. Say something like "Give me thirty seconds to work out this condition," then explain what you decided. Long unexplained silences make it hard for the interviewer to follow or help.

How do I practice thinking out loud alone?

Solve easy problems while narrating a fixed template out loud, then record medium problems with a timer and review the recording for silences and skipped steps. An AI mock interview can add questions and scored feedback when no partner is available.

Should I explain every line of code?

No. Explain decisions, not syntax. One sentence per meaningful block, such as why you chose a data structure or what a loop guarantees, is usually enough.

How long does it take to get comfortable thinking out loud?

It varies, but focused daily practice for one to two weeks is a reasonable starting plan. Start with easy problems so all your attention goes to narration, then add timing and follow-up questions.

Can an AI mock interview help with coding interview communication?

Yes, as practice. An AI mock interview can ask coding questions, listen to your spoken answer and give feedback with a model answer to compare against. It cannot replace a human interrupting you mid-code, so combine it with partner sessions.