WorksPhysics and Astronomy
Life in the Cosmic Neighbourhood: Galactic Habitable Zones in the EAGLE Simulations
Abstract
When and where is life most likely to form in the universe? We use the EAGLE cosmological hydrodynamical simulations to investigate the prevalence and properties of life-friendly cosmic environments on galactic scales. Our model for the occurrence of observers depends on main-sequence stars, the production and distribution of metals, and the formation of habitable planets. We also take into account five potentially life-extinguishing processes: core-collapse supernovae, Type Ia supernovae, star-star interactions, gamma ray bursts and quasars. We characterise the amount of time that the universe creates on habitable planets per unit mass of baryons and stars in the universe, as a function of galaxy mass and galactocentric distance. As expected, early universe, newly formed, high star formation rate galaxies are the most dangerous. The present-day Milky Way is typical of habitable galaxies: efficient creation of habitable time, and low probability of cosmic catastrophes.
Introduction
Astrobiology seeks to characterise the suitability of various cosmic environments for life. As reviewed in Gonzalez (2005) and Lineweaver & Chopra (2012), there has been much discussion of the circumstellar habitable zone (CHZ), which characterises the likely place of life in planetary systems. Liquid water is very important, which implies that the planet must not be too close or too far from its host star. Further work has sought to model the effect of atmospheric loss, volcanic outgassing, biomass feedback, stellar variability, sources of internal heat, cloud formation, planetary migration and more.
Life also depends on its larger cosmic environment, which has lead to the study of the galactic habitable zone (GHZ). Again, a variety of important factors are at play. The formation of planets depends on the abundance of metals in the stellar nurseries. Once a planet has formed, its habitability will be affected by energetic nearby events such as supernovae (SN), gamma ray bursts (GRBs) and quasars, particularly if the star is born in a cluster or in the dense core of a galaxy. The study of energetic phenomena on cosmic habitability is termed “high-energy astrobiology” in the edited volume of Filipovic (forthcoming).
Study of the GHZ has overlapped with the study of the effect of our cosmic environment on the actual history of Earth. For example, can any of Earth’s mass extinctions be explained by the effect of a nearby SN or GRB? How close does such an explosion need to be to have a measurable effect on the Earth, and what evidence might be left behind in the geological record? Clark et al. (1977) considered a scenario in which roughly one supernovae occurs within 10 pc of Earth every time we cross a spiral arm of the Milky Way. As argued by Ruderman (1974) and Whitten et al. (1976), while radiation would be absorbed in the atmosphere and so not reach Earth’s surface, the ozone layer would be destroyed for some period of time, perhaps years. As a result, harmful solar ultraviolet radiation could destroy significant amounts of surface marine life, collapsing food chains and leading to a mass extinction. Also, cosmic ray flux will increase, and for supernovae within ∼20 pc, the ejecta shell may overcome the solar wind ram pressure; both events leading to an increased flux of DNA-damaging radiation reaching the Earth’s surface (Korschinek 2016). More detailed calculations of this scenario have been presented by Ellis & Schramm (1995), Crutzen & Bruhl (1996), Gehrels et al. (2003), Beech (2011), Svensmark (2012), Horvath & Galante (2012) Melott & Thomas (2018). In
© 2026 The Authors particular, Melott et al. (2017) argue that muons will irradiate the ocean to a depth of a kilometre. Being more penetrating than other natural forms of radiation, muons would particularly affect ocean megafauna.
Similarly, Thorsett (1995) argue that gamma ray bursts would have a similar effect, though at larger distances. Thomas et al. (2005a); Thomas et al. (2005b) model the effect of a GRB at a “typical” distance of 2 kpc, showing that about a third of the ozone is depleted for several years, leading to 16 times greater DNA damage and a cooling of the climate. Such an event is a candidate for the cause of the late Ordovician mass extinction. Using an analytic model of the Milky Way, Piran & Jimenez (2014) calculate that there is a 50% of an ozone-removing, extinction-causing GRB in the vicinity of Earth in the last 500 Myr.
More extreme sources of energy will cause more lasting damage. Sloan et al. (2017) note that ergs is sufficient to boil Earth’s ocean, that is, raising its temperature by more than . A supernova of energy erg would need to explode within 0.04 pc for enough energy to be incident on Earth for this to happen, while a GRB that blasts a similar amount of energy into a beam could be as far as pc. On longer timescales, high-energy photons from a quasar or active galactic nucleus (AGN) can strip the atmosphere and even the ocean from a planet. This effect can accumulate over many millions of years, as the atmosphere or ocean is gradually unbound from Earth and lost into space.
The effect of cosmic events and environments has been applied to the GHZ. Lineweaver et al. (2004) characterised the GHZ of our galaxy, taking into account the effect of supernovae close to the galactic centre, the distribution of metals, and the delay between star formation and the formation of life on a planet. They find a relatively narrow zone, located away from the galactic centre. Prantzos (2008) and Gowanlock et al. (2011) refine and extend the calculation of the GHZ, noting some significant sources of uncertainty. Forgan et al. (2017) use high-resolution simulations of the Local Group of galaxies to model the habitable zone of the Milky Way and M33, taking into account planet formation and giant planet migration, as well as the probability of nearby supernovae. They find generally broad GHZs, extending from the centre of the galaxy to kpc for most of cosmic history.
On cosmic scales, Dayal et al. (2016) use an analytical model of the star-formation history of the universe to calculate the relative effect of cosmic explosions and quasars on life. They conclude that Type II (core-collapse) SN and Type Ia SN dominate the production of life-affecting radiation, with negligible contribution from GRBs and quasars. Stanway et al. (2018) explore the GHZ using the Millennium N-body simulation and a semi-analytic model of galaxy formation. This allows them to take into account the metallicity dependence of planet formation and extinction events (SN, GRBs and AGN). They find that 18% of stars today have been “irradiated” by a high-energy cosmic event in the last 260 Myr, and that this percentage was much higher in the past.
Some attention has also been given to cosmic time scales, following the habitability of the cosmos over time. Loeb et al. (2016) argue that a life-form is most likely to observe that they are on a planet orbiting a star, ten trillion years after the big bang.
In a previous paper (Barnes et al. 2018), we considered cosmic habitability across different values of the cosmological constant using the EAGLE galaxy formation code (Schaye et al. 2015). We did not consider extinction events, assuming that the production of observers is proportional to the production of planets, which depends on the formation of stars and the production of elements in stars. However, such events have been argued to be potentially very significant, particularly in universes with different fundamental parameters. Tegmark & Rees (1998), see also Tegmark et al. (2006); Adams et al. (2015) considered the effect of star-star interactions, wherein a nearby star could perturb a planet into a highly eccentric orbit, or even throw it clear into interstellar space. These effects become particularly significant as the amplitude of primordial density fluctuations () increases. Supernovae, both core collapse (CC) and Type Ia (SNIa) will also cause extinction events: Totani (2019) argue that taking into account the probability of SN in regions of high stellar density substantially changes the expected value of in multiverse models, to be more in line with observations. Gamma ray bursts (GRBs), too, will extinguish life within a certain surrounding region. Piran et al. (2016) argue that because GRBs occur in low metallicity () environments and have a large “extinction” radii (– kpc), habitable galaxies need to be free from satellite galaxies (and their low-metallicity, GRB-producing gas and stars) in their inner regions. For moderate values of (from zero to a few times ), the universe produces more “isolated”, habitable haloes as increases. Perhaps counterintuitively, this implies that a (positive) cosmological constant that is smaller than that in our universe can be detrimental to life.
In this paper, we will apply a more detailed model of observer production and survival to the EAGLE galaxy formation simulations, which includes the effect of cosmic extinction processes: core collapse SN, Type Ia SN, star-star interactions, GRBs and quasars. In Section 2, we briefly review the EAGLE galaxy formation code and simulations. In Section 3, we describe our model for the effect of extinction processes on the habitability of planets.
Galaxy Formation Simulations
The Virgo Consortium’s EAGLE project (Evolution and Assembly of GaLaxies and their Environment) is a suite of hydrodynamical simulations that follow the formation of galaxies and supermassive black holes in cosmologically representative volumes of a standard CDM universe. The details of the code, and particularly the sub-grid models, are described in Schaye et al. (2015). The initial conditions for the EAGLE simulations were set up using a transfer function generated using CAMB (Lewis et al. 2000) and a power-law primordial power spectrum with index . Particles were arranged in a glass-like initial configuration, and were displaced according to second-order Lagrangian perturbation theory (Jenkins 2010). The code models the effect of radiative cooling for 11 elements, star formation, stellar mass loss, energy feedback from star formation, gas accretion onto and mergers of supermassive black holes (BHs), and AGN feedback. Black holes are seeded in all dark matter haloes with masses greater than .
The halo finding algorithm is described in Schaye et al. (2015); in short, the code regularly runs the friends-of-friends (FoF) finder (Davis et al. 1985) with linking length 0.2 on the dark matter distribution. When calculating the habitable zone in the following sections, we use membership in the largest halo to identify the widest relevant neighbourhood of a given star particle. Thus, we use the FoF algorithm to identify haloes. When we later come to discuss “galaxies” and their occupants, we follow the usual approach of the EAGLE project and use the smallest bound substructure to identify galaxies.
Here, we analyse the “Reference” CDM universe EAGLE simulation, which uses the Planck Collaboration et al. [45] cosmological parameters: (0.307, 0.693, 0.04825, 0.6777, 0.8288, 0.9611, 0.248). The box is 100 comoving-Mpc in size, and contains 15043 dark matter particles, each with mass of . Initially, the simulation contains an equal number of baryon particles, each with mass of . The gravitational softening length is 2.66 kpc comoving or 0.70 kpc proper, whichever is smaller.
The EAGLE simulations are known to reproduce a wide range of observations of the low redshift universe. Schaye et al. (2015) note that the galaxy stellar mass function, -, galaxy sizes and - relation were used to calibrate various subgrid parameters. Other relationships that match with observations are successful predictions of the model. No model is perfect, however, and there are known discrepancies regarding the metallicities of dwarf galaxies and the intracluster medium. Further, the simulation box size determines the largest structures that form. For example, the population of galaxies recently discovered at by JWST are too large (at that time) to be present in the EAGLE simulation box. As a result, the simulations will not capture the population of large galaxies in our universe, particularly ellipticals. We will return to these limitations in our conclusions.
Computing the Galactic Habitable Zone
A given snapshot of an EAGLE simulation contains different types of particles. Throughout, we will use the subscript ‘’ to refer to the star particle (really, a population of stars) whose habitability we are considering, ‘’ to index neighbouring star particles, and ‘’ to index neighbouring gas particles. We will not need to consider dark matter particles.
Star particles represent a stellar population,
centred at position ,
total stellar mass ,
metallicity , and
born at time .
Gas (or SPH) particles represent interstellar/intergalactic gas,
centred at position ,
total baryonic mass ,
smoothing length ,
metallicity , and
star formation rate .
We use the simulation snapshot to calculate the expected number of life-forms that exist in the simulation volume at each time. The major unknown in our calculation is the probability that life will form per unit time on a suitably habitable planet. Given the uncertainties of abiogenesis, we do not wish to guess this probability. However, we will assume that, having taken into account the average conditions that produce habitable planets, there is a fixed probability () that life will form on a habitable planet per unit time.
We are especially interested here in the effect of astronomical processes that make an otherwise suitable planet unsuitable for life. We distinguish between two grades of catastrophe. Firstly, there are astronomical events that render a planet uninhabited, that is, which kill all existing life on a planet. For example, it is highly unlikely that life on Earth could have survived the impact of the hypothesised Mars-sized object Thiea that lead to the formation of our Moon. But this impact (assuming it occurred) obviously did not render Earth uninhabitable. An event that renders a planet uninhabited we will call an extinction.
Secondly, there are more extreme astronomical events that render a planet uninhabitable. They not only kill any existing life but make the future (re-)formation of life effectively impossible. For example, if a cosmic catastrophe were to remove the Earth’s atmosphere and oceans today, and internal and external processes are judged unlikely to replenish the supply of water and oxygen, then we would expect the Earth to remain thereafter uninhabitable. An event that renders a planet uninhabitable we will call a razing.2
For each of our cosmic explosions (Core-Collapse SN, Type Ia SN and GRBs), we will define an extinction radius and a smaller razing radius. A star within the extinction radius will be rendered uninhabited. A star within the razing radius will be rendered uninhabitable.
Given our assumptions, the expected number of observers that exist in the simulation box at a given time is calculated by summing over all the star particles,
The terms in the equation are as follows.
Number of stars: is the number of stars in the star particle, where is the average stellar mass. Using the Chabrier IMF, with and as in the simulation’s physics, the average stellar mass is .
Main sequence fraction: is the fraction of stars (by number) in the population that are still on the main sequence a time after they are born. As in B18, we calculate using the Chabrier (2003) initial mass function, and a simple relationship between mass and main-sequence lifetime drawn from the analytic model of Adams (2008) normalised to Gyr at Solar mass; this broadly consistent with Portinari et al. (1998).
Probability of a habitable planet: is the probability that a main-sequence star of given metallicity hosts a terrestrial planet in the stellar habitable zone, in a system in which a close-in giant star will/has not formed. Studies of exoplanets have found a large population of “hot Jupiters” or close-in giant planets (Christiaensen et al. 2025). Because these are unlikely to form in-situ, they mostly form at larger distances and migrate inwards, engulfing or unbinding any planet in the habitable zone. To permit easier comparison with previous calculations, we use the prescription of Lineweaver (2001). The probability of an Earth-like planet () rises from zero at to unity at . The probability of a close-in giant planet () rises quickly from zero at to unity at . Then,
We use a fit to the curve plotted in Figure 1 of Lineweaver et al. (2004).
Figure 1. The habitable time per unit baryonic mass (top) and per stellar mass (bottom), as a function of cosmic time (top axis) and redshift (bottom axis). Dashed lines show the predictions with no extinction events, while the solid line shows predictions will all extinctions. The plotted quantities (habitable time) can be interpreted as follows: a value of in the top (bottom) plot means that, on average, each solar mass of baryonic (stellar) matter at time has produced a million years of life-friendly time on suitable planets. Both curves increase rapidly as early star formation creates suitable stars, metals, and planets. The “extinctions” (solid) line flattens at late times.
Habitable time: is the average amount of time that an average planet around a star has been habitable at time , since either the star was born or the last (total) extinction event. Given a Poisson distribution of extinction events with average rate in the neighbourhood of a given star, is the probability of no extinction events between and ,
Then, the expectation value of the time since the most recent extinction event is,3
Probability of no razing: is the probability of no razing events, which render the planet uninhabitable, occurring between and . Similarly to extinction, assuming a Poisson process and an average event rate ,
Extinction and Razing Events
As mentioned, we consider five types of astronomical events that contribute to the total extinction and razing rate: CCSN, SNIa, GRBs, star-star interactions, and quasars (QSOs). Models of the effect of cosmic explosions on our planetary environment focus on the crucial quantity fluence (), the incident energy per unit area,
where is the distance from the planet to the explosion or quasar, and is the energy of life-damaging radiation which is emitted into solid angle ; if the emission is isotropic, . If fluence is absorbed by the cross-section of Earth, the energy absorbed is,
By way of comparison, the world’s entire nuclear arsenal is megatons of TNT, which is .
The damage done to life depends on the fluence at Earth. On the lower end, according to Thorsett (1995) and Thomas et al. (2005b), a fluence of from a GRB would destroy a substantial fraction of the ozone layer, resulting in an enhancement of ultraviolet solar radiation that would kill surface marine life, greatly increase DNA damage, and possibly causing global cooling and nitric acid rain. If such an event is indeed responsible for the Late Ordovician mass extinction, then the aftermath caused a loss of 85% of marine species. However, life on Earth returned to previous levels of biodiversity after million years, which is a minor delay on the timescale of a typical main-sequence star and its planets. This event obviously did not preclude the later development of intelligent life on Earth. We are focussed here on astrophysical events with more extreme, more permanent consequences.
At the most extreme end, Forbes & Loeb (2018) calculate the total surface mass loss (atmosphere and/or ocean) from a planet that has absorbed fluence from a nearby quasar,
where is specifically the extreme UV (XUV, with energy ) fluence, the XUV flux, the fraction of the incident power available to heat the atmosphere (with fiducial value 0.1), and is the average density of a rocky planet. The restriction to XUV radiation makes the timescale of absorption irrelevant, as each photon has roughly enough energy to give an atom in the atmosphere/ocean escape velocity. Using typical values, Forbes & Loeb calculate that a fluence of would be sufficient to remove (mass equivalent to) the Earth’s atmosphere, and will remove the Earth’s ocean.
Recall the calculation of Sloan et al. (2017) above: of energy to boil Earth’s oceans. This implies a fluence of , given Earth’s cross-sectional area.
These are simple energy arguments; most of the detailed modelling has investigated the more modest scenario where only 85% of life on Earth goes extinct. In addition to the required energy, we need to consider corrections that account for the fraction of the total energy output that is in a lethal form. In light of this, we apply order-of-magnitude limits of for extinction and for razing, for the total energy absorbed by Earth. We will now consider each astrophysical event or process in turn.
Core-Collapse supernovae (CCSN): Let be the probability that a randomly chosen star goes CCSN between and after its birth. The normalisation is the fraction of all stars formed (by number) that go CCSN at some point in their life.
Given that the scale of the SN explosion is not resolved in a simulation snapshot, we model the effect of CCSN on life as a single extinction/razing “blast radius”: any planet within () of the explosion — corresponding to a volume of () — will be rendered uninhabitable (uninhabitable). Consider first the case of an extinction event. For a given star that potentially hosts life, let be the probability that an extinction event occurs between and , within a volume around the star, due to a neighbouring star that formed between and ,
where is the local star-formation rate (by number) as a function of position () and time. (Strictly speaking, we should integrating over the volume , but the simulations do not predict variations of the star formation rate on these small scales.) Then, the average rate of extinction events for a given star is calculated by integrating over all the neighbouring stars that formed before the present time ,
CCSN occur when stars with mass greater than 6-8 reach the end of stellar burning (Smartt 2009), which is less than 40 million years after their birth (Bressan et al. 2012; Svensmark 2012; Bressan et al. 2013). This is short enough, on the timescale of our simulations, to treat CCSN as instantaneous, so that the probability is a Dirac-delta function of time: . Then, for ,
where is the star formation rate (by number) at that formed in the volume . The second equation uses fiducial values from Table 1, and star forming properties of the starburst galaxy M82: 10 /yr in the central nucleus of radius 0.5 kpc. For a Milky-Way like galaxy, with 1 /yr of star formation in a large disk, .
| Parameter | Fiducial Value | |
| average mass per star | ||
| CCSN extinction radius | ||
| CCSN razing radius | ||
| CCSN minimum stellar mass | ||
| CCSN per star | ||
| Type Ia SN extinction radius | ||
| Type Ia SN razing radius | ||
| Type Ia SN per star | ||
| Type Ia SN timescale | ||
| nearest stellar nbr | ||
| planetary system cross section | ||
| GRB jet half-radius (beaming) | ||
| observed global GRB rate | ||
| GRB extinction radius | ||
| GRB razing radius | ||
| quasar razing fluence |
Table 1. Model parameters for extinction and razing, as described in Section 3.
We calculate the local star formation rate at all times that the star particle exists, not just when it was born. The term is added to the total extinction rate in Equation (3). The same formalism applies to razing: by replacing with in Equation (11), we calculate the contribution of CCSN to the total razing rate .
We calculate in our simulations using a sum over neighbouring SPH particles. In the simulation output, each gas particle has an associated star formation rate by mass (SFR), which we can relate to the star formation rate by number () using the average stellar mass . The star formation density (by number) at the position of the star particle is,
where is the SPH smoothing kernel, and is the SPH smoothing length. Finally, assuming that all stars with masses greater than 6 explode as CCSN, we use the Chabrier IMF to calculate the CCSN fraction per star, .
While CCSN exhibit a range of explosion energies, given the approximations made in assigning extinction/razing fluences, we assume a single fiducial isotropic CCSN energy of erg (Jones et al. 1998). With fluences of erg/cm for extinction and erg/cm for razing, Equation (6) tells us that a CCSN will cause extinction at pc and razing at pc.
Type Ia supernovae (SNIa): We can use much of the formalism developed above. A given star will explode as a Type Ia SN if it ends its life as a white dwarf in a binary system, and accretes mass from a companion until the Chandrasekhar limit is crossed. An empirical relation for the rate of SNIa per unit stellar mass is incorporated into the EAGLE feedback physics,
where and Gyr. We can use the average stellar mass to convert the SNIa rate per star: , so that Type Ia SN per star formed.
As above, we consider first the case of extinction. For a potentially life-hosting star born at , we consider the contribution to its neighbourhood from another star particles in the simulation, born at time and with associated stellar density . We can treat its contribution to the star formation rate in Equation (10) as a Dirac delta function4 (),
where is the extinction volume of a SNIa. The second equation uses fiducial values from Table 1, is the exponential term in the line above, and stellar properties of the starburst galaxy M82: in the central nucleus of radius 0.5 kpc. For a Milky-Way like galaxy, with stars spread over the thin disk, is similar.
Because of the Gyr timescales between stellar birth and SNIa, we need to take into account changes in the local stellar density over the lifetime of the star particle. Star particles are born in regions of high gas density, and so the initial environment of an individual star depends on scales smaller than the population of stars represented by simulation star particle. However, on timescales relevant to life and SNIa, we expect stars to have mixed into their wider galactic environment. As a result, we treat our star particles as tracers of the overall stellar density. Any subgrid effect of stellar clustering is be folded into the overall dependence on density.
We calculate the stellar density by summing over neighbouring star particles. Because star particles don’t have an associated smoothing length, we use an -th nearest neighbour approach: for particle , we find the distance that encompasses the closest neighbours. Then, the stellar number density is , summing over the neighbouring particles and the particle .
We calculate by averaging over the neighbouring particles and the particle , weighting each contribution by the SPH kernel function , with smoothing length given by ,
As before, the same formalism applies to razing. We place the razing volume in the equation above, and it gives us the Type Ia contribution to the total razing rate.
As with CCSN, we assume a single fiducial isotropic SNIa explosion energy of ergs (Jones et al. 1998). Then, Equation (6) tells us that a SNIa will cause extinction at pc and razing at pc.
Gamma Ray Bursts: GRBs are rarer than supernovae, but can affect life at much larger distances. In particular, the energy released is likely to be beamed into two narrow jets, each with half-radius of a few degrees, corresponding to a fraction of the solid angle (Frail et al. 2001). Most GRBs are believed to originate from core collapse in very massive (), rapidly rotating, low-metallicity stars ((Mészáros 2002)). Similarly to CCSN, we consider GRBs to be simultaneous with star formation.
We begin by assuming that the extinction radius of the GRB may be comparable to the SPH particle smoothing lengths. The rate of GRB extinction events as a function of time for a given star is,
where the integral is over the region inside radius around the star at time , is the star formation rate density as a function of time and position, and is the fraction of stars by number that will produce a GRB, which depends on metallicity. We perform this integral in our simulations by summing over the star formation rate for the gas particles around a given star particle,
where is the star formation rate for particle , and measures the fraction of the volume of the kernel of the -th SPH particle that overlaps with a sphere of radius around the -th star particle.5
As above, for the razing probability, we simply substitute the razing radius into (17), specifically the quantity .
In the case where the extinction or razing radius is smaller than the typical SPH smoothing length of the neighbouring particles, (16) becomes analogous to the case of CCSN,
and similarly for razing ().
We model the dependence of the GRB fraction on metallicity using the “GRB efficiency” functional form of Trenti et al. (2013), defined piecewise:
given our other approximations. There is a formula for the volume: for two overlapping spheres of radius and , with their centres separated by , the volume of the overlap is .
This function is flat at small metallicities, and decreases as increases. Following Trenti et al. (2015), we set . We infer the normalisation by ensuring that the total observed GRB rate in the simulation box of our Universe at the present day matches the observed global GRB rate, GRB/Gpc/Gyr (Piran et al. 2016). The observed rate includes the angular dependence, and so the combination is constrained by observation — the value of only matters for the GRB extinction/razing radius (below). Given that the present-day star formation density is stars/Gpc/Gyr, the GRB fraction is .
Finally, we use an estimate of the beam angle from Sloan et al. (2017) as , which implies that . This is toward the lower end of observational estimates, giving an upper limit on the implied extinction and razing radii (see also Frail et al. (2001); Gehrels et al. (2009); Fong et al. (2015)). From Frail et al. (2001), we assume a fiducial explosion energy of ergs; then Equation (6) tells us that a GRB will cause extinction at pc and razing at pc. These values are times larger than the corresponding SN radii, but still significantly smaller than the 20–50 kpc range used by Piran et al. (2016). This is because they apply a fluence limit of – which is relevant to Ordovician extinction-level events.
For the fiducial values in Table 1, star-forming properties of the starburst galaxy M82 ( in the central nucleus of radius 0.5 kpc) and solar metallicity, . For a Milky-Way like galaxy, .
Star-Star Interactions: If another star wandered too close to the Solar System, the orbit of the Earth would be disrupted, potentially causing an extreme elliptical orbit or unbinding us entirely (Baier-Jones 2022). The stability of the orbits of planets requires that other stars do not perturb their orbits. Such an event is unlikely to cause a mere temporary extinction, so we will treat sufficiently large perturbations as razing events.
The magnitude of the perturbation depends on the masses of the stars and planet, the semi-major axis of the planet, the velocity of the passing star, its impact parameter, and its angle of approach. We will use the Monte Carlo simulations of Adams et al. (2015), who consider an Earth-mass planet in orbit around a Solar-mass star at 1 AU. They choose wandering stars from the stellar initial mass function with a Maxwell-Boltzmann type velocity distribution with width . Averaging over the angle of approach, they give a fitting formula for the cross section for the interaction to cause orbital ellipticity after the encounter,
where . The rate of disruptive encounters for a given star is,
for local stellar density and velocity dispersion . This rate is added to the total razing rate in Equation (5). For and small velocities, .
We use the local stellar density calculated in the previous section about SNIa. We calculate the local velocity dispersion (relative to particle ) by summing over the neighbours:
We set the minimum velocity dispersion to be , which is typical for molecular clouds (Gammie et al. 1991) and dwarf spheroidal galaxies (Walker et al. 2007). Because the cross section is approximately constant for small velocities, the rate of disruptive encounters is mostly insensitive to the velocity dispersion in small systems.
Quasars: We calculate the XUV luminosity from a black hole particle using the approach of Rosas-Guevara et al. (2016). Each BH particle records its current mass accretion rate, which is related to its bolometric luminosity as,
where is the radiative efficiency. The fraction of the total radiation that is emitted in the life-affecting XUV band is (Bieri et al. 2017), which we use to convert to . We track the cumulative fluence for star particles in the same halo as the black hole particle, and treat as uninhabitable any particles for which . Because the impact of the quasar accumulates over millions of years, there is no obvious extinction level event that occurs for lower fluences. For example, the oceans will not boil if erg of energy is absorbed in this way (Sloan et al. 2017), as unlike the aftermath of a nearby explosion, there is ample time for cooling to occur. Combining the equations gives,
Given that typical observed SMBH mass accretion rates are in the range to (Stone et al. 2022), and quasar lifetimes are estimated to be Myr, the estimate above shows that the central regions of galaxies — particularly more compact galaxies at high redshift — can be substantially affected by QSO’s.
We summarise the free parameters of our model in Table 1, along with their fiducial values.
Characterising the Galactic Habitable Zone (GHZ)
GHZ over cosmic history
In our model, the number of observers scales with the size of the box. We thus convert it into a density per unit mass or per unit comoving volume by dividing by the total mass or comoving volume of the simulation box. also depends on the constant but unknown probability that life will form on a suitably habitable planet per unit time. As a result, we will focus on the quantities,
which gives the total amount of time that passes on habitable planets in the universe, per unit baryon mass (left) or per unit stellar mass (right). We will call this habitable time. This is the amount of time that the universe creates for life, per unit mass. We will also be interested in the time derivative of these quantities, which we will call the habitable time rate.
Figure 1 shows habitable time per unit baryonic mass (top panel) and per stellar mass (bottom), as a function of cosmic time (top axis) and redshift (bottom axis). Dashed lines show the predictions with no extinction events, while the solid line shows predictions will all extinctions. The habitable time can be interpreted as follows: a value of in the top (bottom) plot means that, on average, each solar mass of baryonic (stellar) matter at time has produced a million years of life-friendly time on suitable planets.
Figure 2 shows the habitable time rate per unit baryonic mass (top) and per stellar mass (bottom), calculated with (solid) and without (dashed) extinction events. This is the time derivative of Figure 1. The habitable time rate can be interpreted as follows: a value of in the top (bottom) plot means that, on average, for every billion years that passes and for each solar mass of baryonic (stellar) matter, a million years of life-friendly time passes on suitable planets.
Figure 2. The habitable time rate per unit baryonic mass (top) and per stellar mass (bottom), calculated with (solid) and without (dashed) extinction events. This is the time derivative of Figure 1. The plotted quantities (habitable time rate) can be interpreted as follows: a value of in the top (bottom) plot means that, on average, for every billion years that passes and for each solar mass of baryonic (stellar) matter, a million years of life-friendly time passes on suitable planets. Both curves increase rapidly as with star formation, but turn over in the late universe, as extinction renders planets uninhabited/uninhabitable faster than they can be made.
The curves in Figure 1 and Figure 2 rise rapidly in the early universe, driven by bursting star-formation and the rapid build-up of metals to make planets. In the late universe, once the universe has created the bulk of its stars — but before a significant number of those stars have ended their lives — the habitable time rate in the absence of extinctions (dashed curves) is roughly flat: each solar mass of baryons is creating about 7 Myr of life-friendly-planet time per Gyr, and solar mass of stars is creating about 100 Myr life-friendly-planet time per Gyr. In the distant future, as stars begin to die, these curves will begin to decrease.
Extinctions flatten the habitable time (equivalently, causes a downturn in the habitable time rate) at late times. Planets are being made uninhabited/uninhabitable faster than they are being produced.
Habitability, Galaxy Mass, and Star Formation Rate
Which galaxies are most efficient at creating and preserving habitable planets? Figure 3 shows the relationship between the habitable time per unit baryonic mass (, left) or per unit stellar mass (, right), within galaxies of given total halo mass (top) or stellar mass (bottom).

Figure 3. The relationship between the habitable time per unit baryonic mass (, left) or per unit stellar mass (, right), within galaxies of given total halo mass (top) or stellar mass (bottom). The empty regions at the top left of each panel are a result of the finite simulation volume. Our 100 cMpc box size is too small to produce any galaxies in this region, and near its border we are subject to small number statistics. Top left: Habitable time increases with cosmic time, as expected, and peaks for galaxies today in haloes with total mass in the range –. At this peak, the value indicates that for every solar mass of baryons in a galaxy with total halo mass today, 0.1 Gyr of time has passed on a habitable planet. At larger and smaller masses, galaxies are less efficient in turning baryons into habitable time. For most of cosmic history, galaxies with total mass about – are the most efficient at forming and preserving life-friendly environments. Top right: this panel shows the habitable time per unit stellar mass, as a function of the total mass of the halo. Again, we see that galaxies with total mass about – are the most efficient at forming and preserving life-friendly environments. The bottom panels show that this peak corresponds to galaxies with stellar masses of –.
Habitable time increases with cosmic time, indicating that planets are continuing to be formed around stars and are (for the most part) avoiding cosmic catastrophes. From the top panels, the habitable time peaks for galaxies in haloes with total mass in the range . At this peak, the value indicates that for every solar mass of baryons in a galaxy with total halo mass , 0.1 Gyr has passed on a life-friendly planet. For most of cosmic history, galaxies with total mass of about are the most efficient at forming and preserving life-friendly environments. From the bottom panels, galaxies with stellar mass about are the most efficient at forming and preserving life-friendly environments.
Figure 4 shows the habitable time rate per baryonic mass, as a function of time and galaxy total mass. This is the time derivative of the top right plot in Figure 3. Despite the noise, due to the numerical derivatives, the rate is seen to decrease at late times, indicating the effect of extinctions.

Figure 4. Habitable time rate per unit baryonic mass, as a function of time and galaxy total mass. This is the time derivative of the top left plot in Figure 3. While the numerical derivative makes the plot noisy, there is a decline in the rate at late times (the last few billion years).
In Figure 3 and Figure 4, the Milky Way is indicated with a circle, at the redshift at which the Sun formed (). The total (virial) mass is (Kafle et al. 2012; Watkins et al. 2019) and stellar mass is (Licquia & Newman 2015; Bland-Hawthorn & Gerhard 2016). For comparison, Sante et al. (2026) give the mass of the Milky Way at as , which is consistent with the model of Correa et al. (2015).
The Milky Way sits in the high-mass end of the broad peak in habitable time per unit baryonic mass and per unit stellar mass. Habitable time accumulates with cosmic time, but habitable time rate (as we saw previously) seems to have peaked about 1 Gyr ago.
Figure 5 shows the relationship between habitable time per unit baryonic mass and the star formation rate (SFR, left) and specific SFR (sSFR = SFR / , right). The left panel shows that, before a redshift of , habitable time was largest in the galaxies with the highest SFR. At later times, the largest habitable times are found in more quiescent galaxies. The right panel shows a similar trend, with the largest habitable times being found in galaxies with low sSFR in the late universe.

Figure 5. The relationship between habitable time per unit baryonic mass and the star formation rate (SFR, left) and specific SFR (sSFR = SFR / , right). The SFR (, Elia et al. 2022) and sSFR () of the Milky Way are labelled, at the redshift at which the Sun formed (). The left panel shows that, before a redshift of , habitable time was largest in the galaxies with the highest SFR. At later times, the largest habitable times are found in more quiescent galaxies. The right panel shows a similar trend, with the largest habitable times being found in galaxies with low sSFR in the late universe.
Habitability and Galactocentric Radius
Figure 6 shows the distribution of habitable time with galactocentric radius (in kpc, left) and (right), which is the radius scaled to the radius that contains half of the mass of stars in the galaxy (). The Sun’s galactocentric radius is 8.2 kpc (Bland-Hawthorn & Gerhard 2016). The Milky Way’s stellar half-mass radius is 4.25 kpc (Lian et al. 2025), so . These radii are indicated with a circle, at the redshift at which the Sun formed ().

Figure 6. The relationship between habitable time per unit baryonic mass (left) or per star (right), and distance of the star from the centre of its halo, for haloes with total mass in the range . The left panel shows the relationship with the physical distance in kpc; the right panel scales the physical distance for each star by , the radius that contains 50% of the stars in the halo. The label shows the Sun’s galactocentric radius 8.2 kpc and , at the redshift at which the Sun formed (). The stars that are most efficient in creating habitable time are mostly found at radii from kpc, and for most of the age of the history of the universe. The outer parts of galaxies are too metal poor to produce habitable planets, and the inner parts of galaxies are subject to the highest rates of extinction, as we will see below.
There is a decline in habitable time at large radius because of a lack of metals to make planets. While there is some evidence of a decline at small radii, it is not particularly dramatic. The left plot shows a broad, stable late-time peak between 1 and 10 kpc (but recall that this averages over stars in galaxies of all masses.) In the right plot, the peak in habitable time per stellar mass shows a slight decline with scaled radius at late times, as planets find conditions closer to the centres of their galaxies more hospitable.
Extinction Expectation
Relative Threat vs. Time
Which cosmic catastrophes are most significant for life in our universe? We calculate the expectation value of the extinction rate, averaged over all habitable planets at time ,
where the sums are over all star particles; all symbols are the same as in Equation (1). Note that razing events turn out to be rare, so we ignore them in this section. The result is shown in Figure 7. Note that the Type Ia SN line has been multiplied by 1,000.
Figure 7. Extinction rate expectation value from each kind of cosmic extinction. Note that the Type 1a SN line has been multiplied by . CCSN are the most likely source of extinction-level events in the early universe, while star-star interaction takes over in the last 5-6 Gyr.
In the early universe, CCSN are the most likely source of extinction-level events, peaking at close to one event per Gyr between redshifts of . GRBs, which also depend on the instantaneous star formation rate, follows a similar trend, but at a much lower rate. For the last 5-6 Gyr star-star interactions have been more likely to cause an extinction, though at a relatively low rate Gyr.
Extinction, Galaxy Mass and Galactocentric Radius
Figure 8 shows the expectation value of (integrated) extinction rates as a function of the total galaxy mass. The top left panel is the expected rate for all explosive events (CCSN, Type Ia SN, and GRB). The top right panel shows the expectation value of the integrated explosion rate . Note that while the value of for a given star cannot decrease with time, the expectation value can decrease as new stars are born. Figure 8 (bottom row) is the expectation value of the rate and integrated rate for star-star interactions.

Figure 8. The occurrence of extinction events in galaxies, as a function of their total mass. The top panels are for the explosive events (CCSN, Type 1a SN, and GRB), and the bottom panels are for star-star interactions. The left panels show the rate per Gyr, and the right plots show the expected number of events per star, integrated over the lifetime of each star. The plots show that newly-formed galaxies at redshifts (that is, about the first 1-2 billion years) are particularly dangerous. The first few billion years in a galaxy is the most dangerous place to be. These galaxies are dense and rapidly forming stars. Later, smaller galaxies of are also dangerous. In today’s Milky Way, and without much change over the lifetime of the Sun (i.e. the last 4.5 Gyr), only about 0.1% of stars would be expected to have experienced an extinction event by explosion or star-star interaction.
The plots show that newly-formed galaxies at redshifts (that is, about the first 1-2 billion years) are particularly dangerous. For a , the earlier the galaxy formed, the more dangerous it is, as galaxies that form earlier are more dense and form stars more rapidly. Later, smaller, compact galaxies of are also dangerous. In today’s Milky Way, and without much change over the lifetime of the Sun (i.e. the last 4.5 Gyr), only about 0.1% of stars would be expected to have experienced an extinction event by explosion or star-star interaction.
Figure 9 shows the fraction of habitable planets that have been razed by QSOs. As with other types of extinction, young newly-formed galaxies are the most dangerous. Regardless, these fractions are surprisingly high: 5-30% of all planets in galaxies have had their atmospheres stripped by QSOs. This may reflect an overestimate of the black hole accretion rate, or an overestimate of the QSO duty cycle due to the relatively long times between snapshots.

Figure 9. The fraction of habitable planets that have been razed by QSOs. As with other types of extinction, young newly-formed galaxies are the most dangerous. However, as discussed in the text, these fractions are surprisingly large.
Figure 10 shows the expected rate of extinction events, as a function of their galactocentric radius scaled to the half stellar radius, and cosmic time. As expected, the inner parts of the galaxy are more dangerous. Note that small radii calculations run up against limits from the resolution of the simulation.

Figure 10. The rate of extinction events in galaxies, as a function of their scaled galactocentric radius and cosmic time. The top panel shows the rate of explosive events (CCSN, Type 1a SN, and GRB), and the bottom panel is for star-star interactions. We find that, as expected, the inner parts of galaxies are the most dangerous, with the peak of star formation in early dense galaxies leading to the highest extinction rates. Note that small radii calculations run up against limits from the resolution of the simulation.
Conclusions
We have presented a model for calculating the galactic habitable zone from a hydrodynamical galaxy formation simulation. The model takes into account star formation, stellar main-sequence lifetimes, habitable planet probabilities, and five sources of cosmic catastrophe: core-collapse supernovae, Type 1a Supernovae, gamma ray bursts, star-star interactions and quasar XUV radiation. Catastrophes are classified into extinctions (which make a planet uninhabited) and razing events (which render a planet uninhabitable). The number of observers depends on the probability of life forming on a planet, which is unknown. Thus, we focus on the habitable time created on planets per unit baryonic or stellar mass, and its time derivative (the habitable time rate).
With the fiducial parameters in Table 1, we find that cosmic catastrophes cause the habitable time rate to decline with time for the last few Gyr of cosmic history. The habitable time flattens as it approaches its current value of about 0.02 Gyr per solar mass of baryons, or 0.3 Gyr per solar mass of stars. As a function of galaxy mass, habitable time peaks between about and total mass, whether measured per unit baryonic or stellar mass. Our galaxy, and our place within it, is typical of habitable planets. Habitable time does not show a particularly strong preference for galactocentric radius.
The most dangerous cosmic catastrophe in the early universe is core-collapse supernovae, while star-star interactions take over for the last 5 Gyr. Gamma ray bursts and Type 1a supernova are much less significant. The most dangerous galaxies are those that most efficiently form stars, during their initial burst of star formation. Smaller, compact galaxies of about and total mass are also dangerous. Only one star in a thousand in the present Milky Way can expect to have experienced an extinction due to a cosmic explosion.
While cosmological simulations allow for a more detailed and precise modelling of habitable zones, our conclusions are dependent on uncertain parameter values. For example, the rates of extinction and razing by cosmic explosions scale with their radii cubed (the volume), but are calculated via simple models. Our calculations here can be expanded and refined in a number of ways: more detailed models of local habitable zones and cosmic catastrophes, including the effects of cosmic rays, a higher cadence of simulation snapshots, greater resolution of galactic substructure (including stellar clusters and molecular clouds), and general improvements in simulation physics. We leave this for future contributions.
Acknowledgements
In memory of the late Prof. Richard Bower, who passed away in January 2023. His contributions to astronomy are many. His curiosity and humour are greatly missed.
Thanks to the referee for excellent comments.
We are grateful to all members of the Virgo Consortium and the eagle collaboration who have contributed to the development of the codes and simulations used here, as well as to the people who helped with the analysis. This work was supported by the Science and Technology Facilities Council (grant number ST/P000541/1); European Research Council (grant number GA 267291, “Cosmi-way”) and by the Netherlands Organisation for Scientific Research (NWO, VICS grant 639.043.409).
This work used the DiRAC Data Centric system at Durham University, operated by the Institute for Computational Cosmology on behalf of the STFC DiRAC HPC Facility (www.dirac.ac.uk). This equipment was funded by BIS National E-Infrastructure capital grant ST/K00042X/1, STFC capital grants ST/H008519/1 and ST/K00087X/1, STFC DiRAC Operations grant ST/K0003267/1 and Durham University. DiRAC is part of the National E-Infrastructure. We acknowledge PRACE for awarding us access to the Curie machine based in France at TGCC, CEA, Bruyeres-le-Chatel.
Data Availability
The simulation data of the EAGLE collaboration are available via https://eagle.strw.leidenuniv.nl/. Additional data underlying this article will be shared on reasonable request to the corresponding author.
This paper has been typeset from a TEX/LATEX file prepared by the author.
References
- [45]Planck Collaboration et al., 2014, A&A, 571, A16
Machine contribution statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.


