You do need to know the *cubic feet* of the tank in order to calculate gallons.
Here’s an online volume calculator:
http://www.dep.state.pa.us/dep/deputate/waterops/redesign/calculators/volcalchtm.htm