Estimation and planning under uncertainty
Give estimates as honest ranges, shrink them by removing unknowns, and keep your plan true when the facts change.
Updated since you finished it. We changed this lesson after you marked it done. Your progress is kept.
What broke
This story is made up, but it happens often. Meera's team runs checkout for an online pharmacy. In a planning meeting, the PM asks how long it will take to add a second payment provider. Meera has done one before. "About two weeks," she says.
By the evening, "two weeks" is on the roadmap as a launch date. Marketing books a campaign for the day after.
In week 2 Meera finds the problems. The new provider handles refunds in a different way. Its test system is down for days at a time. The finance team needs a new daily report. None of this was in her head when she said "two weeks".
She tells the PM in week 5. The campaign is cancelled. The feature ships in week 7. Seven weeks was a normal result for this kind of work. The real failure was a quick guess that became a promise, and the late warning.
The idea in simple words
Steve McConnell separates three things that people mix up: 1
- An estimate is "a prediction of how long a project will take or how much it will cost".
- A target is "a statement of a desirable business objective", such as a trade fair date.
- A commitment is "a promise to deliver defined functionality at a specific level of quality by a certain date".
When managers ask for an estimate, they often want a commitment, or a plan to meet a target. 1 McConnell says estimation should be unbiased. Planning, in contrast, is biased on purpose toward a goal. 1 Mix them, and the target quietly replaces the estimate.
McConnell also says a single-point estimate is "usually a target masquerading as an estimate". 1 Outcomes have a long tail on the late side. There is a limit to how well a project can go, but no limit to how badly. 1
Why are early guesses so optimistic? Bent Flyvbjerg sums up the research. In 1979, Kahneman and Tversky found human judgment to be generally optimistic. So people underestimate the costs, time and risks of their plans. 3 Flyvbjerg cites a 2003 paper by Lovallo and Kahneman that calls this behavior the planning fallacy. 3 They say it comes from the "inside view": you think about the details of your own plan, not about how similar work turned out. 3
The key idea. An estimate is a range with a level of confidence. You make it smaller by removing unknowns, not by thinking harder. Keep it separate from the target, and decide the commitment only when the range is small enough.
The working with PMs lesson shows the Cone of Uncertainty and why you give ranges. Here you learn how to make the range, and how to shrink it.
How it works
Step through one estimate as the team removes unknowns. Use Next and Back, or the ← and → keys.
- At the first idea, the honest range is wide: 3 to 12 weeks. The team does not know if the vendor's API supports partial refunds.
- A 3-day spike answers the refunds question. Some of the slow cases are now ruled out, and the range shrinks to 5 to 10 weeks.
- A rough prototype sends one test payment from start to end. The finance report is the main open question left. The range is 6 to 9 weeks.
- The first milestone is live for staff only. Most unknowns are gone. Now the team can make a commitment: 6.5 to 8 weeks.
- The feature ships in 7.5 weeks, inside every range the team gave. The range shrank only because the team did work to remove unknowns. Waiting alone would not have shrunk it.
1. Start from the outside view
Before you list tasks, ask: how long did similar work take us before? This is reference class forecasting. Flyvbjerg gives three steps. Pick a class of similar past projects. Find how their results were spread. Place your project in that spread. 3
His best-known story is about Kahneman himself. Kahneman's team was writing a school curriculum, and its members guessed 18 to 30 months. Then a curriculum expert on the team was asked about similar teams. About 40% of them never finished. The rest took seven to ten years. The team went on anyway and finished eight years later. 3
For you, the reference class is your ticket history. Look up the last five similar features and what they really took.
2. Break the work down
Then use the inside view to check the outside one. Split the work into pieces of a few days. Write the unknowns next to each piece: "Does the vendor support partial refunds?" Shape Up separates imagined tasks, which you list before you start, from discovered tasks, which you find while doing the real work. 5 So your list will grow. Leave room for that.
3. Remove unknowns with spikes
You cannot make an estimate more accurate just by spending another week on it. McConnell says the only way to reduce the variability in an estimate is to reduce the variability in the project itself. 2 The cone narrows only as you make decisions that remove variability. 2 The cone also shows the best case. In a project that does not remove unknowns, the range can stay wide to the end. 2
A spike solution is a very simple program that explores one hard question and ignores everything else. Expect to throw it away. Its goal is to reduce risk or make an estimate more reliable. 4 For a hard problem, XP suggests putting a pair of developers on it for a week or two. 4 Shape Up gives the same order: push the scariest, most unknown work "uphill" first. 5
4. Give a range and a confidence
Say it like this: "5 to 9 weeks. I am about 80% sure we finish within 9." Flyvbjerg shows how the safety margin depends on the risk you accept. For UK road projects, a 50% chance of going over budget needed a 15% uplift. A 20% chance needed 32%. 3 The lower the risk you accept, the bigger the buffer.
Make the buffer visible, one line in the plan. He also warns that a large reserve can be spent just because it exists. 3
5. Fit the plan to the target
McConnell says the main purpose of estimation is not to predict the outcome. It is to check if the targets are realistic enough to control the project to meet them. 1 If the first target and the first estimate are within about 20% of each other, the project manager can usually adjust features, schedule or team size to meet it. 1 With a much bigger gap, talk with your PM about changing the target or the scope.
Shape Up's answer is to fix the time and let scope vary. 6 Decide with your PM which parts are must-haves before work starts.
6. Track and re-estimate
Every week, compare done work with the plan, and update the range. Say what changed and why. McConnell counts using measured team speed from early iterations to project the end date as estimation, and calls it "a really effective form of estimation". 7
7. When you will miss the date
Tell people the day you know. Bring options: cut scope, move the date, or both. Agree on the cut list early, so this talk is short. Cutting scope keeps quality; cutting tests does not.
A debated view: #NoEstimates
Woody Zuill started the #NoEstimates hashtag. He said estimates are not always needed. He did not claim they are bad in all cases. 8 Teams in this style deliver small working pieces often and decide based on what they deliver. 8 McConnell disagrees. He lists many business uses of estimates, such as budgets, staffing and release-date commitments to the market. 7 He says estimation is a skill every true software professional needs to develop. 7 He also agrees that in some contexts, estimates add little value. 7 A fair middle: slice work small, and still be able to give a range when the business asks.
Trade-offs
| Approach | Accuracy early on | Effort | Use it when |
|---|---|---|---|
| Single number from a gut feeling | No Often a hidden target. | Seconds. | Never for a date that others will plan around. |
| Task breakdown only (inside view) | Often too optimistic. | Hours. | You also check it against past data. |
| Past data (outside view) | Yes , if the past work is truly similar. | An hour with your ticket history. | You have done similar work before. |
| Spike first, then estimate | Yes It removes the biggest unknown. | A few days. | One unknown drives most of the range. |
| Fixed time, variable scope | The date holds; the scope moves. | Needs clear priorities. | A hard date, such as a sale or a law. |
| No estimates, small slices | No long-range date. | Low. | The business can work without a date. |
Simple rule: start from past data, remove the biggest unknown first, and commit only when the range is small enough for the decision at hand.
At work: how a senior uses this
- When asked "how long?", ask back: "Is there a target date? What decision does this estimate support?"
- Never give a number in a meeting. Say: "I will send a range tomorrow."
- Keep a simple sheet of past features: first estimate, real time, and what surprised you.
- Write the top three unknowns into the estimate, each with a plan to remove it.
- Run spikes before you commit. Time-box them, and throw the code away.
- Give a range with a confidence, and a date when the range will shrink.
- Re-estimate every week, and share the new range even when it is worse.
- When a slip appears, tell the PM the same day with options. See technical debt management for how debt silently widens your ranges.
With AI
What to ask the agent
"Here is a feature description. Break it into tasks of 1 to 3 days. For each task, list the unknowns and the question a spike should answer."
"Here are our last 10 features with first estimates and real durations. Show me the ratio of real to estimated time, and the spread. What range would a similar new feature get?"
"Write a short update for my PM: our range moved from 5–9 weeks to 7–9 weeks. Say why, what we will cut if needed, and when we will know more."
What to check yourself
- The task list includes the boring work: tests, rollout, monitoring, docs and the review cycle. Agents often skip it.
- The past data really is similar work. A wrong reference class gives a confident, wrong range.
- The agent's numbers come from your data, not from typical figures it invented.
- An agent can make coding faster, but the unknowns stay. Vendor answers, reviews and approvals take the same time.
- The update states the bad news plainly in the first line.
Check yourself
Your progress is saved only in this browser. Export it to keep it safe.
You have finished 5 lessons. Your progress lives only in this browser. Export a copy so you don’t lose it.
Go deeper
Show 8 sources and related lessons
- Steve McConnell, “Demystifying the Black Art of Software Estimation: What Is an ‘Estimate’?”, Microsoft Press Store (2006), excerpt from Software Estimation: Demystifying the Black Art, chapter 1 (opens in a new tab)
Estimates, targets and commitments; why a single number is usually a target; and the real purpose of estimation. Four short web pages. - Steve McConnell, “Software Development's Cone of Uncertainty”, Construx white paper (2010) (opens in a new tab)
Why more time alone does not improve an estimate, and how decisions narrow the cone. - Bent Flyvbjerg, “From Nobel Prize to Project Management: Getting Risks Right”, Project Management Journal 37(3), 2006 (opens in a new tab)
The planning fallacy, the inside and outside view, the three steps of reference class forecasting, and buffers set by acceptable risk. - Don Wells, “Create a Spike Solution”, ExtremeProgramming.org (opens in a new tab)
A short page on spikes, small throwaway programs that reduce risk and improve estimates. - Ryan Singer, Shape Up, chapter 13: “Show Progress” (Basecamp) (opens in a new tab)
Hill charts, uphill unknowns against downhill execution, and why to do the scariest work first. - Ryan Singer, Shape Up, chapter 3: “Set Boundaries” (Basecamp) (opens in a new tab)
Appetite as a time budget, and fixed time with variable scope. - Steve McConnell, “17 Theses on Software Estimation”, Construx blog (opens in a new tab)
McConnell's reply to - Matt Heusser, “‘No Estimates’ in Action: 5 Ways to Rethink Software Projects”, CIO (2013) (opens in a new tab)
Where
Related: Working with PMs and the business · Managing technical debt · Leading a multi-team project (coming soon) · Latency numbers and back-of-envelope maths · Design docs and RFCs
Before this: working with PMs and the business. Next: leading a multi-team project. Related: technical debt management.