Well, I just spent three days in training with these guys: http://www.morrigan-consulting.com to learn that and much more about the shotgun.
The short answer is: depends on your target, barrel, choice of load, and choke (if any).
For defensive use, I found that 00 (Usually called 'double-aught buck') buckshot is *generally*, although not always, effective to about 15-20 yards. Beyond that, the pattern opens up such that most pellets are not hitting in a human torso. In our class, my shotgun (rem 870 Police Magnum with a cylinder bore and 18.5" bbl) would pattern all the pellets onto a 11X17" piece of paper out to 15-20 yards depending on brand of buckshot used. Beyond that, I had to go slugs in order to keep from hitting non-targets; the pattern of the buckshot would be wider than a torso and this creates a severe hazard for other non-targets downrange!
Your basic 1oz slug fired from a shotgun with sights is fairly easy to put in a torso-sized target in under 2s out to about 50 yards. Good shooters can extend this to 100 yards. Some specialty slugs in rifled barrels can go a little over 200 yards. Guys in our class that had only bead sights had trouble getting them on the paper reliably at 50 yards.
#4 buckshot is lighter and will not reach as far as 00 shot, so its range is a little less.
Your best bet is to go get a B-27 silhouette target and pattern your shotgun with your load and your barrel. Shoot at 5, 7.5, 15, 20, and 25 yards. At either some distance, usually 15 to 20, your group will 'Doughnut' and some pellets will be outside the target zone. This is the limit of usability of this load in your gun.
Hope this helps!
What shotgun, load, and targets do you have in mind?