It begins spreading immediately as soon as it stops being a solid mass, which start happening as soon as it leaves the barrel, and happen extremely quickly when it encounters any resistance, you begin to work with the energy stored in each individual pellet.
Physics.
At short HD range(out to 7 yrds)there is almost no spread.