Guide · behavioral-prep
How to Answer 'Tell Me About a Failure' in a CS Interview
Pick a real failure where you owned the outcome, name what went wrong in one clean sentence, and spend most of the answer on what you changed afterward. Hiring managers grade self-awareness and recovery, not whether the failure was small enough to look impressive. Sanitized non-failures score worse than honest ones.
By Alex Chen, Founder, InterviewChamp.AI · Last updated
How do you answer "tell me about a failure" in a CS interview?
Pick a real failure where you owned the outcome. State the situation in one sentence, name the failure in one sentence, then spend most of the answer on what you understood about why it failed and what you've changed in how you work. End with one specific example of how the lesson has shown up since. Sanitized non-failures score worse than honest ones, every time.
Why this question exists
Hiring managers ask "tell me about a failure" to test three things:
- Self-awareness. Can you accurately describe what went wrong without spinning?
- Recovery. What did you do after, and what did you internalize?
- Honesty under social pressure. Will you tell a real story when the polite move would be to deflect?
The trap most new grads fall into is treating this like a strength-disguised-as-weakness question. "My biggest failure is that I worked too hard on something and it took longer than expected." That answer fails all three tests. The interviewer immediately registers that you're either not self-aware enough to find a real failure or not honest enough to share one.
According to research summarized in HBR's piece on behavioral interviewing, interviewers consistently rank candidates higher when they share a specific, owned failure with a clear lesson than when they share a polished non-failure. The bar is "you've actually lived through something hard and learned from it."
Pick the right story
Three rules for choosing which failure to tell.
Rule 1 — The failure has to be real. A real failure has a clear bad outcome. Not "things were stressful for a few weeks" — a missed deadline, a broken system in production, a teammate who left because of how you handled something, a project that got canceled, a technical decision that didn't pan out. If you can't name the bad outcome in one sentence, it's not a strong story.
Rule 2 — You have to have owned it. Stories where you were a passive observer don't land. Pick something where you had the decision, the technical call, the deadline, the team dynamics — and where you can describe what you specifically could have done differently. "My team made a bad call" is not your story to tell unless you were part of the decision.
Rule 3 — There's a lesson you can name. The strongest failure stories end with a lesson that shaped how you work now. If you can point to a specific behavior change since — "I now over-communicate scope changes 48 hours in advance" or "I run technical decisions past a senior engineer before committing" — that's the part the interviewer is buying.
A working structure
A clean four-beat structure most candidates can adapt:
Beat 1 — Set the scene (15 seconds). What were you working on, when, and what was the goal? Don't spend more than two sentences here. The interviewer doesn't need full context; they need enough to follow the story.
Example: "Last summer I was on an internship team building an internal dashboard. We had a six-week scope and I owned the data-ingestion piece."
Beat 2 — Name the failure (15 seconds). One clean sentence. Don't soften it.
Example: "Three weeks in, my piece was a week behind and I hadn't raised it to my manager. The team had to cut a feature to hit the deadline."
Beat 3 — Diagnose what went wrong (45-60 seconds). This is the meat. Walk through what specifically caused the failure. Be honest about your role.
Example: "Two things. First, I underestimated the complexity of the third-party API I was integrating with — I assumed the docs were complete and didn't validate them until week two. Second, I waited too long to flag the slippage. I told myself I'd catch up on the weekend instead of telling my manager I was at risk. That hurt the team because they didn't have time to adjust scope."
Beat 4 — What you changed (30-45 seconds). Specific behaviors, not vague intentions.
Example: "Since then I do two things differently. I budget a buffer week on any new integration where I haven't worked with the API before — and I document that buffer explicitly in the plan. And I have a hard rule that if I'm a day behind on a task that affects someone else, I tell them that day, not later. The second rule has paid off twice already this year — both times when I flagged early, the team rescoped quickly instead of crashing into a deadline."
The full answer comes in around 90 seconds. Long enough to be specific; short enough that the interviewer wants to ask a follow-up.
What to avoid
Avoid the fake failure. "My biggest failure is I work too hard." "I care too much about quality." "I get too involved in projects." These read as evasion. Interviewers have heard them hundreds of times.
Avoid blaming others. Even if your failure was partly because of a teammate, vendor, or manager — own your part. "I should have caught my teammate's bug in code review" is fine. "My teammate broke production and I had to clean it up" makes you look like you don't take responsibility.
Avoid catastrophizing. "I failed a class and questioned my major" might be true, but it raises questions about whether you're stable enough for the role. Pick a failure that's significant but not existentially destabilizing. The interviewer doesn't need to worry about you.
Avoid resolving the story too cleanly. "And then I worked harder and everything was fine" is a non-ending. Real failures leave lasting marks. Acknowledge that.
Avoid the I-was-perfect-and-then-something-out-of-my-control-happened story. "I had a perfect plan but the cloud provider had an outage" doesn't answer the question. The interviewer wants to hear about a failure where you contributed to the bad outcome.
Three example stories that work for new grads
Story 1 — The technical bet that didn't pan out. "In a course project I picked a new framework I hadn't used before because it had better docs on paper. Three weeks in, we hit a missing feature that meant rewriting two components from scratch. We shipped the project but it was rough and I learned the hard way to prototype the riskiest path first, not last."
Story 2 — The communication failure. "On a group project I didn't push back when a teammate took on a piece I knew they couldn't finish. I thought I was being supportive; I was actually setting both of us up to fail. I took it over the night before the deadline and the project shipped, but the teammate was frustrated and the work was rough. I now have a habit of having the awkward early conversation when I think scope is unrealistic."
Story 3 — The deadline miss. "Last semester I missed a deadline on a side project I was building with two friends because I'd over-committed across classes and extracurriculars. The other two had blocked time around my piece. I now block time on my calendar the moment I commit to anything that has a deadline; if it's not on the calendar I don't say yes."
Each story has the same skeleton: situation, failure, diagnosis, lasting change.
How interviewers grade this
Per the Indeed Career Guide, interviewers grading behavioral answers typically rate four dimensions:
- Specificity: Did the candidate cite a real situation with details, or speak in generalities?
- Ownership: Did the candidate take responsibility for their role, or deflect to others?
- Self-awareness: Did the candidate identify what actually went wrong, or stay on the surface?
- Lasting change: Did the candidate name a specific behavior change, or just say "I learned a lot"?
Hit all four and you'll score well even on a failure that sounds small. Miss any one and a more impressive-sounding failure won't save you.
When the interviewer probes
A good interviewer will follow up. Common probes:
- "Was anyone else involved? How did they react?"
- "What did you do in the moment when you realized it was failing?"
- "How would you handle the same situation today?"
- "Have you faced a similar situation since? What did you do?"
Have answers ready. The interviewer is testing whether the story is real (real stories have rich context; fake ones break under follow-up) and whether the lesson has actually changed your behavior (real changes have shown up at least once since).
The single best preparation: pick your story, then have a friend ask you five follow-ups about it. If you can answer all five with specifics, you're ready. If two of them break the story, pick a different one.
The 5-minute version of this guide
- Pick a real failure with a clear bad outcome.
- Open with situation (15s) → failure (15s) → diagnosis (45-60s) → lasting change (30-45s).
- Own your role. Don't blame others.
- End with a specific behavior change, and ideally one example of it paying off since.
- Don't fake humility with non-failures. They score lower than honest answers every time.
About the author: Alex Chen is the founder of InterviewChamp.AI and writes about the modern tech interview from the inside — what changed, what works for new grads, and where the old playbook fails.
Frequently asked questions
- How big does the failure need to be?
- Big enough to actually be a failure. 'I worked too hard on a project' is not a failure. A real failure has a clear bad outcome you can describe — a missed deadline, a broken system, a lost teammate, a wrong technical bet. Honest beats impressive.
- Should I pick a failure I haven't fully recovered from?
- Yes, if you're still working on the lesson and can articulate where you are in the process. Pretending a recent failure is fully resolved when it isn't reads as unselfaware. Interviewers respect ongoing work more than fake clean endings.
- Is it okay to use a failure from a school project?
- Absolutely. School projects, hackathons, group assignments, and personal side projects all count. The setting matters less than the depth of the reflection. A real failure from a class is stronger than a fictional one from work.
- How long should my answer be?
- 90 seconds to 2 minutes. Brief on the situation and the failure itself, longer on the action you took and the lasting change. Most candidates spend too long on the setup and not enough on the lesson.
- What if I don't have a real failure to talk about?
- You do — you may not have framed it that way. Any project that didn't ship, any deadline you missed, any decision that turned out wrong, any teammate conflict that hurt the work, any technical bet that didn't pan out. The candidates who claim 'no failures' read as junior, not impressive.
- Should I mention if the failure was partly someone else's fault?
- Briefly, and only as context. If you spend the answer assigning blame, you'll fail this question. The hiring manager wants to hear what YOU could have done differently — even if you weren't the primary cause.