Behavioral Questions4 min readPremium

Tell Me About a Time You Made a Mistake

This question isn’t a trap. Interviewers assume you’ve made mistakes; everyone who ships software has. They want to know whether you own it, fix it, and change how you work afterwards. A strong answer leaves them thinking “I’d trust this person with production”.

What the interviewer is scoring

Signal Sounds like
Ownership “I missed it”, not “the process failed” or “QA didn’t catch it”
Judgement under pressure What you did in the first hour
Communication Who you told, and how quickly
Learning A specific change that outlasted the incident
Proportion A real mistake with real stakes, told calmly

Structure: STAR, weighted towards the end

Use the STAR method, but don’t split the time evenly:

  • Situation and Task (15%): one or two sentences of context.
  • Action (45%): what you did once you realised. Detection, fix, communication.
  • Result and learning (40%): the outcome, then what you changed permanently.

Aim for about two minutes.

Choosing the right mistake

Pick one that is:

  • Yours. A decision you made or a check you skipped.
  • Real. It had consequences: a bug in production, a missed deadline, rework for others.
  • Recoverable. You fixed it or contained it.
  • Followed by a change. A test, a checklist, a habit, a process.

Avoid: disguised strengths (“I work too hard”), mistakes that question your integrity, anything involving confidential details, and stories where the lesson is that someone else was wrong.

Sample answer 1: a production regression

Situation. I was the frontend owner for our checkout redesign. Two days before launch I refactored the address form to use a shared validation hook.

Task. I was responsible for making sure the change was safe to ship.

Action. I tested the happy path on desktop and merged. I didn’t test autofill on mobile Safari. After release, our error dashboard showed a spike: autofilled addresses weren’t triggering validation, so the “Continue” button stayed disabled for those users. I noticed within about forty minutes, posted in the incident channel that it was my change, and rolled back behind the feature flag, which took five minutes. Then I reproduced it on a real device, found that autofill fires change without input in that browser, fixed the hook to listen for both, and added a Playwright test that simulates autofill.

Result. Checkout was affected for under an hour. Afterwards I wrote a short post-mortem and proposed two changes the team adopted: a mobile Safari check in our release checklist for any form change, and autofill coverage in the end-to-end suite. We haven’t had a form regression since.

Learning. I had treated a refactor as low-risk because the behaviour “shouldn’t” change. Now I decide how much to test by what the code touches, not by how small the diff looks.

Why it works: clear ownership, fast detection, a calm rollback, and a change that helps the whole team.

Sample answer 2: a planning mistake

Situation. I was leading a migration of our dashboard from a legacy charting library to a new one.

Task. I gave product a four-week estimate.

Action. I based it on the three chart types I’d prototyped. I hadn’t audited the rest, and in week two I found eleven custom chart variants with behaviour the new library didn’t support. I realised we’d miss the date by at least three weeks. I told my manager and the PM the same day, with a list of the variants, an estimate for each, and two options: slip the whole release, or ship the eight common charts on time and keep the legacy library for the rest behind a wrapper.

Result. We chose the second option. The main dashboard shipped on the original date and the remaining charts moved over the following month.

Learning. I now do an inventory before estimating any migration: count every usage and flag the unusual ones. I also give estimates as a range with the assumptions written down. That habit has made my estimates much more accurate, and my team now uses the same inventory template.

Why it works: the mistake is about judgement, not carelessness, and the candidate raised it early with options instead of hoping to catch up.

Follow-up questions to prepare for

  • “What would you do differently?”
  • “How did your team react?”
  • “How do you make sure it doesn’t happen again?”
  • “Tell me about another one.” Have a second story ready.

Similar questions that take the same structure: challenging feedback, an area of improvement, and a challenge in a project.

Mistakes to avoid in your answer

  • Blaming. Even if others contributed, describe your part.
  • Minimising. “It wasn’t a big deal” makes the story pointless.
  • Over-apologising. State what happened and move to the fix.
  • No lesson, or a vague one. “I learned to be more careful” isn’t a change. Name the test, checklist or habit.
  • Running long. Past three minutes, the interviewer has stopped listening.

Quick template

“I was responsible for [task]. I [the mistake], which caused [impact]. When I realised, I [immediate action] and told [who]. Then I [fix]. Since then I [specific change], and [evidence it worked].”

See the full list: top 20 behavioral questions for software engineers.