Sub topic 9
Capacity and Velocity: Sizing a Sprint Realistically
This chapter assumes you know what a product backlog, a user story, and a story point are. It also assumes you have sat in at least one sprint planning meeting. Here you will learn how capacity and velocity work, how to combine them into a sprint size, and which mistakes make a plan look better than it is.
Two different questions
Planning a sprint means answering "how much can this team finish?" Two measures help, and they answer different questions.
- Capacity is the amount of working time the team has in the coming sprint. It looks forward.
- Velocity is the amount of work the team finished in past sprints, usually in story points. It looks backward.
Capacity tells you how much time is available. Velocity tells you how much finished work that time has tended to produce. You need both, because neither is reliable alone.
Calculating capacity
Capacity starts with people and days, then subtracts what is not available for sprint work.
- Count the working days in the sprint. A two-week sprint usually has 10.
- For each developer, subtract planned absence: vacation, public holidays, training, interviews.
- Subtract recurring commitments outside the sprint, such as on-call duty or support rotation.
- Compare the result with the previous sprint.
A simple example for a team of five developers in a 10-day sprint:
| Developer | Days available | Notes |
|---|---|---|
| Ana | 10 | None |
| Ben | 8 | Two days of vacation |
| Chi | 10 | None |
| Dev | 5 | On-call this sprint, a public holiday |
| Eli | 10 | None |
| **Total** | **43 of 50** | **86% of full capacity** |
You do not need to convert days into hours. The ratio is enough: this sprint has about 86% of the people-time of a full sprint.
The product manager is not counted in developer capacity. You still need to know the numbers, because they change what you should ask the team to take on.
Velocity: what it is and is not
Velocity is the sum of story points for stories that met the Definition of Done in a sprint. Count only finished stories. A story that is 90% complete contributes zero points. The unfinished work carries over, and its remaining effort is estimated again for the next sprint.
Velocity is a property of one team. Points are relative sizes that each team defines for itself, so a velocity of 40 on one team says nothing about a team with a velocity of 25. Comparing teams, or ranking them by velocity, is meaningless and encourages inflating estimates.
Velocity also drifts. Team changes, new codebases, and release pressure all shift it. Use a short window of recent sprints rather than a lifetime average.
Combining the two
A practical method is to start from recent velocity and adjust it for the capacity of the coming sprint.
- Take the average velocity of the last three sprints.
- Compute the capacity ratio: available days for the coming sprint divided by available days in those earlier sprints.
- Multiply them to get a planning range.
completed_points = [21, 18, 24, 20] # points finished in recent sprints
recent = completed_points[-3:]
average_velocity = sum(recent) / len(recent)
typical_days = 50 # developer-days in a normal sprint
this_sprint_days = 43 # from the capacity table
capacity_ratio = this_sprint_days / typical_days
suggested_points = average_velocity * capacity_ratio
low = min(recent) * capacity_ratio
high = max(recent) * capacity_ratio
print(f"Average velocity: {average_velocity:.1f}")
print(f"Capacity ratio: {capacity_ratio:.2f}")
print(f"Suggested scope: about {suggested_points:.0f} points")
print(f"Plausible range: {low:.0f} to {high:.0f} points")With these numbers the average velocity is 20.7 and the capacity ratio is 0.86, so the suggested scope is about 18 points, within a range of roughly 15 to 21. The output is a starting point for the conversation. The team makes the final call, because developers own the forecast of how much they can complete.
Using the range with the sprint goal
A range lets you plan with flexibility. Fill the sprint in layers:
- First, the stories needed for the sprint goal, which should fit comfortably within the low end of the range.
- Then, flexible stories that fill the space up to the average.
- Keep the stories above the average in the backlog as optional pull-in work.
If the must-have stories alone use the whole range, the goal is too large. Narrow the goal instead of stretching the plan.
Common errors
- Treating velocity as a target. When a team is rewarded for higher velocity, estimates inflate and the number stops meaning anything. Velocity is a forecasting tool.
- Ignoring absences. Planning from average velocity alone overcommits in a holiday sprint.
- Counting partial credit. Awarding half points for unfinished stories hides carry-over and makes the next forecast optimistic.
- Changing the point scale. If the team redefines what a "3" means, earlier velocity data no longer applies. Expect to rebuild the average over a few sprints.
- Planning at 100%. Bugs, meetings, reviews, and interruptions consume time. Velocity already includes this overhead, which is why you should not also plan on top of it.
- Pressuring the team to commit above the range. A product manager who negotiates scope upward makes the next sprint's data worse.
Your role in the conversation
Your job is to come to planning with a prioritized, refined backlog and a draft goal. You also supply the information that changes capacity: launch dates, stakeholder availability, and decisions you are waiting on. Ask the team how confident they are in the range, and accept the answer. When the plan comes in smaller than you hoped, ask which stories are most valuable to keep. Do not ask the team to work faster.
Exercise
A team's last three sprints finished 24, 20, and 22 points. Next sprint has 36 developer-days available, against a typical 45. Roughly how many points should you suggest as the planning scope, and what should you do if the must-have stories for the sprint goal total 22 points?
Show answer
The average velocity is 22. The capacity ratio is 36 / 45 = 0.8, so the suggested scope is about 22 × 0.8 ≈ 18 points. The must-have stories at 22 points exceed it, so the goal is too large for this sprint. Narrow the goal or move some must-have stories out, and agree on the change with the team rather than asking them to take on more.
Exercise
A story was demonstrated to the product manager but failed the Definition of Done because it has no automated tests. How many points does it add to this sprint's velocity, and why does that matter?
Show answer
Zero points. Velocity counts only work that meets the Definition of Done. Giving partial credit would inflate the velocity figure and make future forecasts too optimistic.