I used to have a chart for different pipe sizes, but the following formula will do it for any size:
.04079905 x d^2 = Gallons per foot (d = internal pipe diameter)
There are pipe dimensions for different schedule pipe in the Annex of NFPA 13. In 2007 edition it is Table A.6.3.2.