Sub topic 9
Relative estimation, story points and velocity
This chapter assumes you know the difference between effort and duration, can break work into small tasks, and have seen group estimation methods such as planning poker. It covers how teams estimate by comparison, what story points measure, and how velocity turns those points into a forecast.
Why estimate relatively
People are poor at saying "this takes 11.5 hours" and fairly good at saying "this is about twice as big as that". Relative estimation uses the second skill. You do not estimate an item in hours. You compare it with items you already understand and give it a size in the same scale.
Relative sizing has three practical advantages:
- It is fast. Comparing two items takes seconds, while building a bottom-up hour estimate takes much longer.
- It does not depend on who does the work. A senior and a junior developer may take different times, but they can usually agree that one item is larger than another.
- It absorbs a lot of fuzziness. Sizes such as 3 or 8 do not pretend to be precise.
The cost is that points say nothing about the calendar until you measure how many points the team finishes in a period. That measurement is velocity.
What a story point measures
A story is a small piece of user-visible work, such as "a user can reset a password". A story point is a unit of relative size for such an item. It combines three things:
- The amount of work involved.
- The complexity of that work.
- The uncertainty or risk in it.
A story point is not an hour or a day. It belongs to one team. One team's 5 is not the same as another team's 5, so points must not be compared across teams or used to rank them.
The scale
Most teams use a modified Fibonacci sequence: 1, 2, 3, 5, 8, 13, 20. The gaps widen as numbers grow. This is deliberate. The larger an item is, the less accurately you can size it, so the scale does not let you claim a difference between 14 and 15. Items bigger than about 13 should be split before they enter a sprint, which links back to work breakdown.
Some teams use T-shirt sizes (S, M, L, XL) instead. They carry the same relative idea but cannot be added up, so they must be converted to numbers before you can compute a velocity.
Setting up a reference
Relative estimates need an anchor. Pick one or two finished stories that everyone remembers and give them a size. For example:
| Reference story | Points | Why |
|---|---|---|
| Add a "last login" field to the profile page | 2 | Small change, one layer, no unknowns |
| Password reset by email | 5 | Several layers, an email integration, some edge cases |
| Import customers from a CSV file | 8 | Validation, error handling, large data, unclear formats |
New items are then sized by asking "is this closer to the password reset or to the CSV import?". Keep the anchors visible during estimation, and replace them if the product changes so much that they no longer represent typical work.
Velocity
Velocity is the number of story points a team completes in one iteration (a sprint, typically one to four weeks). Only items that meet the team's definition of done count. A story that is 90% finished scores zero. Partial credit rewards starting work over finishing it and hides the real rate of delivery.
Once you have several iterations of data, velocity gives you a forecast:
- Size the remaining backlog in points.
- Take the team's recent average velocity.
- Divide the backlog by the velocity. The result is the number of iterations remaining.
A team with a 120-point backlog and an average velocity of 24 needs about five sprints. This is how points become calendar time without anyone ever converting a point to hours.
Forecasting with a range
Velocity varies, so a single average hides risk. Use the spread of recent sprints to give a range, in line with the earlier chapters on uncertainty.
from math import ceil
# Points completed in the last six sprints
history = [21, 27, 18, 25, 23, 20]
backlog = 120
slow = min(history)
fast = max(history)
average = sum(history) / len(history)
def sprints(points, velocity):
return ceil(points / velocity)
print(f"average velocity: {average:.1f}")
print(f"best case: {sprints(backlog, fast)} sprints")
print(f"likely: {sprints(backlog, average)} sprints")
print(f"worst case: {sprints(backlog, slow)} sprints")With these numbers the average is 22.3, so the likely case is 6 sprints. The best case is 5 sprints and the worst case is 7. Reporting "5 to 7 sprints, most likely 6" is more honest than "5.4 sprints". Using the minimum and maximum of six sprints is a rough approach. It is a simple range, not a statistical confidence interval, and you should say so when you present it.
Where relative estimation goes wrong
Estimate drift
Over time, teams tend to give the same work a larger number. If a "3" gradually becomes a "5", velocity rises while real output stays flat, and forecasts based on old and new sprints no longer agree. Re-check sizes against the reference stories from time to time. When you notice drift, do not edit old estimates. Start measuring velocity from the point where sizing became consistent again.
Using velocity as a target
Velocity describes a team. Once managers set it as a goal or compare teams, people have a reason to inflate points. Velocity then rises and means nothing. Treat it as a planning input for the team, not a performance measure.
Treating points as hours
Teams under pressure often agree that "one point is about half a day". This turns relative sizing into a poor hour estimate and removes its benefits. It also breaks when the team changes, because the conversion no longer holds.
Changes in team capacity
Velocity assumes a stable team. Holidays, illness, new members and shifts to other work change how much can be done. Adjust the forecast rather than the points. If two of six people are away for a sprint, expect roughly two thirds of the usual velocity, and say so in the plan. This ties back to focus and availability.
Unfinished work and carry-over
If stories regularly roll over to the next sprint, velocity swings: low in one sprint, high in the next. Smaller stories reduce this. A sprint holding eight stories of 3 points is more stable than one holding two stories of 13.
Unestimated work
Bugs, support requests, meetings and unplanned work reduce the points available for planned stories. Two approaches work. You can estimate and count them, or you can leave them out and accept that velocity already reflects the time they take. Pick one and use it consistently. Mixing the two makes the numbers unreliable.
New teams
A new team has no velocity. Use a short trial: run two or three sprints, record what is finished, and treat early forecasts as very wide ranges. Avoid borrowing another team's velocity. Their points are not yours.
Relative estimation and the other techniques
Relative estimation does not replace the earlier techniques. It suits work that is similar to what the team has done before, in a team that stays stable and delivers in short iterations. For a fixed-price bid made early in a project, analogous or parametric methods give a better starting point. For a task with a hard external deadline and many dependencies, you still need the critical path and effort converted to a schedule. Points tell you how much the team can do in a period, not when a dependency on another group will be resolved.
| Situation | Better fit |
|---|---|
| Stable team, steady flow of similar stories | Story points and velocity |
| Early bid with little detail | Analogous or parametric estimate |
| One-off task with an outside deadline | Three-point estimate and critical path |
| Very small items of similar size | Counting items (throughput) |
The last row deserves a note. When stories are all roughly the same size, counting finished items per sprint predicts about as well as points and needs no sizing meetings. Some teams drop points for this reason. The forecast arithmetic is identical: remaining items divided by items finished per sprint.
Calibrating over time
Compare each sprint's forecast with what happened. Keep a record of the planned points, the completed points, and the reason for any gap, such as an absence or a story that turned out larger. After a few sprints, patterns appear. A team that consistently completes 80% of what it plans should plan for 80% of its capacity rather than hoping for a better result. This is the same calibration idea used for hours-based estimates, applied to the team's own delivery rate.
Exercise
A team finished 16, 22, 19 and 23 points in its last four sprints. The remaining backlog is 150 points. Give a best-case, likely and worst-case forecast in sprints, using the maximum, average and minimum velocity. Then name one reason the range may still be too optimistic.
Show answer
The average velocity is (16 + 22 + 19 + 23) / 4 = 20. Best case: 150 / 23 = 6.5, rounded up to 7 sprints. Likely: 150 / 20 = 7.5, rounded up to 8 sprints. Worst case: 150 / 16 = 9.4, rounded up to 10 sprints. So the range is 7 to 10 sprints, most likely 8. The range may be too optimistic because only four sprints of data exist, the backlog may grow as new stories are added, and holidays or absences could lower velocity in future sprints.
Exercise
A manager notices that Team A has a velocity of 40 and Team B has a velocity of 25, and asks Team B to "catch up". Explain why this request is a problem and what you would measure instead.
Show answer
Story points are relative to each team's own reference stories, so 40 points for Team A and 25 points for Team B do not measure the same amount of work. Comparing them has no valid basis. The request also gives Team B a reason to inflate its estimates, which raises velocity without delivering more. Better measures are things that can be compared across teams, such as lead time for finished items, how often forecasts were met, or the number of defects found after release, each read in the context of the team's work.