Should you estimate bugs and spikes? Spikes are usually timeboxed rather than estimated: the team decides how much time the investigation may take, for example two days, and stops when the time runs out. Bugs can be handled in three ways: estimate them like stories, reserve a fixed share of capacity for them, or fix small ones without estimating. Any of the three works if the team applies it consistently and understands what it does to velocity.
The difficulty is that both types of work are dominated by uncertainty. A bug may take ten minutes once found, but finding it may take a day. A spike exists precisely because nobody knows the answer yet. This guide explains how to deal with each, with examples.
What makes bugs and spikes different
A normal user story describes a change the team understands well enough to size against reference stories. Most of the effort is in building, and the uncertainty is moderate.
A spike is time spent learning: trying a library, measuring performance, reading an unfamiliar API, prototyping a design. Its output is knowledge, often a decision and a set of better estimated stories. Its effort is whatever the team decides to spend.
A bug is a gap between expected and actual behaviour. Its effort splits into two very different parts: diagnosis, which is unpredictable, and the fix, which is often small. Estimating the whole thing before diagnosis is like estimating a journey before knowing the destination.
How to timebox a spike
A spike needs three things before it starts:
- A clear question. "Can we generate PDF invoices with our current server setup, and which library fits?" is a spike. "Look into PDFs" is not.
- A timebox. Agree how much time the question is worth, for example one person for two days. The timebox reflects the value of the answer, not a guess at how long the research will take.
- An expected output. A short written finding, a recommendation, a throwaway prototype, and new or re-estimated stories for the real work.
When the timebox ends, the team reviews what was learned. If the question is answered, the follow-up stories get estimated normally. If not, the team decides explicitly whether a second spike is worth it. That decision is the whole point: a timebox turns open-ended research into a choice.
Should spikes have story points?
Teams differ. Some give a spike a point value sized against their reference stories, for example a 3 for a two-day investigation, so it fits the sprint plan alongside stories. Others leave spikes unpointed and reduce planned capacity instead. Both approaches are reasonable. What matters is not double counting: if the spike carries points, do not also subtract its time from capacity.
Three options for handling bugs
| Option | How it works | Effect on velocity | Fits best when |
|---|---|---|---|
| Estimate bugs like stories | Each bug is refined and sized in points | Bug work is counted in velocity | Bugs are few, large and well understood |
| Reserve capacity | A fixed share of the sprint, for example 15%, is kept for bugs, which are not pointed | Velocity covers only new work; bugs reduce capacity | Bugs arrive steadily and are hard to predict |
| Fix small bugs, size big ones | Bugs under an agreed size are fixed without estimates; larger ones become estimated stories | Small bugs are invisible in velocity | Most bugs are quick fixes, a few are real projects |
Option 1: estimate bugs like stories
This is the simplest rule and keeps all work in one currency. It works when a bug is already diagnosed, for example "The export button produces a CSV with the wrong date format; the formatter ignores the locale". The team knows the cause and can size the fix against its reference stories, using the same story points scale.
The risk is spending estimation time on bugs that nobody understands yet. A vote of 1, 3 and 13 on a bug usually means "we do not know where the problem is". In that case, timebox the diagnosis like a spike and estimate the fix afterwards.
Option 2: reserve capacity
The team looks at how much time bugs took in recent sprints and keeps that share aside. If bugs took roughly 15% of the last four sprints, the team plans 85% of its usual velocity in stories. Bugs are worked from a separate queue, in priority order, without points.
This option is honest about unpredictability and keeps estimation sessions focused on new work. Its weakness is that the reserved share can quietly grow. Check it at each retrospective.
Option 3: fix small bugs, size big ones
Many teams combine the two. Anything that a Developer believes can be fixed and tested in under a few hours is just fixed. Anything larger becomes a story, gets refined and is estimated. The threshold should be explicit, or every bug will be described as small.
How each choice affects velocity
Velocity is only useful for forecasting if it is calculated the same way every sprint. Here is the same sprint under different rules. A team completes 22 points of new stories, plus fixes for two bugs that would each have been a 3.
- With option 1, velocity is 28. The forecast for future sprints assumes some bug work will continue.
- With option 2, velocity is 22, and the team plans 22 points of stories next sprint while keeping its bug reserve.
- With option 3, if both bugs were small, velocity is 22 and the bug time is absorbed silently.
None of these numbers is wrong. Problems start when the rule changes from sprint to sprint, or when bugs are pointed only in sprints where velocity looks low. Pick a rule, write it down, and keep it. The sprint velocity guide explains how to read the numbers.
A common objection to pointing bugs is that the team "gets credit" for fixing defects it created. That is a concern only if velocity is treated as a performance score. Used as a forecasting tool, velocity just needs to reflect the work the team will keep doing.
A worked example
A team building a booking system starts refinement with three items:
- "Customers in Australia see booking times one hour off after daylight saving changes." Nobody knows yet whether the problem is in storage, conversion or display. The team creates a one-day diagnosis timebox and does not estimate the fix.
- "The cancel button on the confirmation email links to the old domain." Cause known, fix tiny. Under the team's threshold, so it is fixed without an estimate.
- "Evaluate whether we can support recurring bookings with our current calendar library." This is a spike: two days, output a recommendation and estimated stories.
After the diagnosis day, the time zone bug turns out to be a conversion error in one function plus missing tests. The team now estimates the fix at 3 points and plans it like any story.
Common mistakes
- Estimating undiagnosed bugs. The vote spread is huge and the number is meaningless. Timebox the diagnosis first.
- Open-ended spikes. A spike without a timebox is just unplanned work with a label.
- Switching rules between sprints. This makes velocity unusable for forecasting.
- Hiding bug work entirely. If bugs are neither pointed nor reserved, the team will keep missing its plan without knowing why.
- Using spikes to avoid splitting. If a story is understood but large, it needs splitting, not research.
Frequently asked questions
Should bugs be estimated in story points?
They can be. Diagnosed bugs can be sized like stories. Many teams instead reserve a share of capacity for bugs, or fix small bugs without estimates and size only large ones. Consistency matters more than the choice.
Should spikes have story points?
Some teams give a spike a point value that matches the size of its timebox, others leave it unpointed and reduce capacity. Either works, as long as the time is not counted twice.
How long should a spike be?
As long as the answer is worth. Many teams keep spikes to a day or two for one person. The timebox is agreed before the spike starts, and the team reviews the outcome when it ends.
Do bug fixes count toward velocity?
Only if the team points them. If bugs are handled through reserved capacity, velocity covers new work only. Either approach supports forecasting if it is applied the same way every sprint.