Eak8dda/iStock/GettyImages

When it comes time to fill a rectangular tank, whether it’s an aquarium or a swimming pool, the number of gallons the task may seem mysterious. That’s probably because many people don’t have a very good sense of how much space a gallon takes up. Calculate how much water (or any other liquid) a tank can hold by measuring the tank's volume and convert that figure to gallons.

Measure the length, width, and depth of the interior of the tank in feet and inches. Convert the dimensions to decimal feet by dividing the number of inches by twelve and adding to the number of feet. For example, 7 feet 9 inches is 7.75 feet.

Calculate the tank’s volume in cubic feet. The product of the length, width and depth equals volume. For example, 7.75 feet long by 4.5 feet wide by 3 feet deep would be 7.75x4.5x3 = 104.625 cubic feet.

Convert the volume in cubic feet to the capacity in gallons. Multiply the tank’s volume by 7.48, the number of gallons in a cubic foot. For example, 104.625x7.48 = 782.6 gallons.