Ideal would be 30gal tops but you can make the 40 gal work and save some money. just set it up correctly according to the many tips ytou can find all over this section.