They would go fine in a 40g. They stay small. I had captive bred ones that were tiny and did fine (until the "purple tang incident" we do not speak of it). This time due to quantity, I got wild caught. still small though. I would have gotten captive bred as it would be my first choice.