In astronomy or planetary science, the frost line, also known as the snow line or ice line, is the minimum distance from the central protostar of a solar nebula where the temperature is low enough for volatile compounds such as water, ammonia, methane, carbon dioxide and carbon monoxide to condense into solid grains, which will allow their accretion into planetesimals. Beyond the line, otherwise gaseous compounds (which are much more abundant) can be quite easily condensed to allow formation of gas and ice giants; while within it, only heavier compounds can be accreted to form the typically much smaller rocky planets.
The term itself is borrowed from the notion of "frost line" in soil science, which describes the maximum depth from the surface that groundwater can freeze.
Each volatile substance has its own frost line (e.g. carbon monoxide,[1] nitrogen,[2] and argon[3]), so it is important to always specify which material's frost line is referred to, though omission is common, especially for the water frost line. A tracer gas may be used for materials that are otherwise difficult to detect; for example diazenylium for carbon monoxide.