Thinking out loud in a coding interview means saying your reasoning as you work: what you understand, which options you see, why you choose one, and what each line you write is for. An interviewer cannot see your reasoning unless you say it, so speaking it gives them something to work with and lets them step in if you drift.
This guide gives a five-step routine with sample phrases, shows what to do when you go quiet, and ends with a way to practice. Formats differ by company, so ask your recruiter whether your round is live, in a shared editor, or an online assessment with no interviewer.
What career centers advise
Several university career centers give the same advice. Rutgers' computer science student group tells candidates to give the interviewer something to work with by vocalizing their thoughts while coding. Grinnell College's career office says to show your problem-solving process and to describe your thinking even if it seems obvious. Binghamton University's guide says explaining your thought process is incredibly valuable while you outline a solution. These are advice pages, not studies, and none of them promise an outcome.
The five-step routine
- Restate and clarify. Say the problem back in your own words, then ask about inputs and edge cases. "So I get a list of integers and return the two that sum to the target. Can the list be empty? Can numbers repeat?"
- Test cases first. Name two or three small examples, including an edge case, before any code. "For [2, 7, 11] and target 9 I expect indexes 0 and 1. For an empty list I would return nothing."
- Brute force, then improve. Both Rutgers and Grinnell advise starting with the simple solution. Say it, give its cost, then say what is wasteful. "The simple way checks every pair, which is O(n squared). The repeated lookups are the waste, so a hash map could make each one constant time." Binghamton adds that you can ask the interviewer which approach they prefer.
- Narrate while you code. Say what each block is for. Grinnell's career office advises explaining everything you write; if that feels like too much, start with one sentence per block."I will store each number's index as I go, then check whether the complement is already in the map."
- Trace and state the cost (our addition). Walk one test case through your code by hand, saying the values. Finish with time and space cost and one thing you would test next.
Our coding patterns chapter and sliding window and two pointers chapter show the common approaches you will be naming in step 3.
What to do when you go quiet
- Say what you are stuck on. "I can see the loop, but I am not sure how to avoid counting a pair twice." A specific sentence invites a useful hint; "I am stuck" does not.
- Retrace. Go back to your test case and say what the code does at that point.
- Park the hard part. Binghamton suggests adding a "To Do" note for the part you cannot solve and moving on to the rest.
- Take a pause on purpose. "Give me ten seconds to think about this." (Our advice, not from the sources below.)
Common mistakes
- Reading code aloud word for word. Explain intent, not syntax.
- Talking nonstop. You still need moments to think. Say "let me think for a moment" and do so.
- Hiding a wrong idea. Say the idea and why it fails ("that will not work because of duplicates"), then move to the next one.
- Ignoring the interviewer's hint. Repeat it back and say how you will use it.
A one-week plan we suggest
- Days 1 and 2: Solve one easy problem a day while speaking every step of the routine, with a timer running.
- Days 3 to 5: Pick a different pattern each day. Record yourself and listen for long silences and for explaining syntax instead of intent.
- Day 6: Practice with another person, who interrupts with a question halfway through.
- Day 7: A timed spoken round, then write down the one step you skipped most often.
If you are earlier in your preparation, the internship interview questions guide and the new grad software engineer interview guide put coding next to the other parts of a loop.
Practice out loud
Solving problems silently trains the typing, not the talking. In a mock interview, an AI interviewer asks the question aloud and listens to your spoken answer. Hoppers mock interviews include a technical coding mode that scores problem solving, code quality, algorithms and communication. The free plan includes 60 minutes in total, with each session capped at 15 minutes, so you can try one short round.
Limits to keep in mind
- Narrating well does not replace a correct solution. It makes your reasoning visible.
- Online assessments often have no live interviewer. Check the instructions on whether to explain your plan in comments.
- Preparation raises your odds. It does not guarantee an offer.
- Use Hoppers to practice. In a real interview, follow the company's rules on tools and outside help.
FAQ
Should I talk the whole time?
No. Speak at the decision points: restating, choosing an approach, each block of code and the final check. Announce a short pause when you need quiet to think.
What if I do not know the answer?
Say what you do know, start with the brute-force solution (Rutgers and Grinnell both advise this), and ask a specific question.
Does thinking aloud matter in an online assessment?
There may be no live interviewer, so check the assessment's instructions. Writing your plan as comments builds the same habit.
Sources
- Rutgers University Student Association for Computer Science, Interviewing: vocalize your thoughts while coding, ask clarifying questions, build two or three test cases, start with brute force.
- Grinnell College Career Development Office, Prepare for technical interviews: think out loud, describe your thought process, find a brute-force solution then improve it.
- Binghamton University career tools, Mastering technical coding interviews: restate the problem, think out loud as you outline, compare approaches, leave a note for a part you are stuck on.
Ready to rehearse? Practice a coding mock interview out loud and fix the one step you skip.