To calculate gallons in a square tank, find the volume in cubic feet by multiplying the length x width x height in feet. Then multiply the total cu ft by 7.5.