The SRG/eROSITA All-Sky Survey. X. Zhang, E. Bulbul, B. Diemer, Y. E. Bahar, J. Comparat, V. Ghirardini, A. Liu, N. Malavasi, T. Mistele, M. Ramos-Ceja, J. S. Sanders, Y. Zhang, E. Artis, Z. Ding, L. Fiorino, M. Kluge, A. Merloni, K. Nandra, S. Zelmer Abstract The hot gas in the outskirts of galaxy cluster-sized halos, extending around and beyond the virial radius into nearby accretion regions, remains among one of the least explored baryon components of large-scale cosmic structure. We present a stacking analysis of 680 galaxy clusters located in the western Galactic hemisphere, using data from the first two years of the Spectrum-Roentgen-Gamma /eROSITA All-Sky Survey. The stacked X-ray surface brightness profile reveals a statistically significant signal extending out to 2 ​ r 200 ​ m 2r_{\mathrm{200m}} ( ∼ 4.5 \sim 4.5 Mpc). The best-fit surface brightness profile is well described by a combination of terms describing orbiting and infalling gas, with a transition occurring around r 200 ​ m r_{\mathrm{200m}} . At this radius, the best-fit gas number density is 2.5 × 10 − 5 2.5\times 10^{-5} cm -3 , corresponding to a baryon overdensity of 30. By integrating the gas density profile out to r 200 ​ m r_{\mathrm{200m}} , we infer a gas fraction of 90% of the universal baryon fraction with the assumption of a typical halo concentration, indicating the completeness of the baryon budget within large radii. Additionally, we examine the hot gas distribution in massive clusters in the IllustrisTNG simulations from the halo center to the accretion region. This analysis reveals differences in radial gas profiles depending on whether the direction probes voids or nearby cosmic filaments. Beyond r 200 ​ m r_{\mathrm{200m}} , the density profile along the filament direction exceeds that along the void direction. This pattern aligns with the observed transition radius between the one-halo and two-halo terms, suggesting that r 200 ​ m r_{\mathrm{200m}} is the approximate radius marking the location at which cosmic filaments connect to galaxy clusters. Meanwhile, the comparisons of the gas density profile and gas fraction profile between the observation and the IllustrisTNG simulation suggest that the feedback processes in the stacking sample are more efficient than the IllustrisTNG model in distributing gas to large radii. Detection of shock-heated gas beyond the halo boundary into the accretion region 1 Introduction Galaxy clusters, the most massive collapsed dark matter halos in the Universe, are positioned at the nodes of the cosmic web. Galaxy clusters comprise T>10^{7} K hot baryonic gas as one sixth of their total mass and the remaining dark matter. While the gravitational potential is governed by the dark matter, baryonic physics determines the hot gas properties. The cluster outskirts, here defined as the regions beyond r_{\mathrm{500c}} 1 1 1 Throughout this paper, we use spherical overdensity to define the mass and radius of a halo. For example, r_{\mathrm{500c}} is the radius where the enclosed density is 500 times of critical density \rho_{\mathrm{c}} ; M_{\mathrm{200m}} is the total mass enclosed by r_{\mathrm{200m}} , where the enclosed density is 200 times of the mean matter density \rho_{\mathrm{m}} . , are of particular interest as they hold critical information about both the distribution of dark matter and the thermodynamic state of the gas. The radial density profile in the outskirts is characterized by halo mass accretion, for which the behaviors of dark matter and baryons are different due to their collisional/collisionless nature ( Bertschinger 1985 ) . In the case of collisionless dark matter, the infalling matter accumulates near the first apocenter of its orbit ( Fillmore & Goldreich 1984 ; Bertschinger 1985 ; Adhikari et al. 2014 , e.g.,) . This leads to a phenomenon known as splashback, where the accreted matter causes a sharp decline in the outer density profile at radii around or beyond r_{\mathrm{200m}} . The exact location of this splashback radius is closely linked to the matter accretion rate ( Diemer & Kravtsov 2014 ; Diemer et al. 2017a , e.g.,) . On the other hand, infalling collisional gas forms accretion shocks 2 2 2 We follow the convention and use the term “accretion shock” to refer to the “external shock” in Ryu et al. 2003 . In fact, the accretion shock is around all overdense environments, including cosmic filaments and sheets. In this work, we focus on the accretion shock around galaxy clusters. ( Bertschinger 1985 ; Ostriker & McKee 1988 ; Shi 2016 , e.g.,) , heating the cool igm ( igm ) to T\gtrsim 10^{6} K and creating a turbulent atmosphere outside the splashback radius ( Aung et al. 2021 ) . In reality, the distribution and thermodynamic properties of shock-heated gas 3 3 3 The terms of the icm ( icm ) and whim ( whim ) are usually used for the hot gas in galaxy clusters and cosmic filaments, respectively. Both gases are heated by cosmic accretion shocks when accreted onto the cosmic web. At the radii where halos are connected with cosmic filaments, there is no clear boundary to distinguish the icm and whim . Therefore, in this work, we use the term “shock-heated gas” to refer to the hot gas in both halos and cosmic filaments. are more complex than suggested by the self-similar spherical collapse scenario, for example, because they are subject to nonthermal pressure support, infalling gas from cosmic filaments, merging, and kinetic feedback from the halo center. Fig. 1 demonstrates the X-ray emission from the hot shock-heated gas in and around a massive halo from a numerical simulation. It shows that the shock-heated gas fills the vast space in the outskirts and beyond. At radii beyond r_{\mathrm{200m}} , the hot gas distribution is complicated by the presence of small halos falling onto the central halo. At even larger radii, the accretion shock confines the hot gas, and cosmic filaments connect the halo to the large-scale structure. X-rays and the sz ( sz ) are the two key observational techniques to explore the hot gas properties in the outskirts (see Reiprich et al. 2013 ; Walker et al. 2019 , for reviews) . Due to the rapidly declining X-ray surface brightness and sz Compton- y signal at large radii, most outskirt hot gas studies are limited to radii within r_{\mathrm{200c}} ( Simionescu et al. 2011 ; Walker et al. 2013 ; Eckert et al. 2013 ; Planck Collaboration et al. 2013 ; Bulbul et al. 2016 ; Ghirardini et al. 2019 ; Mirakhor & Walker 2020 ; McCall et al. 2024 , e.g.,) . Beyond that radius, the gas clumping ( Nagai & Lau 2011 ; Zhuravleva et al. 2013 ; Eckert et al. 2015 ; Angelinelli et al. 2021 ; Zhu et al. 2023 ) , the connection between clusters and cosmic filaments ( Rost et al. 2021 ; Gouin et al. 2022 ; Malavasi et al. 2020 ; Malavasi et al. 2023 ) , and the location of the accretion shock ( Lau et al. 2015 ; Baxter et al. 2021 ) are poorly constrained by individual pointing observations. Recently, several stacking analyses of X-ray and sz survey data demonstrate high S/N in the stacked profiles beyond r_{\mathrm{200c}} . In particular, Anbajagane et al. 2022 ; Anbajagane et al. 2024 stacked Atacama Cosmology Telescope and South Pole Telescope sz survey data and discovered a 6\sigma pressure deficit with respect to the best-fit model at \sim r_{\mathrm{200m}} . Lyskova et al. 2023 stacked 38 Planck sz selected clusters ( Planck Collaboration et al. 2016a ; CHEX-MATE Collaboration et al. 2021 ) using the eastern Galactic hemisphere erass ( erass ) X-ray data, and obtained a gas density profile out to 3\times r_{\mathrm{500c}} . In this work, we stacking the western Galactic hemisphere erass data for more than 500 low-redshift clusters from a well-defined X-ray selected cluster catalog detected in the first All-Sky Survey ( Bulbul et al. 2024 ; Kluge et al. 2024 ) . The larger sample allows us to investigate the circumcluster hot gas properties out to a larger radius. This article is organized as follows: in Sect. 2 we present the sample and the stacking analysis; we model the stacked profile in Sect. 3 ; in Sect. 4 we use the numerical simulations to validate the stacking and modeling results; discussion and conclusion are presented in Sects. 5 and 6 , respectively. We adopt a flat Lambda-Cold-Dark-Matter cosmology with parameters H_{0}=70 km s -1 Mpc -1 , \Omega_{\mathrm{m}}=0.3 , and \Omega_{\mathrm{\Lambda}}=0.7 . The cosmic baryon fraction is adopted from Planck Collaboration et al. 2020 , where \Omega_{\mathrm{b}}/\Omega_{\mathrm{m}}=0.158 . Figure 1: Spatial distribution of the X-ray emission from the hot gas around a massive dark matter halo. The dashed circle indicates the size of r_{\mathrm{200m}} . At large radii, the halo is connected to and accreting smaller nearby halos from cosmic filaments. This map is produced using gas particles from a 20\times 20\times 20 Mpc 3 box around the id=32 halo in the z=0 snapshot of the TNG300-1 simulation (see Sect. 4 for the details of map creation). The central halo is in a mass M_{\mathrm{500c}}=2.8\times 10^{14}M_{\sun} and an r_{\mathrm{200m}} of 2.5 Mpc. Short arrows mark the accretion shock, i.e., the boundary between shock-heated gas and the cool intergalactic medium. 2 Observation sample and data reduction 2.1 Sample selection We select our analysis sample from the first half-year survey of erass (hereafter eRASS1) primary galaxy clusters and groups catalog ( Bulbul et al. 2024 ) , which is based on extended sources in the eRASS1 primary catalog ( Merloni et al. 2024 ) with further optical confirmation ( Kluge et al. 2024 ) . The overdensity masses M_{\mathrm{500c}} of the clusters were estimated using the 0.2–2.3 keV count rate to the weak lensing calibrated mass scaling relation from the eRASS1 cluster abundance cosmology analysis ( Ghirardini et al. 2024 ; Grandis et al. 2024 ; Kleinebreil et al. 2025 ; Okabe et al. 2025 ) . We selected a luminosity-limited sample in the low redshift Universe based on the following criteria: 1. Luminosity L_{\mathrm{0.5-2keV}}>2\times 10^{43} erg s -1 , which corresponds to a mass threshold of M_{\mathrm{500c}}\approx 2\times 10^{14}M_{\sun} based on the scaling relations from the eRASS1 cosmology; 2. Redshift 0.0320 to eliminate left over contamination in the sample; 4. Galactic latitude |b|>20\degr to avoid high galactic absorption; 5. The median value of the 0.6–1 keV band count rate ( Zheng et al. 2024 ) in a 0.5 \degr –3 \degr annulus <6 cts s -1 deg -2 to avoid high Galactic foreground emission; 6. At least a 3.5\degr angular distance to the eROSITA-DE footprint boundary for proper stray light estimation (see Sect. 2.2.2 ). With the criteria above, we selected 694 clusters of galaxies. We visually checked their locations on the sky map. Two objects are affected by the Virgo Cluster emission and are therefore removed. Twelve objects were removed because they are the less massive clusters in cluster pairs. After this process, a sample of 680 clusters remains in a redshift range of 0.034 to 0.2 and a M_{\mathrm{500c}} range of 1.3-11.6\times 10^{14}M_{\sun} . The median values of the sample redshift and M_{\mathrm{500c}} are 0.15 and 2.6\times 10^{14}M_{\sun} , respectively. The mass-redshift distribution, as well as the sky position distribution of the sample are plotted in Fig. 2 . It shows that the 0.6–1 keV count rate threshold we applied successfully selects objects in low foreground emission regions. Figure 2: Top : Mass-redshift distribution of the full eRASS1 galaxy cluster and group sample (gray) from ( Bulbul et al. 2024 ) and the clusters used in this work (purple). Bottom : Locations of the selected sample on the west Galactic hemisphere eRASS1 X-ray sky. 2.2 Data reduction and surface brightness profile stacking We analyze the first four scans of eROSITA All-Sky Survey (hereafter eRASS:4) data, which were collected from 12th December 2019 to 19th December 2021. The data were processed with the eSASS ( Brunner et al. 2022 ) pipeline version 020, which is similar to the version 010 used for eRASS1 data release with improvements on boresight correction, detector noise suppression, and subpixel position computation (see Merloni et al. 2024 , for the details) . We only select the events from tm 1,2,3,4,6 (hereafter TM8) to avoid the systematic uncertainties caused by the optical light leak in tm 5 and 7 ( Predehl et al. 2021 ) . We used the tools in the software package eSASS version eSASSusers_211214_0_4 to generate erass data products. For each cluster, we extracted the 0.2–2.3 keV TM8 count image using evtool and generated the corresponding vignetting corrected exposure map using expmap . The count map and exposure map are centered at the cluster X-ray centroid and are extended to an angular distance of 10\times r_{\mathrm{500c}}+3.5\degr , where the 10\times r_{\mathrm{500c}} aperture is used for analysis and the additional 3.5\degr annulus is for calculating the stray light from the sources outside the analysis region. 2.2.1 Source masks We masked out different types of sources for each cluster field. These sources include 1. X-ray point sources in eRASS:4 catalog, where the source detection method and analysis are described in Merloni et al. 2024 . We note that in a cluster field, especially in the central bright region, the source detection configuration used for the master catalog returns spurious point source entries ( Merloni et al. 2024 ) . We cleaned these spurious sources by running an additional wavelet detection process in the r20 clusters 5 5 5 It is a proprietary catalog of redMaPPer ( Rykoff et al. 2014 ) run on the DESI Legacy Imaging Surveys ( Dey et al. 2019 ) DR10 data. See Kluge et al. 2024 for the description. with masking radii 1.5r_{\lambda} (see eq. 4 in Rykoff et al. 2014 for definition). 2.2.2 Stray light The cluster emission in the regions we are interested in is below the sky background. Therefore, the stray light of eROSITA, which is the 3.5\degr radius halo around any source produced by single reflected photons, could have an impact on the stacked profile and needs to be removed. We follow the recipe described in appendix A of Churazov et al. 2023 to correct for the stray light contamination. In short, for each object, we first estimate the sky background level by taking the average count rate of the source-free region. Then we convolve the sky background-subtracted and vignetting-corrected count rate image with a kernel of the stray light profile ( Churazov et al. 2023 , eq. A.2 in) to obtain a first-order approximation of the stray light count rate. The normalization of the stray light kernel is computed as the fraction of the 2D stray light profile volume with respect to the 2D volume of the total psf ( psf ) ( Churazov et al. 2023 , eq. A.1 + eq. A.2 in) . 2.2.3 Profile stacking The image products we created have pixel widths of 8\arcsec , resulting in a total number of 6.5\times 10^{8} pixels for stacking. Meanwhile, this pixel size is smaller than the 30\arcsec psf half-energy width of the erass . To boost the calculation speed and save the memory space, we binned the original pixels to a N_{\mathrm{side}}=4096 healpix ( healpix ) scheme following the method described in Zhang et al. 2024 . For each object, we extracted a count number profile and an exposure profile from the count map and exposure map, respectively. The radii of the profiles are scaled to r_{\mathrm{200m}} of the object, which was converted from r_{\mathrm{500c}} by assuming an nfw ( nfw ) profile with the halo concentration parameter c_{\mathrm{200c}}=4 . This value approximately represents the concentration of halos in the cluster mass range of the sample ( Child et al. 2018 ; Diemer & Joyce 2019 ; Ishiyama et al. 2021 ; Okabe et al. 2025 , e.g.) . The conversion factor has a redshift dependence, ranging from 2.48 at z=0.034 to 2.24 at z=0.2 within our sample. We stacked the surface brightness profiles using a projected sky solid angle weighted method. The weight of each object w=D_{\mathrm{A}}^{2}r_{500c}^{-2} corrects for the potential bias from nearby objects and massive objects that are of a large angular size, where D_{\mathrm{A}} is the angular diameter distance as a function of redshift. The stacked surface brightness profile is S_{\mathrm{X}}(r)=\frac{\sum_{i}w_{i}N_{i}(r)}{\sum_{i}w_{i}t_{i}(r)\Omega_{i}(r)}, (1) where N_{i}(r) the i th count profile, t_{i}(r)\Omega_{i}(r) the i th exposure profile in unit of s -1 deg -2 . We used the healpix oriented bootstrap resampling method described in Zhang et al. 2024 to estimate the uncertainty of the stacked profile. We created 500 bootstrapping samples of the healpix pixels from the full pixel list, and for each bootstrapping sample, we calculated a stacked profile using Eq. 1 . Throughout this paper, we use the mean and covariance matrix of the 500 bootstrapping sample profiles to represent the stacked profile and its uncertainty. Figure 3: The stacked eROSITA surface brightness profile in the 0.2–2.3 keV band after the stray light component has been removed. The radial distance to the cluster center is scaled to the overdensity radius r_{\mathrm{200m}} . The corresponding physical radius given the sample median mass and redshift is labeled at the top of the figure. The top-right inset provides a zoomed-in view of the profile within a zoomed surface brightness range around the background level, with the dashed horizontal line indicating the average surface brightness between 3 and 4 r_{\mathrm{200m}} . The profile shows significant X-ray emission extended to approximately 2\times r_{\mathrm{200m}} . 3 Stacked eROSITA surface brightness profile and modeling The stacked profile of the 680 galaxy clusters from 0.01 to 4 r_{\mathrm{200m}} is shown in Fig. 3 . As expected, the background level is consistent with the values in the 0.2-2.3 keV reported by Zheng et al. 2024 , which is \sim 15 cts s -1 deg -2 in the Galactic anti-center region with the instrumental background included. The high S/N of the stacked profile allows us to probe the extremely weak signal at the background-dominant radii. The inset in Fig. 3 shows that there is still a significant positive signal above the local background level at r>r_{\mathrm{200m}} . Based on bootstrap sampling, the averaged surface brightness in the 1-2 r_{\mathrm{200m}} range is higher than in the 2-4 r_{\mathrm{200m}} range with a significance of 12\sigma . We conclude that this constitutes a significant detection of the signal up to 2\times r_{\mathrm{200m}} , which is approximately 4.5 Mpc given the median mass and redshift ranges of our sample. At \sim 2\times r_{\mathrm{200m}} , there is a plausible bump. We investigate it by separating each cluster into four 90\degr sectors and stacking each of the sectors (see Appendix A ). We found that this feature is contributed by the fluctuation in the first sector and is not universal in all sectors. Meanwhile, in Appendix B , we perform a test of stacking signals with cluster positions randomly distributed on the sky. This experiment shows that the uncertainty from uncorrelated components is less than 0.3% of the background level. The test indicates that the detected signal does not arise from a background fluctuation in this background-dominated regime, but instead originates from X-ray emission in the circumcluster accretion region. In the following subsections, we model the stacked surface brightness profile in the full radial range out to 4r_{\mathrm{200m}} . 3.1 Model formalism Numerical simulations suggest that both the dark matter and gas density profiles from halo center to a few r_{\mathrm{200m}} can be separated as inner and outer parts ( Diemand & Kuhlen 2008 ; O’Neil et al. 2021 ; Diemer 2022 ; García et al. 2023 , e.g.,) . The inner profile is contributed by the matter orbiting within the halo, and the outer profile is contributed by infalling matter in the ambient accretion region, e.g., nearby cosmic filaments and halos therein. The transition between the two regions is characterized by a sharp change in slope. This feature has been observed in sz stacking ( Anbajagane et al. 2022 ; Anbajagane et al. 2024 , e.g.) and weak lensing shear stacking ( Chang et al. 2018 , e.g.) . Numerous models for the inner and outer profiles have been proposed, some of which we later test in Section 4.1 . For the purpose of fitting our observed data, we adopt a relatively simple prescription based on the halo model that is commonly used to describe large-scale clustering (see Cooray & Sheth 2002 , for a review) . Specifically, for the one-halo term, we adopt a gnfw ( gnfw ) profile, n_{\mathrm{H}}^{\mathrm{gNFW}}(r)=n_{\mathrm{H,0}}\times\frac{1}{\left(r/r_{\mathrm{s}}\right)^{\gamma}\left[1+\left(r/r_{\mathrm{s}}\right)^{\alpha}\right]^{(\beta-\gamma)/\alpha}}, (2) where \alpha , \beta , \gamma , and r_{\mathrm{s}} are the four shape parameters. The gnfw model has been widely used for describing the pressure profile of cluster gas ( Nagai et al. 2007 ; Arnaud et al. 2010 ; Bulbul et al. 2010 , e.g.) . Because the X-ray emitting gas in the off-filament directions terminates at the accretion shock, we additionally add this feature to the model. We assume that the hot gas density in the downstream region after shock compression is the mean baryon density \left<\rho_{\mathrm{b}}\right> . The modified hydrogen density profile is then n_{\mathrm{H}}(r)=\cases{n}_{\mathrm{H}}^{\mathrm{gNFW}}(r)&n_{\mathrm{H}}(r)\geq\left\\ 0\mathrm{elsewhere},{}\lx@close@alignment (3) where \left is the mean hydrogen number density converted from \left<\rho_{\mathrm{b}}\right> . For our observed sample, \left=3\times 10^{-7} cm -3 at the sample’s median redshift of 0.15 . The gas density can be converted to an X-ray emission \epsilon_{\mathrm{1h}}(r)=n_{\mathrm{e}}n_{\mathrm{H}}\Lambda_{\mathrm{cf}}(T,Z), (4) where we adopt n_{\mathrm{e}}=1.2n_{\mathrm{H}} for the hot gas and \Lambda_{\mathrm{cf}}(T,Z) is the temperature and metalicity-dependent cooling function. We projected the 3D emission onto a 2D plane. The projected surface X-ray photon rate is \Sigma_{\mathrm{X}}(r)=2\times\int_{0}^{l_{\mathrm{max}}}\epsilon_{\mathrm{X}}\left(\sqrt{l^{2}+r^{2}}\right)\mathrm{d}l, (5) where l is the projection los ( los ), l_{\mathrm{max}} is the one side projection depth. With a flat sky approximation, the observed surface brightness \displaystyle S_{\mathrm{X}}\left[\mathrm{cts\ s^{-1}\ deg^{-2}}\right]= \displaystyle\Sigma_{\mathrm{X}}\left[\mathrm{cts\ s^{-1}\ kpc^{-2}}\right]\times A_{\mathrm{eff}}\left[\mathrm{cm}^{2}\right] (6) \displaystyle\times\frac{2.55\times 10^{-48}}{\left(1+z\right)^{3}}, where A_{\mathrm{eff}} is the averaged effective area of the observation band. We calculated \Lambda_{\mathrm{cf}}A_{\mathrm{eff}} in the 0.2–2.3 keV band 1) using the APEC model with ATOMDB v3.09 ( Smith et al. 2001 ; Foster & Heuer 2020 ) , 2) with an assumption of Z=0.3Z_{\sun} and Lodders et al. 2009 abundance table, 3) using the effective area curve of the five used eROSITA telescope modules, 4) applying a K -correction at z=0.15 , and 5) taking an averaged foreground the average HI column density of 3\times 10^{20} cm 2 of the sample into account. The value of \Lambda_{\mathrm{cf}}A_{\mathrm{eff}} varies between 3 and 6 ph s -1 cm 5 in the temperature range T>3\times 10^{6} K. In this work, we adopted \Lambda_{\mathrm{cf}}A_{\mathrm{eff}}=4.9\times 10^{-12} ph s -1 cm 5 , which is the averaged value in the 3\times 10^{6}-5\times 10^{7} K temperature range. If a Z=0.2Z_{\sun} assumption is applied, the averaged value will be slightly decreased by 20%, which is mainly due to the less contribution of line emission in T\lesssim 1.5\times 10^{7} K. For the two-halo term, we started with theoretical calculations of the X-ray emission from nearby halos that are spatially correlated with the central halo. The distribution of neighbor halos around a halo can be described \frac{\mathrm{d}n}{\mathrm{d}V}(r,M_{\mathrm{c}})=\xi_{\mathrm{mm}}^{\mathrm{lin}}(r)b(M_{\mathrm{c}})\int\frac{\mathrm{d}n}{\mathrm{d}M\mathrm{d}V}b(M)\mathrm{d}M, (7) where M_{\mathrm{c}} is the mass of the central halo, \xi_{\mathrm{mm}}^{\mathrm{lin}} is the matter-matter correlation function in the linear regime, \mathrm{d}n/\mathrm{d}M\mathrm{d}V is the hmf ( hmf ), b is the mass dependent halo bias parameter, which quantifies the excess clustering of halos over the clustering of dark matter. We adopted hmf from Tinker et al. 2008 and halo bias from Tinker et al. 2010 . The profile of \xi_{\mathrm{mm}}^{\mathrm{lin}} and the models of halo bias and hmf are numerically implemented in the package colossus 6 6 6 https://bdiemer.bitbucket.io/colossus ( Diemer 2018 ) . With a halo luminosity-mass scaling relation, we converted the halo distribution to the emission distribution, \epsilon_{\mathrm{2h}}(r,M_{\mathrm{c}})=\xi_{\mathrm{mm}}^{\mathrm{lin}}(r)b(M_{\mathrm{c}})\int_{M_{\mathrm{min}}}^{M_{\mathrm{max}}}\frac{\mathrm{d}n}{\mathrm{d}M\mathrm{d}V}b(M)L_{\mathrm{X}}(M)\mathrm{d}M, (8) where \epsilon_{\mathrm{2h}}\equiv\mathrm{d}L_{\mathrm{X,2h}}/\mathrm{d}V , L_{\mathrm{X}}(M) is the luminosity-mass scaling relation, M_{\mathrm{min}} and M_{\mathrm{max}} are the integration limits. We used a survey selection function to describe the halo masking. Therefore, we rewrote Eq. 8 to \displaystyle\epsilon_{\mathrm{2h}}(r,M_{\mathrm{c}},z)= \displaystyle\xi_{\mathrm{mm}}^{\mathrm{lin}}(r,z)b(M_{\mathrm{c}},z) \displaystyle\times\int_{0}^{M_{\mathrm{max}}} \displaystyle\frac{\mathrm{d}n(M,z)}{\mathrm{d}M\mathrm{d}V}b(M,z)\left[1-\mathcal{D}(M,z)\right]L_{\mathrm{X}}(M,z)\mathrm{d}M, (9) where \mathcal{D}(M,z) is the eRASS1 X-ray selection function ( Clerc et al. 2024 ) , M_{\mathrm{max}} is the mass threshold of masking objects in observations, which is approximately 10^{14.3}M_{\sun} given our \lambda=20 richness threshold for source masking and the richness-mass scaling relation from Ghirardini et al. 2024 . For the L_{\mathrm{X}}-M scaling relation, we adopted the one from Bulbul et al. 2019 and applied a factor of 1.4 to convert 0.5–2 keV luminosity to 0.2–2.3 keV luminosity. Similar to the one-halo component, we applied Eqs. 5 and 6 to \epsilon_{\mathrm{2h}} to obtain the projected two-halo term model surface brightness, where we used an integration limit l_{\mathrm{max}}=100 Mpc. We created the individual object two-halo model, and then stacked them using Eq. 1 to obtain a synthesis model S_{\mathrm{X,halo}}^{\mathrm{2h}}(r) for fitting. To account for the emission from unvirialized filament gas, an additional free normalization parameter A_{\mathrm{2h}} is also included in the fitting. The final projected two-halo model can be expressed as S_{\mathrm{X}}^{\mathrm{2h}}(r)=A_{\mathrm{2h}}S_{\mathrm{X,halo}}^{\mathrm{2h}}(r). (10) We used a constant profile to account for the background components that are not associated with our stacking objects. The uncorrelated components include the instrumental background, Galactic foreground, and the cosmic X-ray background. 3.2 Surface brightness profile fitting We modeled the stacked eRASS:4 profiles using the Bayesian inference package pocoMC ( Karamanis et al. 2022a ; Karamanis et al. 2022b ) . The likelihood is defined as \mathcal{L}=-\chi^{2}/2 , where \chi^{2}=(S_{\mathrm{x}}^{\mathrm{data}}-S_{\mathrm{x}}^{\mathrm{model}})^{\mathrm{T}}\mathcal{C}^{-1}(S_{\mathrm{x}}^{\mathrm{data}}-S_{\mathrm{x}}^{\mathrm{model}}) is a generalized form that takes the profile covariance into account. We applied flat priors for all parameters. We adopted the median and the 16th to 84th percentiles of the posterior as the best-fit parameter and the uncertainty range. We fitted the model combination of the gnfw , two-halo, and a constant to the 0.2–2.3 keV stacked profile. The best-fit parameters are listed in Table 1 . In Fig. 4 , we plot each best-fit component of the stacked profile as well as the fit residual. The fitting illustrates that the r_{\mathrm{200m}} is approximately the boundary between the one-halo dominant and two-halo dominant regions. To check the necessity of including the two-halo term in the fitting, we also fitted the profile using gnfw + constant model combination. The best-fit components are plotted in Fig. 13 . Without the two-halo term, there are more residuals in the range of 1-2\times r_{\mathrm{200m}} . Based on the Bayesian model comparison framework, we calculated the Bayes factor of the two fits, which is \exp(11.5) . It suggests that the fitting by including the two-halo term is decisively favored according to the Jeffreys’ scale ( Jeffreys 1961 ) or a similar scale later suggested by Kass & Raftery 1995 . The normalization of the two-halo term is 0.22\pm 0.03 cts s -1 deg -2 at r_{\mathrm{200m}} , corresponding to 2\times 10^{35} erg s -1 kpc -2 at the sample median redshift, which is at the same order of the magnitude of that from the recent galaxy-X-ray cross-correlation study ( Comparat et al. 2025 ) . Table 1: Best-fit parameters of the gnfw gas density profile and the two-halo term normalization. Parameter Unit Value \log n_{\mathrm{H,0}} cm -3 -2.9\pm 0.2 r_{\mathrm{s}} r_{\mathrm{200m}} 1.2\pm 0.3 \alpha - 0.74\pm 0.05 \beta - 5.7\pm 0.6 \gamma - 0.39\pm 0.09 S_{\mathrm{X}}^{\mathrm{2h}}(r_{\mathrm{200m}}) cts s -1 deg -2 0.22\pm 0.03 Figure 4: Best-fit results of the stacked 0.2–2.3 keV eROSITA surface brightness profile, where we adopted the gnfw model for the one-halo component. The width of each component denotes the 1\sigma scatter of the posterior samples. The inset shows a zoomed-in view around the background level. 3.3 Density profile and comparison with the literature We present the best-fit one-halo term gas number density profile in Fig. 5 . We note that the profile we show is the total gas number density n_{\mathrm{tot}} , where n_{\mathrm{tot}}=2.3\times n_{\mathrm{H}} for typical halo gas. We use two different ways to present the profile uncertainty: the purple band is the 1\sigma scatter of the posterior sample from model inference; the red band is the range of the fitting results of four individual sectors. Due to the large pixel size we used for stacking, which is 0.86\arcmin , or 140 kpc physical scale at sample median redshift 0.15, we only show the density profile beyond 0.05\times r_{\mathrm{200m}} . Our best-fit density profile illustrates that the gas density at a large radius of r_{\mathrm{200m}} is still about 2.5\times 10^{-5} cm -3 , corresponding to a baryon density contrast of 30. The cutoff of the profile at the cosmic averaged baryon density is introduced by the condition we applied in Eq. 3 . We discuss it later in Sect. 5.1 . Our best-fit density profile is overall consistent with the density profiles derived from the XMM-Newton and eROSITA observations of the Planck -selected samples out to two and three r_{\mathrm{500c}} , as shown in Fig. 5 ( Ghirardini et al. 2019 ; Lyskova et al. 2023 ) . The normalization and slopes derived from the eROSITA observations of Planck -selected clusters in 69 are consistent with our fits in the radial range of 0.4-1\times r_{\mathrm{200m}} . Nonetheless, within the central region r<0.4\times r_{\mathrm{200m}} , we find a slightly shallower slope and lower normalization. By contrast, the density profiles from the XMM-Newton observations in Ghirardini et al. 2019 show the highest normalization and the steepest slope compared to both our results and those of 69 . A likely explanation for the offset observed in the central regions is the different mass ranges of the utilized samples. 69 stacked eROSITA observations of the Planck sz sample ( Planck Collaboration et al. 2016a ) with a mass threshold of M_{\mathrm{500c}}>2\times 10^{14} M_{\sun} and a mean mass of 4.1\times 10^{14} M_{\sun} , while Ghirardini et al. 2019 used the X-COP sample ( Eckert et al. 2017 ) , which consists of 12 Planck -selected clusters with masses significantly higher than both our sample and that of 69 . Thus, both comparison samples probe higher-mass clusters than those studied in this work, which could account for the observed offset. Figure 5: Best-fit gnfw gas number density profile 1\sigma posterior range (purple) and the range of individual fittings of the four wedges (red) inferred by the eROSITA observations. The result from 69 (yellow) up to 3\times r_{\mathrm{500c}} , and the result from Ghirardini et al. 2019 up to 2\times r_{\mathrm{500c}} (green). 4 Stacked profiles in IllustrisTNG simulation In this section, we explore the galaxy cluster halos in the IllustrisTNG simulation to 1) validate our stacking and modeling processes; 2) compare the observations to the simulations to understand underlying physical processes in this unexplored region with previous observations; 3) study the 3D structure of the shock heated gas from the galaxy cluster center to the accretion region. The IllustrisTNG is a suite of cosmological magnetohydrodynamical simulations ( Naiman et al. 2018 ; Springel et al. 2018 ; Nelson et al. 2018 ; Marinacci et al. 2018 ; Pillepich et al. 2018 ) of galaxy formation in a fixed cosmology ( Planck Collaboration et al. 2016b ) . Halo and galaxy catalogs are based on the fof ( fof ) algorithm and subhalo/galaxy identification with Subfind ( Springel et al. 2001 ) . For this work, we use the z=0 snapshot of the highest-resolution version on the largest box, TNG300-1, to study the X-ray properties in cluster outskirts. Specifically, we select 159 halos with M_{\mathrm{500c}}>10^{14} M_{\sun} from the fof catalog, whose mass range is comparable to the observation sample. We use the code hydrotools ( Diemer et al. 2017b ; Diemer et al. 2018 ; Tacchella et al. 2019 ) to extract all gas cells out to 10 Mpc and calculate thermodynamic properties: (1) the total gas number density n_{\mathrm{tot}}=n_{\mathrm{H}}+n_{\mathrm{e}}+n_{\mathrm{He}} , the sum of hydrogen, electron, and helium number density. The n_{\mathrm{H}} and n_{\mathrm{He}} are converted from the mass density by assuming mass fractions of 0.76 and 0.24, respectively. The n_{\mathrm{e}} are calculated using the electron abundance of the cell. We ignore the contribution from metal elements in the total number density. (2) the gas temperature T , which is converted from the internal energy of the gas cell. (3) the electron entropy K_{\mathrm{e}}=k_{\mathrm{B}}T_{\mathrm{e}}n_{\mathrm{e}}^{-2/3} , where k_{\mathrm{B}} is the Boltzmann constant, T_{\mathrm{e}}=T by assuming the thermal equilibrium. (4) the gas pressure P_{\mathrm{gas}}=n_{\mathrm{tot}}k_{\mathrm{B}}T . In addition, we calculate the 0.2–2.3 keV X-ray emission properties by assuming a collisional ionization equilibrium condition and using the ATOMDB v3.09 APEC code ( Smith et al. 2001 ; Foster & Heuer 2020 ) . For each gas cell, \displaystyle L_{\mathrm{X}}= \displaystyle V_{\mathrm{cell}}n_{\mathrm{H}}n_{\mathrm{e}}\Lambda_{Z=0}(T) \displaystyle+Z_{\mathrm{cell}}V_{\mathrm{cell}}n_{\mathrm{H}}n_{\mathrm{e}}\left[\Lambda_{Z=Z_{\sun}}(T)-\Lambda_{Z=0}(T)\right], (11) where V_{\mathrm{cell}} is the cell volume, Z_{\mathrm{cell}} is the cell metalicity in solar unit, \Lambda_{Z=0} and \Lambda_{Z=Z_{\sun}} are the cooling function with zero metalicity and solar metalicity ( Lodders et al. 2009 ) , respectively. 4.1 Projected emission profile and fitting method validation In this subsection, we validate the profile fitting framework using the simulation data. We aim to investigate whether the fitting results from the profile modeling framework we applied in Sect. 3 could match the true 3D density profiles up to the accretion shock. In each 20\times 20\times 20 Mpc 3 boxes centered at each halo, we projected the 0.2–2.3 keV X-ray emission on the XY, YZ, and XZ planes, respectively. Then we created nearby (sub)halo masks for each object and each projection angle with M_{\mathrm{500c}} threshold of 10^{13} , 10^{13.5} , and 10^{14} M_{\sun} . We note that some of the bright X-ray halos in binary or multi-object systems are not identified as the main halo. We therefore excluded Subfind halos instead of fof halos with a masking radius of 1.5r_{\mathrm{500c}} . Though the overdensity mass is not in the Subfind catalog, it can be converted from M_{\mathrm{subfind}} . For most central halos, the ratio between M_{\mathrm{500c}} and M_{\mathrm{subfind}} is about 2/3 . For each projection direction and halo mask threshold, we stacked the radially averaged projected emission profile \Sigma_{\mathrm{x}}(r)=\frac{\sum_{i}w_{i}\Sigma_{\mathrm{x},i}(r)}{\sum_{i}w_{i}}, (12) where r is the radius in a unit of r_{\mathrm{200m}} , w_{i} is the weight, and here we adopted r_{\mathrm{500c}}^{-2} to reduce the bias from the large physical size objects. We calculated the median profile from the three projection angles as the final stacked profile. The stacked 0.2–2.3 keV \Sigma_{\mathrm{x}} profile with the three nearby-halo masking thresholds is plotted in the left panel of Fig. 6 as shaded regions. The three stacked profiles are identical in the r<0.7\times r_{\mathrm{200m}} radial range and turn flat at r\gtrsim r_{\mathrm{200m}} . The outer parts of the profiles are contributed by gaseous (sub)halos with masses below the masking threshold from the far outskirts to cosmic filaments, together with the unvirialized gas in filaments. Different halo masking thresholds result in different \Sigma_{\mathrm{x}} normalizations of the outer profile. Meanwhile, the outer parts of the three stacked profiles show several enhancements, where the one in the 10^{14}M_{\sun} masking threshold profile is the most significant. These enhancements are from bright X-ray halos that are below the masking threshold, and as the threshold decreases, the significance of these enhancements to the overall emission becomes negligible. We followed Sect. 3 to fit the one-halo and two-halo models to the projected 2D simulated \Sigma_{\mathrm{X}} profiles. For the one-halo term, in addition to the gNFW model we used in Sect. 3 , we include two more models for testing: • The Vikhlinin et al. 2006 profile, which is n_{\mathrm{H}}=n_{\mathrm{H,0}}\times\frac{\left(r/r_{\mathrm{c}}\right)^{-\alpha}}{\left[1+(r/r_{\mathrm{c}})^{2}\right]^{3\beta-\alpha/2}}\times\frac{1}{\left[1+(r/r_{\mathrm{s}})^{\gamma}\right]^{\epsilon/\gamma}}\ , (13) where n_{\mathrm{H,0}} is the hydrogen number density normalization, \alpha , \beta , \epsilon , \gamma , r_{\mathrm{c}} , and r_{\mathrm{s}} are the six parameters that control the profile shape. • The 69 profile, which is a modification of the 117 profile with an additional slope change at the large radii, \displaystyle n_{\mathrm{H}}=n_{\mathrm{H,0}} \displaystyle\times\frac{\left(r/r_{\mathrm{c}}\right)^{-\alpha}}{\left[1+(r/r_{\mathrm{c}})^{2}\right]^{3\beta-\alpha/2}}\times\frac{1}{\left[1+(r/r_{\mathrm{s}})^{\gamma}\right]^{\epsilon/\gamma}} \displaystyle\times\frac{\left[1+(r/r_{\mathrm{s2}})^{\gamma}\right]^{\epsilon/\gamma}}{\left[1+(r/r_{\mathrm{s2}})^{\xi}\right]^{\lambda/\xi}}\ , (14) where \lambda , \xi , r_{\mathrm{s2}} are three additional shape parameters. We adopted a constant value \Lambda_{\mathrm{cf}}=8\times 10^{-24} erg s -1 cm 3 by assuming a constant temperature and abundance profile for the density to emissivity conversion. This is approximately the radiative cooling in the 0.2–2.3 keV band with T=2\times 10^{7} K and Z=0.3Z_{\sun} . As discussed in Sect. 3 , a choice of a lower metalicity of 0.2Z_{\sun} could result in a slightly lower \Lambda_{\mathrm{cf}} . For the two-halo term formalism, there are several settings different from those we used in Sect. 3.1 . First, we adopt the TNG300-1 L_{\mathrm{X}}-M scaling relation from Pop et al. 2022 . Second, because the simulation data we extracted for each cluster are in 20\times 20\times 20 Mpc 3 boxes, we used l_{\mathrm{max}}=10 Mpc as the one side projection depth when calculating the model \Sigma_{\mathrm{X}} using Eq. 5 . Third, because we masked nearby halos in simulations only based on the mass, we did not further apply additional selection functions such as the one in Eq. 3.1 . We fit the three stacked profiles with the different mass exclusion thresholds, with the combined one-halo and two-halo terms. For each stacked profile, the three one-halo models are used separately for validation. We used the package iminuit ( Dembinski et al. 2020 ) for minimizing the \chi^{2} values. The left panel of Fig. 6 shows the results of the fits with the gNFW model as the one-halo component. The middle panel of Fig. 6 presents the residuals and best-fit \chi^{2} values of the fits using the gNFW, 117 and 69 models on the three stacked profiles with different mass exclusion thresholds. The residuals show that all three one-halos models, together with the two-halo term, can well fit the projected emission profile from halo center to 4\times r_{\mathrm{200m}} . The three one-halo profile models return similar residuals and \chi^{2} values. The large residual in fittings with a nearby halo masking threshold of 10^{14} M_{\sun} is due to several unmasked bright objects that are below the threshold. The right panel of Fig. 6 shows the best-fit one-halo density profiles of the gNFW, 117 , and 69 models in dashed, dashed-dotted, and dotted lines, respectively, where different colors denote the different nearby halo masking thresholds. We overplot the scatter of the 3D density profiles in the off-filament directions as the gray shaded region (see later Sect. 4.3 for details). All the best-fit 3D density profiles using the three models are close to the true profiles. Among the three models we tested, the 69 model exhibits the most scatter, due to its additional flexibility of changing the slope at the large radii. Meanwhile, the fits using the gnfw model are in good agreement with those using the 117 model, despite having two fewer shape parameters. This comparison also highlights that the gnfw model can well describe the gas density profile to a large radius. Complex models with more shape parameters do not significantly improve the fitting residual. Figure 6: Left : Stacked surface X-ray emission profiles of the TNG300-1 galaxy cluster halos. The teal, orange, and red colors denote the nearby-halos masking thresholds of 10^{13} , 10^{13.5} , and 10^{14}M_{\sun} , respectively. The shaded regions are the sample bootstrapping uncertainties that reflect the sample scatter. The best-fit of the gNFW profiles, the two-halo terms, and the total profiles are plotted in the dashed, dotted, and solid lines, respectively. The sharp peaks in the outer profile are contributed to by bright nearby halos that are below the masking threshold. Middle : The residuals of the fittings of the three different one-halo models. The \chi^{2} value of each fitting is labeled. Right : The best-fit total number density profiles and their comparison to the T>10^{6} K gas density profile in the off-filament directions in 3D (see Sect. 4.3 ). Different color denotes the different nearby halo masking thresholds of the stacked profiles, the same as the left and middle panels. The dashed, dash-dotted, and dotted lines denote the results of the gNFW, 117 , and 69 models, respectively. This analysis shows that by adding a two-halo term to account for the nearby infalling (sub)halos and circumcluster gas in the cosmic filament directions, all three one-halo density models can well recover the true density profile in the off-filament directions out to the accretion shock in numerical simulations. In other words, the two-halo term accounts for the major gas-clumping effects, i.e., the presence of nearby (sub)halos and isotropic gas distribution due to cosmic filaments at large radii. The mild offset between the best-fit profile normalization and the median of the true 3D density profile can be explained by other minor clumping effects, e.g., halo triaxiality, density fluctuations due to turbulence, and the presence of inner shock and cold fronts. Moreover, even if we assumed a constant cooling function and ignored the variation of temperature and metalicity, the fits successfully recover the true number density profile, suggesting a minor impact from the two effects. We therefore conclude that our models, validated against the IllustrisTNG simulations, reliably recover the density profiles from the cluster cores out to the circumcluster region beyond r_{200m} . 4.2 Comparison between simulations and observations Figure 7: Left : Comparison of the projected emission profiles from observations and simulations. The observed stacked eROSITA profile from this work is shown in purple error bars. The profiles extracted from the TNG300-1 simulation are shown as a cyan band. The TNG300-1 profile is more centrally peaked than the observed profile. For an additional comparison, profiles of The Three Hundred Gizmo-Simba and Gadget-X simulations from Li et al. 2025 are shown as dashed and dotted green lines, respectively. Right : Best-fit gnfw gas number density profile 1\sigma posterior range (purple) and the range of individual fittings of the four wedges (red). We overplot the scatter of the TNG300-1 gas number density profile in the off-filament directions (cyan hatched region). Different baryon physics models, especially the feedback models in hydrodynamic simulations, lead to large discrepancies in the gas distribution ( Moser et al. 2022 ; Schaller et al. 2025 , e.g.,) . The profiles from the analyses of the IllustrisTNG simulation and the erass observations allow us to test the baryon physics models of TNG300-1 simulations. The normalization and slope of the inner profile characterize the spatial distribution of hot gas within the halo, reflecting its thermodynamic structure and underlying thermal and non-thermal effects. The outer profile reflects both the amounts of hot gas and gas-rich halos in the circumcluster or filament regions. We note that the comparison with simulations in this work is only qualitative, as the selection function of eROSITA is not applied to the simulation cluster sample. We first compare the projected X-ray emission profile \Sigma_{\mathrm{X}} between observations and simulations in the left panel of Fig. 7 . The erass observed \Sigma_{\mathrm{X}} profile (purple error bars) is the total S_{\mathrm{X}} profile with the best-fit uncorrelated component (see Sect. 3 ) subtracted and converted using Eq. 6 . It includes both the one-halo and the two-halo components. In addition to the TNG300-1 simulations analyzed here, we include a comparison with two the300 ( the300 ) profiles reported by Li et al. 2025 , from the Gizmo-Simba and Gadget-X runs (shown as dashed and dotted green lines, respectively). The same panel also displays the TNG300-1 simulation \Sigma_{\mathrm{X}} profile, with a nearby halo masking threshold of 10^{14}M_{\sun} in the cyan shaded region. In the inner region r\lesssim r_{\mathrm{200m}} , the TNG300-1 \Sigma_{\mathrm{X}} profile is more centrally peaked compared to the stacked observations. In the radius range of 1-4r_{\mathrm{200m}} , the normalization of the TNG300-1 profile is a factor of 3 lower than the observations. This difference can be partly attributable to the limited projection depth of the TNG300-1 analysis (20 Mpc), which substantially reduces the projected two-halo signal. Although the three simulation profiles are all calculated at z=0 and with a nearby halo masking threshold of M_{\mathrm{500c}}=10^{14}M_{\sun} , the emissivity profiles of the two the300 simulations have normalizations higher than those in the TNG300-1 in cluster outskirts to the circumcluster region, as shown in the left panel of Fig. 7 . This could be partially attributed to the mass difference of the sample and the mass exclusion limit of the surrounding infalling halos. the300 simulations only include massive halos with M_{\mathrm{200c}}>10^{14.8}M_{\sun} , whose halo bias is higher than the sample used in the TNG300-1 . However, the one order of magnitude difference between the two profiles, Gizmo-Simba and Gadget-X runs, is only due to the different simulation settings. As reported by Li et al. 2025 , the Gadget-X run contains a higher fraction of dense gas at large radii. The comparison of the three profiles in large radii suggests that the different adoptions of simulation codes, physical models, and model parameters could lead to a significant difference in the intensity of the circumcluster X-ray emission. The new stacked observations of the eROSITA clusters allow us to test the physical models in these unexplored regions from cluster far outskirts towards connecting filaments. As the next step, in the right panel of Fig. 7 , we compare the one-halo term density profile from the eROSITA observations with the TNG300-1 T>10^{6} K hot gas density profiles in the off-filament direction. As also shown in the \Sigma_{\mathrm{X}} profile comparison, the observed gas density profile is less centrally peaked than that predicted by the TNG300-1 simulation, suggesting that feedback processes in cluster-scale halos may be stronger and more efficient than those implemented in the IllustrisTNG model, displacing part of the gas toward the cluster outskirts. Similar discrepancies have been reported at lower halo masses in the galaxy group regime. The stacked kinematic sz (kSZ) signal of luminous red galaxies measured by ACT appears more extended than the IllustrisTNG predictions ( Hadzhiyska et al. 2024 ) . Similarly, the eROSITA-selected galaxy groups tend to exhibit higher entropy from r_{\mathrm{2500c}} to r_{\mathrm{500c}} , corresponding to a lower central gas density compared to the MillenniumTNG simulations ( Bahar et al. 2024 ) , whose feedback model is similar to that of the TNG300-1 simulations used in this work. These results are also consistent with the systematically elevated normalization of the halo L_{\mathrm{X}}-M relation ( Pop et al. 2022 ) and the higher gas mass fractions within r_{\mathrm{500c}} of the optically selected groups ( Popesso et al. 2024 ) . A detailed study of gas distribution with AGN feedback models across a large mass range of eROSITA-selected galaxy clusters and groups will be presented in our upcoming studies (Ding et al. in prep., Clerc et al. in prep.). 4.3 Thermodynamic profiles in 3D In this section, we investigate the gas thermodynamic properties from the halo center to accretion regions in the TNG300-1 simulations. We extracted gas particles out to 5\ r_{\mathrm{200m}} , and created masks for particles belonging to nearby halos and subhalos. The spherically averaged gas density profiles from the cluster outskirts out to several r_{\mathrm{200m}} from hydrodynamic simulations consistently find that the profiles steepen from the cluster center to around r_{\mathrm{200m}} , before flattening again due to the influence of cosmic filaments ( O’Neil et al. 2021 ; Angelinelli et al. 2022 ; Towler et al. 2024 ) . However, in the following, we shall argue that at the radii with the presence of cosmic filaments, the gas properties towards the into-filament and off-filament (or into-void) environments could be significantly different and cannot be reflected by the spherically averaged profiles. Therefore, we aim to explore these quantities in both the filament and off-filament directions. Following Mansfield et al. 2017 and Aung et al. 2021 , we adopted an N_{\mathrm{side}}=8 healpix scheme to group particles into 768 directions with respect to the halo center. For each los direction, we binned the volume-averaged radial profiles of T , K_{\mathrm{e}} , P_{\mathrm{gas}} , and n_{\mathrm{tot}} using 20 logarithmically spaced bins from 0.01 to 5 r_{\mathrm{200m}} . The temperature range of 10^{5}-10^{5.5} K is usually the boundary between cool-to-warm and warm-hot gas ( Cen & Ostriker 1999 ; van de Voort et al. 2011 , e.g.) . Here we adopted a temperature threshold of 10^{5} K to classify them into the in-filament and off-filament los directions. The into-filament/off-filament los profiles are those with the last radial bin temperature higher/lower than 10^{5} K. Fig. 8 shows the 68% scatter of the 768\times 159 los profiles of T , K_{\mathrm{e}} , P_{\mathrm{gas}} , and n_{\mathrm{tot}} in the two different directions, where nearby M_{\mathrm{500c}}>10^{13}M_{\sun} (sub)halos are excluded. For all the thermodynamic quantities of T , K_{\mathrm{e}} , and P_{\mathrm{gas}} , the into-filament and off-filament los profiles agree with each other within r_{\mathrm{200m}} and show a strong discrepancy beyond that radius. The into-filament temperature profiles keep T\sim 10^{6} K out to the maximum radius we extracted, while the off-filament-direction temperature profiles have more than two orders of magnitude drops at the radii of their accretion shocks, \sim 2-3 r_{\mathrm{200m}} . Similarly, the discrepancy between the two directions and the feature of the accretion shock is also presented in the K_{\mathrm{e}} and P_{\mathrm{gas}} profiles. The n_{\mathrm{tot}} profile in the two directions deviates at r_{\mathrm{200m}} , but neither shows a jump at the shock radii. The absence of a strong jump in the total gas number density but a sharp drop in temperature is compatible with the Rankine-Hugoniot shock conditions, which impose limits of \lim_{\mathcal{M}\to\infty}\rho_{2}/\rho_{1}=4 on the density jump and \lim_{\mathcal{M}\to\infty}T_{2}/T_{1}=5/16\times\mathcal{M}^{2} on the pressure jump. For a high- \mathcal{M} accretion shock, the temperature can be enhanced by more than one order of magnitude, but the density enhancement is limited to 4. This change is smaller than the scatter of los n_{\mathrm{tot}} profiles among the cluster sample and could be easily smeared out due to the triaxiality of the shock surface. We additionally plot the off-filament direction gas number density profiles using gas cells with T>10^{6} K, which is the temperature range of X-ray-emitting gas. The gas number density profiles of the T>10^{6} K phase follow the total gas number density profile up to the termination at the accretion shock, which reflects that the hot gas in the off-filament direction is confined by the accretion shock. Outside the accretion shock, all gas is in temperatures lower than 10^{6} K. This behavior matches the order-of-magnitude drop in the temperature profile. Figure 8: One- \sigma scatter of the temperature (top left), electron entropy (top right), gas pressure (bottom left), and gas density (bottom right) line of sight profiles grouped into the filament (teal color) and off-filament directions (orange color) in the TNG300-1 simulations. All four types of profiles show a strong discrepancy in the two different directions. In addition, we plot the T>10^{6} K gas density profile in the off-filament direction in magenta in the bottom right panel. The hot gas is confined by the accretion shock within 3\times r_{\mathrm{200m}} . 5 Discussion 5.1 Characteristic radii at the halo boundary One important question for studying halos and structure formation is where the boundary of a halo lies. The infall, orbit, and turnaround of collisionless dark matter causes the splashback feature, which is now being widely considered as a novel definition of the halo boundary. However, the infall of collisional gas does not exhibit the splashback feature because it gets shocked before it can enter the halo. In this section, we discuss the possible characteristic radii of the gas content that can be constrained by our observations and that could be used as halo boundaries, the gas fraction enclosed in this radius, and the implications of these results. The most prominent feature from both theoretical calculations and numerical simulations, which can be used as the halo gas boundary, is the accretion shock. In fact, the accretion shock in simulations is a gigantic structure enclosing the nodes, filaments, and sheets ( Ryu et al. 2003 ; Schaal et al. 2016 , e.g.) . For halos of galaxy clusters, in particular, our analysis of the los dependent thermodynamic profiles using TNG300-1 shows that the accretion shock is the boundary of hot gas in the off-filament direction. In contrast to numerical simulations, it is extremely difficult to measure the distance of the accretion shock in observations from the cluster cores. For example, Anbajagane et al. 2022 presented an sz staking study but found only a marginal feature attributed to an average accretion shock at 4.6\times r_{\mathrm{200m}} . The projected surface brightness profile of the stacked eROSITA observations itself (see the left panel of Fig. 7 ) shows no clear surface brightness features corresponding to the accretion shock beyond r_{200m} . Nevertheless, the profile fitting in this work provides an indirect clue to the accretion shock location. The TNG300-1 gas density profile in the off-filament direction (see the bottom right panel of Fig. 8 ) shows that the hot gas density at the accretion shock is about 2\times 10^{-7} cm -3 , slightly lower than the cosmic mean baryon density \left<\rho_{\mathrm{b}}\right> . It proves that our assumption of gas density at the accretion shock in Eq. 3 is reasonable. From our fitting results, the gas density profile of the one-halo term reaches the \left<\rho_{\mathrm{b}}\right> at \sim 3\times r_{\mathrm{200m}} , indicating a possible accretion shock radius based on our assumption. Moreover, the estimated shock radius is close to that from the TNG300-1 simulation (see the right panel of Fig. 7 ). Again, we clarify that the best-fit density profile of the one-halo term is mostly constrained by the emission at r10^{14}M_{\sun} halos in the TNG300-1 simulations is plotted in a blue hatched band. The median profile of M_{\mathrm{vir}}\sim 5\times 10^{14}M_{\sun} mass bin in the Magneticum simulation from Angelinelli et al. 2022 is plotted as a green line. 6 Conclusions This study investigates the distribution of shock-heated gas from the outskirts of galaxy clusters into the large-scale accretion regions. We performed a stacking analysis of the two-year eROSITA All-Sky survey observations of 680 galaxy clusters selected in X-rays from the eRASS1 survey, spanning a mass range of M_{\mathrm{500c}}\gtrsim 10^{14}M_{\sun} and a redshift interval of 0.03r_{\mathrm{200m}} . In contrast, profiles along filament directions remain elevated out to the maximum extraction radius, consistent with continuous gas inflow from the cosmic filament. Furthermore, we employ the TNG300-1 data to validate our modeling framework of the stacked eROSITA observations. Incorporating a two-halo term that accounts for shock-heated gas and X-ray halos in filaments results in a best-fit one-halo profile that accurately recovers the gas density profile in off-filament directions. The observed gas density profile is more extended, while the predicted by the TNG300-1 numerical simulations show concentrated profiles. This trend is also reflected in the gas fraction profile of the stacked cluster of galaxies. The observed gas fraction profile reaches approximately 90% of the cosmic baryon fraction at r_{\mathrm{200m}} , indicating the baryon enclosure at such radius. The gas fraction profile of the TNG300-1 cluster sample exhibits a steep rise beyond >0.1r_{200} compared to the observations and reaches 90\% cosmic baryon fraction between r_{\mathrm{500c}} and r_{\mathrm{200m}} . The differences in observed density and gas fraction profiles suggest that the feedback processes in M_{\mathrm{500c}}>10^{14}M_{\sun} halos may be stronger than modeled in IllustrisTNG if the selection effects are ignored. This behavior is consistent with the recently observed trends at lower mass halos in galaxy group regimes in ACT kSZ measurements ( Hadzhiyska et al. 2024 ; Siegel et al. 2025 ) and the stacked eROSITA observation of X-ray and optically selected galaxy groups ( Bahar et al. 2024 ; Popesso et al. 2024 ) . We also explore the fractions of the two-halo emission that originates from infalling nearby halos and the low-density unvirialized filament gas in the circumcluster medium. By comparing the best-fit two-halo normalization with the predicted value using models of halo bias, halo mass function, and halo mass to luminosity scaling relations, we find that \sim 40\% of the two-halo emission could be from nearby halos. However, with further exploration of the parameter space of the model choice, the fraction varies from 20\% to 80\% . Comparing observations with simulations, we identify two characteristic radii in the cluster outskirts in the accretion region that signify transitions in the thermodynamic state of the intracluster and intergalactic gas, potentially defining physical halo boundaries in this region. The first is the halo–filament intersection radius, located at approximately r_{\mathrm{200m}} , where the two-halo term for the unvirialized gas and infalling halos in the filaments begins to dominate the stacked X-ray surface brightness profile over the one-halo term of the virialized intracluster gas, corresponding to the scale at which the gas density and pressure profiles along cosmic filament directions exceed those in the off-filament directions in the TNG300-1 simulations. The second is the accretion shock radius, estimated to lie at \sim 3\times r_{\mathrm{200m}} , inferred by extrapolating the one-halo gas density to the cosmic mean baryon density, consistent with the simulation predictions from the IllustrisTNG. However, the current depth of the eROSITA All-Sky Survey and the background levels limit our study to exploring the regions beyond r_{\mathrm{200m}} and directly detecting the features of the accretion shock. This work presents the erass stacking analysis of the shock-heated gas in cluster far outskirts and surrounding circumcluster accretion regions. The results represent the average properties of the sample studied here. Detailed studies on individual systems require high sensitivity, low instrumental background, an understanding of the foreground/background large-scale structure, and deep exposure. The upcoming NewAthena mission ( Nandra et al. 2013 ; Cruise et al. 2025 ) in the late 2030s will be particularly well-suited for such targeted studies of individual galaxy clusters, providing new insights into the cluster–filament connection, the anisotropic distribution of gas at cluster boundaries, and the emission contribution from unvirialized gas within filaments. Acknowledgements. The authors acknowledge Lars Hernquist and Volker Springel for helpful discussions. This work is based on data from eROSITA, the soft X-ray instrument aboard SRG, a joint Russian-German science mission supported by the Russian Space Agency (Roskosmos), in the interests of the Russian Academy of Sciences represented by its Space Research Institute (IKI), and the Deutsches Zentrum für Luft- und Raumfahrt (DLR). The SRG spacecraft was built by Lavochkin Association (NPOL) and its subcontractors, and is operated by NPOL with support from the Max Planck Institute for Extraterrestrial Physics (MPE). The development and construction of the eROSITA X-ray instrument was led by MPE, with contributions from the Dr. Karl Remeis Observatory Bamberg & ECAP (FAU Erlangen-Nuernberg), the University of Hamburg Observatory, the Leibniz Institute for Astrophysics Potsdam (AIP), and the Institute for Astronomy and Astrophysics of the University of Tübingen, with the support of DLR and the Max Planck Society. The Argelander Institute for Astronomy of the University of Bonn and the Ludwig Maximilians Universität Munich also participated in the science preparation for eROSITA. The eROSITA data shown here were processed using the eSASS/NRTA software system developed by the German eROSITA consortium. X. Zhang, E. Bulbul, E. Artis, and S. Zelmer acknowledge financial support from the European Research Council (ERC) Consolidator Grant under the European Union’s Horizon 2020 research and innovation program (grant agreement CoG DarkQuest No 101002585). A.L. acknowledges the support from the National Natural Science Foundation of China (Grant No. 12588202). A.L. is supported by the China Manned Space Program with grant no. CMS-CSST-2025-A04. Appendix A Profiles in four individual sectors In the inset of Fig. 3 , there is a plausible surface brightness jump at \sim 2r_{\mathrm{200m}} . In this section, we explore the origin of this feature. Following 69 , we divided each cluster into four 90\degr sectors and stacked profiles of each. The comparison between the four sector profiles and the full profile is shown in Fig. 11 . The profile in sector 1 is the most scattered profile among the four. It shows features of a spike in the bin between 1.6 and 1.9 r_{\mathrm{200m}} and a dip in the bin between 2.2 and 2.6 r_{\mathrm{200m}} . The two features result in a plausible jump in the full profile. Because the jump is not a universal feature in all four sectors, we do not further over-interpret it. Figure 11: Comparison between the full stacked profile and those in four independent sectors. Appendix B Noise level from the uncorrelated components The stacking of randomly distributed objects in the sky is supposed to filter out the signal from uncorrelated components such as the instrumental background, sky fluctuation due to Galactic halo emission, and foreground absorption. To validate it and quantify the contribution of the uncorrelated components in the error budget, we performed stacking analysis on a source-removed sky map. We first created an eRASS:4 HEALPix map in the 0.2-2.3 keV band with all sources removed (see Sect. 2.2.1 for the source catalogs). The example of the source masked sky rate map is shown in the left panel of Fig. 12 . Then, we randomly distributed the positions of the 680 galaxy clusters on the half-sky map. With the randomized cluster positions, we obtained a stacked surface brightness profile with the weight in Eq. 1 . We repeated the randomization process 500 times to obtain a set of control sample profiles. We aim to study the relative fluctuation of each radial bin with respect to the profile average value. Therefore, for each profile, we divided it by the profile mean value to get a relative surface brightness profile. On the right panel of Fig. 12 , we show the analysis results. On the top-right panel, we plot the relative profiles of the 500 control samples, where the 68% scatter is shown as the shaded region. On the bottom-right panel, we plot the relative scatter as a function of the radius. It shows that the 680 objects and the depth of the eRASS:4 sky allow us to obtain a precision level of <0.3\% for the uncorrelated components. Figure 12: Left : Source removed eRASS:4 sky map for studying the uncorrelated background noise. Top right : Five-hundred control sample relative surface brightness profiles stacked with cluster positions randomly distributed on the sky. The shade region denotes the scatter of the 500 control sample profiles. Bottom right : The scatter of the 500 control sample profile as a function of the radius. As the radius increases, the scatter decreases. Beyond r_{\mathrm{200m}} , the scatter is smaller than 0.3\% Appendix C Fitting without two-halo term Fig. 13 shows the best-fit components and residuals without the two-halo term. There are significant residuals at r>r_{\mathrm{200m}} in both the inset and the residual plot. Figure 13: Same as Fig. 4 but without the two-halo term. Significant residuals at r>r_{\mathrm{200m}} exist.