The formula
Volume = π ÷ 4 × bore² × length. Use the inside diameter (the bore), not the size on the label: 3/4 in Type L copper has a 0.785 in bore. In inches, gallons per foot = π ÷ 4 × bore² × 12 ÷ 231, because a foot is 12 in and a gallon is 231 cubic inches.