The formula
Gallons = cubic feet × 7.48052. A US gallon is defined as 231 cubic inches, and a cubic foot is 12 × 12 × 12 = 1,728 cubic inches, so a cubic foot holds 1,728 ÷ 231 = 7.48052 gallons. The other way, cubic feet = gallons ÷ 7.48052, or gallons × 0.133681.