Writing
How to estimate work when the unknowns are the work
Discovery is part of the work, so it belongs inside the estimate. How I stopped giving one number, started giving three scenarios, and what a badly wrong estimate taught me about managing uncertainty.
- Published
- Updated
- Reading time
- 13 min read

At my previous job, I learned to hate a question that sounds harmless: "how long will this take?"
The question is fine. My answers were the problem. I used to reply right away, with one number, because that's what the person wanted and because "I don't know yet" feels like admitting you're bad at your job. Then the number went into a slide or a roadmap, and from that moment it stopped being my guess and became a promise.
I do this differently now, and this post is about how and why. It's not a methodology and I'm not going to give it a name. It's what I actually do, shaped by one estimate that went badly wrong.
#When finding out is the work
If you've built something many times before, the work is mostly doing it, and an estimate is a fairly honest description of the doing. Most of the interesting projects I've worked on weren't like that. A large part of the effort went into finding out what the thing even was: which rules applied, how the old system really behaved, what the other side's API did when you sent it something unusual.
That finding out takes real time and real skill. When an estimate prices only the building and treats the learning as something that happens for free off to the side, it's wrong before anyone writes a line of code. You priced the easy part.
This is why "just give me a rough number" makes me uncomfortable. A rough number is still a number, and it will be remembered with far more precision than I gave it.
#The simple feature that isn't
Most of the unknowns I've run into were edge cases. A feature can look trivial from the outside and hide a pile of rules, exceptions and states that only show up once you're building it. Another feature can look intimidating on a slide and turn out to be mostly straightforward.
Apparent complexity and real complexity have surprisingly little to do with each other, and the people asking for the estimate usually only see the apparent one. That's where the arguments start. "This is just a form, why would it take two weeks?" Because the form has to respect every rule, every existing record and every other part of the system that touches it, and nobody has written those down yet.
I've written before about what happens when you hide this complexity. The estimate is the first place where it gets either respected or ignored.
The unknowns came from the usual places:
- Business rules I didn't understand yet.
- Legacy code that nobody had documented.
- Third-party APIs that behaved differently from their documentation.
- Requirements that moved halfway through.
- Infrastructure and performance surprises that only appear under real conditions.
Here's the uncomfortable part. I can't list the edge cases before I start. Nobody can, because finding them is what the work consists of. What I can do is expect them, and size that expectation by how complex the task is and how many parts of the system it touches.
I also don't count on domain experts to hand me every edge case. They know their domain far better than I do, which is exactly why they forget what's obvious to them.
#Why one number lies
A single number says "I know". It carries a precision the situation doesn't have. Worse, it anchors. Whoever hears "ten days" will keep hearing "ten days" no matter how many caveats follow.
A range does something a single number can't: it tells the reader where I'm unsure. A narrow range says I understand this well. A wide one says there's something here I haven't pinned down, and that I know it.
So I refuse to give a number right away. Some people read that as dodging. I think the fast answer is the one that skips the thinking.
#What I do before giving any number
I try to reduce the uncertainty first. That means three things, in this order:
- Work out what I don't know. I write it down, because a vague worry is hard to estimate and a named question is easier.
- Break the work into pieces. Some pieces turn out to be boring and well understood. Others are where the doubt is concentrated.
- Find the biggest uncertainty, the one that could make my whole estimate wrong.
The third step matters most. It's tempting to spend the effort on the many small unknowns because they're easier to resolve. But one unknown usually dominates the estimate, and if that one goes against me, nothing I figured out about the small ones will save the schedule.
Only after that do I give three scenarios instead of a number: optimistic, most likely and pessimistic.
Here's what they mean in plain words. The optimistic scenario is what happens if everything goes right and nothing surprises me. The most likely one is what I'd bet on, which includes the ordinary friction of real work. The pessimistic one is what happens if the biggest uncertainty goes the wrong way. It isn't a disaster scenario. It's the version of events where I was unlucky on the one thing I was most worried about.
It sounds like this:
The most likely estimate is 7 working days. Given the uncertainty around the webhooks problem, I'd give a range of 4 to 12.
Seven days is my best guess. The range is the honest part, because it tells you how much I trust that guess and where the risk comes from.
#Spikes, and when to stop
When one unknown dominates, I run a spike. A few hours, no more. The goal isn't a working solution. The goal is a smaller range.
If the spike answers nothing, I take that as information too. It means I haven't reduced the uncertainty enough to decide with confidence. I don't respond by running a longer spike, because that's how an investigation turns into an infinite loop that eats the schedule it was supposed to protect.
When the investigation stops producing useful information, I stop and reconsider the approach. Maybe I'm asking the wrong question, or the unknown can't be resolved from where I'm standing and needs a person or a real environment.
#Estimating the known, isolating the unknown
Some uncertainty can't be removed up front, no matter how many spikes I run. In that case I estimate the part that's certain and isolate the part that isn't. The unknown stays visible, with a label on it, instead of dissolving into a comfortable total that looks more confident than it should.
One subtlety took me a while to get right. The things that lead into the unknown are known work too, so they get estimated. Getting access, setting up an environment, getting the right people in a room: all of that has a cost even when what's on the other side is unclear. I used to leave it out because it didn't feel like "the work", and it was one of the reasons many of my estimates went wrong.
#When the most likely number becomes the deadline
Giving three numbers only works if everyone reads them the way I mean them, and that's the hard part.
What tends to happen is that the most likely estimate quietly becomes the expectation. Sometimes the best case becomes the deadline. A manager has annual targets, tells their own management a date that comes straight from my optimistic scenario, then gets pressured about it and passes that pressure down to me. By the time it reaches me, nobody remembers it was ever a range.
So I learned to explain what each number means, beforehand, and I say plainly that nobody should build plans on the best case. I'd rather have that slightly awkward conversation at the start than a worse one at the deadline.
Most people respond to this reasonably. Some don't. They question the estimate based on how simple the problem looks from the outside, with no interest in what's underneath. If stakeholders are collaborative enough, I carry on. If they aren't, I take my work somewhere else, with zero guilt. My health and peace of mind come first, and I've already written about why. I've also written about what corporate pressure does to software, and a lot of it starts with a date somebody chose for reasons unrelated to the work.
#The estimate that went wrong
My worst estimate, the one that completely changed the way I approach estimation, and indirectly motivated this post, was for a very complex internal platform development project. Part of the estimate; and a massive part of the work itself, depended on domain knowledge that I was supposed to acquire from domain experts. I assumed they'd be available and as committed to the project as I was. FYI, the project was high-stakes, and was part of their annual targets, their availability was part of their job, it wasn't just a luxury.
To my surprise, apart from a very few exceptions, they weren't available, at all. They kept avoiding meetings, important parts of the project were delayed, and I was blamed for the delay. At some point I stopped waiting and did a large amount of research in the domain to fill the gaps myself. When the work was finally done, the people who had been unavailable took the credit. I got no credit and no reward. Worse, I was punished for missing a date that I never chose. Stakeholders and higher-ups had set it, and I'd been given no say in it.
It felt horrible, and I won't pretend it didn't. It also taught me something concrete. I had treated people's availability as a constant, like the weather in a place where it never rains. But a dependency on a person is an unknown like any other, and it deserves a place in the estimate and in the conversation.
Now I do a few things differently:
- I estimate a separate period for gathering requirements, so that part is clear and isn't hidden inside development.
- I ask for well-planned workshops with domain experts, scheduled in advance.
- I write the experts' commitments down as part of the client's commitments on the project.
If those commitments are broken, the project is at risk, and everyone knows that from the start. It also means the people responsible are the ones accountable, instead of whoever is closest to the code.
That can sound harsh. But if a client isn't disciplined enough to commit to it, I'd rather learn that before I sign than three months in, when I'm already doing the research alone.
#Re-estimating without panic
An estimate isn't a one-time event. I set a baseline, break the work into milestones, and when new work shows up I re-estimate.
I try to do it without creating panic, and the three scenarios help here. The pessimistic one already contains room for things going wrong, so most changes should fit inside it. Anything that doesn't is something I should have flagged early, and often did. The goal is to keep changes predictable from the beginning, so that a new discovery is a point on a range everyone has already seen.
A re-estimate also isn't a confession. When an unknown resolves, the range shrinks or moves, and telling people quickly is the process working. The failures I've seen come from a team holding on to the original number as long as possible, then breaking the news at the end.
#What I disagree with
There are a few practices out there, that propose ways of handling estimates. I'm not going to dive into all of them, but here are the ones I have strong opinions about. None of this is universal. These opinions come from the projects I've worked on, and yours may differ, but I learned them the hard way.
#Story points and planning poker
Story points aren't useless inside a team, as a rough way to talk about relative size. The trouble starts when non-technical stakeholders treat them as a measure of productivity. That's a flawed assumption, and once it takes hold, the points stop describing the work and start describing a target. I wrote about a related problem in Software doesn't belong in a factory.
#Padding estimates by 2x
It's an old trick that I totally dislike: guess, then double it. The doubling is arbitrary, and it hides the uncertainty instead of describing it. A range tells the reader where the risk is. A doubled number tells them nothing, except that you don't trust your own estimate. Once people suspect padding, they start cutting estimates in half, and now nobody is estimating anything.
##NoEstimates
I partly agree with this approach. Metrics based on what has actually been delivered are more relevant than guesses made before the work started, and I'd rather have those than rough guesses. But businesses still have to plan, budget and make commitments to other people. Refusing to estimate doesn't make that need go away. I'd say the answer is to estimate honestly, then replace guesses with real data as quickly as it arrives.
#Fixed-scope, fixed-deadline contracts
These force both sides to agree on what will be delivered before either of them understands what delivering it involves. When the unknowns are the work, that agreement is a bet, and one side will lose it. Usually the side that loses is the one with less room to absorb the loss, and it'll most likely be you, my fellow engineer.
#Treating an estimate as a commitment
This is the root of most of the others. An estimate is a statement about uncertainty. A commitment is a decision someone makes with the estimate in hand. When the estimate is simply chosen as the deadline, the two get mixed up, and the engineer pays for it.
#AI-assisted estimates
AI didn't change how I estimate. It changed what stakeholders assume. Suddenly everyone is an expert in software engineering, because a chatbot can produce a confident number in seconds, or even spin up a working prototype. There is a real point worth noting here. A confident number isn't an understood problem, and a model can't see the legacy code nobody documented or know that an expert has stopped answering emails.
#What I'd tell my past self
Never assume the unknown. Go and uncover it, and separate it from what you already know. Estimate the known, plus the known things that lead into the unknown. Everything else is a range, and you should say so out loud before anyone writes a date on a slide.
And if the answer to "how long will this take?" is "I need a couple of days to tell you", that's a perfectly professional thing to say.
- Thoughts
- Project Management
- Self-reflection