40 gallons is fine for a tray of that size. Remember, your media displaces a large volume of water during 'ebb' time.