Capacity is usually counted in person-days or hours. Start with the working days in the sprint multiplied by the number of Developers, then subtract known absences. Some teams also apply a focus factor, the share of time that actually goes into backlog items once meetings and interruptions are taken into account. Capacity looks forward at the coming sprint, while velocity looks back at what was completed.
Example
A team of five works in two-week sprints, so a normal sprint has 50 person-days. Next sprint has one public holiday (5 person-days) and one person on leave for 3 days, leaving 42. The team usually completes 40 points with 50 person-days, so it plans for about 40 × 42 / 50 = 33.6, roughly 33 or 34 points.
Common misunderstanding
Capacity is not a target to fill to the last hour. Planning every available hour leaves no room for surprises, and sprints planned that way often fail. Capacity is also best calculated for the team as a whole, not person by person, which encourages silos.
Why it matters for estimation
Capacity tells you when to plan less than your usual velocity. See the sprint capacity planning guide and the sprint capacity calculator.