If a planet remains relatively small, with a radius less than 1.5 times Earth’s radius, then its gravity is not strong enough to hold onto a huge amount of atmosphere, like what’s on Neptune or Jupiter. If, however, it continues to grow larger, then it captures more and more gas which forms an atmosphere that causes it to swell to the size of Neptune (four times Earth’s radius) or Jupiter (11 times Earth’s radius).