This concept is similar to the "acre-foot" used in irrigation allocations, which is the volume of one foot (twelve inches) of water spread across an acre of land. One acre-foot equals 1233.4818375475 cubic metres, or 325851.42857143 US gallons, of water. Dividing these by twelve (for an "acre-inch") gives us 27154.285714286 US gallons, which is provided (along with many other conversions) at http://online.unitconverterpro.com/conversion-tables/convert-alpha/factors.php?cat=volume&unit=1&val=
A square mile holds exactly 640 acres, so 640 x 27,154.285714286 = 17,378,742.8571264 US gallons (or 14,470,830.538448 Imperial gallons, or 65,785.69800253 cubic metres).