Definition
The Goldilocks zone (the habitable zone) is the range of space around a central star that's neither too hot nor too cold, so liquid water can stay stable on a planet's surface. It's seen as the first must-have condition for life to begin and thrive.
Not too hot, not too cold: just right
Imagine warming yourself by a campfire on a cold winter day. Stand right up close and you feel like you're burning. Stand too far away and the cold wind freezes you stiff. Only when you sit in a circle at a comfortable distance do you get that pleasant warmth.
Out in space, a central star like our Sun plays the part of a giant campfire. If a planet is too close to its star, the heat boils away every ocean. If it's too far, the whole world is buried under thick ice.
For liquid water, which life needs in order to appear and survive, to stay sloshing on a planet's surface, the distance from the star has to be just right. The name comes from the English fairy tale 'Goldilocks and the Three Bears,' where the girl Goldilocks eats the porridge that's not too hot and not too cold, but 'just right.'
The sweet spot moves with the size of the star
A big bonfire makes you stand back, while a small candle needs your hand held close. In the same way, the position and width of a Goldilocks zone vary a lot with the star at the center.
Around a blue star, much heavier and hotter than our Sun, the zone spreads out wide, far from the star. But a small, dim star like a 'red dwarf,' the most common kind in the whole universe, gives off little heat. A planet has to huddle right up next to it to get a warm temperature.
When astronomers find a new planet outside our solar system, the first thing they do is study the star's brightness and temperature. From that, they calculate the habitable zone and check whether the planet orbits inside it. If the conditions fit, the planet is listed as a strong candidate for a 'second Earth,' and astronomers observe it more closely.
A bit more precisely: being in the zone isn't the whole story
To be more precise, distance alone, inside or outside the Goldilocks zone, doesn't decide whether a planet becomes a paradise for life. Just look at our neighbors, Venus and Mars.
Venus sits a little closer to the Sun than the inner edge of the zone. On top of that, its thick carbon dioxide atmosphere traps heat in an extreme greenhouse effect, turning it into a hell hot enough to melt lead. Mars, on the other hand, lies near the outer edge of the zone. But it's small, so its interior cooled quickly and its magnetic field vanished. With its shield gone, the solar wind stripped its atmosphere into space, and it ended up a dry, cold, sandy planet.
So for life like ours to live and breathe on a planet's surface, it takes more than the right distance. It needs an atmosphere of the right thickness, a magnetic field that blocks harmful cosmic radiation, and a solid rocky surface to stand on. It takes a perfect balance of many environmental conditions.
Common misconceptions
A planet in the Goldilocks zone definitely has alien life on it.
The Goldilocks zone is only a 'distance condition' for liquid water to exist. The makeup and thickness of the atmosphere, whether there's a magnetic field, the size of the planet, and other conditions all have to be right too for life to live there.
Where you meet it
Earth sits inside the Sun's Goldilocks zone, so its oceans and rivers stay liquid.
About 40 light-years from Earth, the TRAPPIST-1 planetary system has three Earth-sized rocky planets in its Goldilocks zone.
In one sentence
It's the zone around a star that's neither too close nor too far, where a planet can keep liquid water stable on its surface.