I keep my juvenile in a 29-gallon, but she'll be moving up pretty soon. 40 gallons should keep the snake happy for its entire life - but something as small as ten gallons will comfortably house a neonate.