Main

Water may have been delivered to Earth via cometary and/or asteroid impacts, tracing the pristine material left over from the protoplanetary disk where the Solar System originated1. However, it is unclear whether the water ice on these bodies primarily formed in, for example, the protoplanetary disk phase or is much older and originated from the parent molecular cloud2. This is because the bulk water reservoir is extremely difficult to detect and follow across the various phases of star and planet formation3,4,5,6,7,8. If the water molecules that formed in the cloud survive the cloud collapse into a protostar with a surrounding envelope and subsequently the formation of a disk, then protoplanetary disks are injected with a rich chemical icy inventory as many complex organic molecules (COMs) have formation pathways in the ice (for example, refs. 9,10,11). This potential ice inheritance would set the initial conditions for the chemical inventory of protoplanetary disks and is crucial to interpreting observations of COMs in disks. Intriguingly, if the water ice survives the journey from cloud to disk to comets and possibly (exo-)planets, then the water seen across all these phases and possibly on Earth predates the formation of the star and our Sun, respectively2.

A sensitive tracer to distinguish the inheritance and (partial) reset of water ice from pre-stellar cores to protoplanetary disks is the deuteration level of water. In case of reset, at least one of the chemical bonds between the atoms of the water molecule is destroyed. The deuteration is enhanced only above the D/H ratio of 2 × 10−5 in the interstellar medium (ISM)12 under specific conditions: below 25 K and where the density is sufficiently high for the freeze-out of atoms and molecules (few times 104 cm−3; for example, refs. 13,14); therefore, water ice formed at these low temperatures will be rich in deuterated water isotopologues. On the contrary, reprocessing of this pristine material at temperatures higher than 500 K can lower the abundance of deuterated water isotopologues by destroying the molecules themselves15,16,17. The high level of singly deuterated water (HDO) seen in protostellar envelopes, disks and comets has been presented as evidence of the inheritance of water (refs. 14,18,19, and references therein). However, the abundance of HDO can be as high as ~10−3 with respect to H2O even if the majority of the water reservoir is reprocessed17. Instead, doubly deuterated water (D2O) is the most sensitive tool to distinguish inheritance from reset because it cannot reform efficiently after reprocessing. Yet, observations targeting this isotopologue are rare across all star- and planet-formation phases because its abundance is expected to be low even if deuteration is enhanced because of the double deuteration and the low D/H of the ISM.

In particular, observations of doubly deuterated water are missing in the protoplanetary disk stage. The few existing observations probing water ice in disks cannot distinguish whether water is formed in the initial stages of star and planet formation or in situ due to a lack of detected isotopologues (for example, refs. 20,21). In addition, most protoplanetary disks are too cold to host a large and observable reservoir of gas-phase water. Tracers other than water isotopologues provide evidence for both inheritance and reprocessing depending on the disk and tracers observed. Inheritance is suggested by the detection of gas-phase methanol (CH3OH) in three disks that are too warm for substantial CO freeze-out22,23,24,25,26. As CH3OH can only form efficiently when CO is frozen-out, the CH3OH ice in those disks must have formed before the envelope collapsed to form a disk and survived this process10,27. However, the deuteration seen in CH3OH and other COMs in the same disk as the one analysed in this work, V883 Ori, is lower than expected based on a much younger protostellar envelope and a much older comet. This has been interpreted as an indication for some reprocessing of the ices in this disk28, yet possibly CH3OH is slightly more reprocessed than water due to its lower sublimation temperature29. We present observations in the V883 Ori disk of doubly deuterated water D2O, the most sensitive tracer to distinguish inheritance from reprocessing, to shed light on the origin of ices in disks, in particular the origin of water ice.

Results

We detect the p-D2O 11,0–10,1 transition at 316.7998 GHz in the disk surrounding the young, outbursting V883 Ori star with the Atacama Large Millimeter/submillimeter Array (ALMA). This star is located at 400 pc (1300 ly) in the Orion molecular cloud30 and has a source velocity of 4.3 km s−1 (refs. 31,32). Freshly sublimated ices are seen in this disk due to the heating from the outbursting star allowing for a unique look into the bulk water reservoir18,32,33. We compare our D2O detection with the previously observed HDO and H218O emission in this disk18.

The D2O line observed in this programme is blended with emission from neighbouring transitions of deuterated methanol (CH3OD) at 316.7916 GHz (32,1–3−1,3 A) and 316.7951 GHz (70,7–60,6 A) and 2 dimethyl ether (CH3OCH3) transitions at 316.7915 GHz (226,16–225,17 EE) and 316.7925 GHz (226,16–225,17 AA), respectively, similar to observations of younger class 0 objects34. To separate the D2O from these COMs, each pixel in the image cube is shifted by the projected Keplerian velocity associated with that pixel to remove the rotation component of the line velocity, before extracting the disk integrated spectrum in an elliptical region with a 0.4″ semi-major axis, presented in Fig. 1. The non-shifted version is presented in Extended Data Fig. 1. The D2O line is detected at a peak signal-to-noise ratio of 11 in the shifted spectrum, where the noise is estimated using the root mean square of 520 independent shifted spectra extracted from a 19" square in the cube without primary beam correction, excluding the inner 2.4″ square to avoid possible contamination with extended line emission. In addition, the channel maps show significant emission across multiple channels that can only be attributed to the D2O molecule and not to any neighbouring lines of COMs. An overview of the D2O, HDO and H218O line properties is presented in Table 1. The line flux is measured both from the channel maps presented in Extended Data Figs. 24 and from the shifted spectra presented in Extended Data Figs. 58. An overview of these line fluxes is presented in Table 2, where the re-imaged HDO and H218O emission originally presented in ref. 18 are included for consistency. The flux measured using the Keplerian masks is considered to be the fiducial flux (see ‘Flux measurements’ in Methods for details).

Fig. 1: Integrated spectrum of D2O in the V883 Ori disk.
figure 1

The spectrum is extracted from an elliptical region with a 0.4″ semi-major axis and a 0.4″ × cos(i) semi-minor axis centred on the continuum peak, with i the disk inclination. The pixels in the image cube were shifted by the projected Keplerian velocity at that location in the disk before extracting the spectrum to correct for the projected Keplerian rotation of the disk and decrease line blending of D2O, indicated with the red vertical line, with the neighbouring CH3OD and CH3OCH3 lines. The solid horizontal line indicates the 5σ noise level measured in off-source regions.

Table 1 Properties of the transitions analysed in this work
Table 2 Disk integrated line fluxes excluding emission from neighbouring complex organics

As the spatial distribution of all 3 water isotopologues (D2O, HDO and H218O) is similar (see Fig. 2 for the channel maps of D2O and HDO and ref. 18 for a comparison of HDO and H218O), we use the excitation temperature of 199 ± 42 K of the HDO molecule18, the only water isotopologue with 2 observed transitions, for all the water isotopologues. The effect of the uncertainty on this excitation temperature is discussed in Supplementary Information, section 3.1 as one of the HDO lines used for this measurement is heavily blended with an emission line of a COM, possibly affecting the derived excitation temperature. The line fluxes are measured using Keplerian masks that separate the water isotopologue emission from that of the neighbouring COMs in right ascension, declination and velocity. These line fluxes of the D2O, HDO and H218O transitions are then converted to column densities N of (4.2 ± 1.2) × 1013 cm−2, (49.5 ± 6.9) × 1014 cm−2 and (23.7 ± 5.7) × 1014 cm−2, assuming an emitting area equal to the elliptical region used to extract the spectrum and the flux integrated over the velocity channels where all 3 water isotopologues can be separated from other emission lines (see also ‘Flux measurements’ and ‘Column density estimates’ in Methods, Table 3 and Supplementary Information, section 3). As no strong isotope selective effects are expected between H2O and H218O, the H218O column density is scaled to a total H2O column density of (13.3 ± 3.2) × 1017 cm−2 using the typical 16O/18O ratio of 560 ± 25 in the ISM35, consistent with the lower limit derived in the HL Tau disk of N(H216O)/N(H218O) > 40 (ref. 36). These column densities translate to D2O/H2O = (3.2 ± 1.0) × 10−5 and (D2O/HDO)/(HDO/H2O) = 2.3 ± 1.0.

Fig. 2: Channel maps of the D2O emission compared with that of HDO.
figure 2

The velocity of each channel is indicated by the white text in the top left corner of each panel. The grey line indicates the emission above 3σ attributed to the HDO line at 225 GHz. The white contours indicate the 3σ and 4σ level for the emission of D2O and the neighbouring COMs.

Table 3 Column densities and column density ratios of water isotopologues

Discussion and conclusion

Water isotopologue ratios along the water trail

Both the D2O/H2O and the (D2O/HDO)/(HDO/H2O) ratios in the V883 Ori disk are similar to the observed values of D2O/H2O = (2–9) × 10−5 and (D2O/HDO)/(HDO/H2O) = 2.2–7.1 in younger class 0 objects34,37,38, which are expected to trace pristine ices. In addition, the D2O/H2O ratio in the V883 Ori disk is similar to that of (1.9 ± 1.0) × 10−5 in the comet 67P (refs. 39,40 and Fig. 3). This strongly indicates that the ice in the V883 Ori disk is inherited from the cold molecular cloud that collapsed to form a class 0 protostar with protostellar envelope and subsequently an embedded disk, and potentially connects to the cometary phase.

Fig. 3: The D2O/H2O ratio across different stages of star and planet formation.
figure 3

The measurements in the V883 Ori disk are presented in black and those in the class 0 objects NGC 1333 IRAS 2A, B335, L483 and the 67P comet in grey34,37,38,39,40. The latter are computed as D2O/HDO × HDO/H2O. The error bars represent the 1σ uncertainty (s.d.) on the measured column density ratio in each source. The coloured background and the histograms on the side, each normalized to the peak number of fluid parcels, indicate the expected water isotopologue ratios for inheritance where 10% of the H2O ice is destroyed (blue) or reset where 70% of the H2O is expected to be destroyed through photodissociation and photodesorption in a model of a collapsing core17 (red). The red histogram is smoothed using a Savitzky–Golay filter with a window of 10 and an order of 3.

The D2O abundance in the V883 Ori disk is not expected to be greatly altered by the outburst as modelling of HDO and H2O in a one-dimensional evolving disk around an outbursting star has shown that the outburst affects only the water deuteration in the inner 1–3 au (refs. 15). The emission of the water isotopologues in the V883 Ori disk is only seen much farther out at radii larger than 40 au, as optically thick dust hides the line emission inside that radius18,31.

The coloured background in Fig. 3 indicates the range of D2O/H2O ratios consistent with inheritance (blue) and reset (red) based on chemical modelling of gas and ice in a collapsing core by ref. 17. These simulations follow gas parcels as the rotating core collapses from the inside out and forms a disk and envelope. These stream lines are post processed with a dedicated chemical network modelling the deuterium chemistry in the gas, a chemically active surface layer of ice interacting with the gas and a chemically inert bulk ice phase. As these stream lines trace a range in physical conditions, the water isotopologue ratios also show a range of possible values for either inheritance (all stream lines where 10% of the water ice is destroyed) or reset (all stream lines where 70% of the water ice is destroyed). The V883 Ori datapoint coincides with the peak of the model prediction histogram for inheritance well within 1σ, further supporting that the material in this disk is inherited.

The observed (D2O/HDO)/(HDO/H2O) ratio is consistent between class 0 objects and the V883 Ori disk and are all a factor of ~40–140 higher than the most likely value of ~5 × 10−2 in the case the material is reset (Extended Data Fig. 9). The (D2O/HDO)/(HDO/H2O) ratio predicted in ref. 17 for inheritance is 10, which is a factor up to ~5 higher than that observed. Nonetheless, in contrast to the values for reset, the initial (D2O/HDO)/(HDO/H2O) can vary between ~0.8 and ~19 due to variations in the initial conditions of the models16 (see Supplementary Information for details). The similarity in the observed ratio between the V883 Ori disk and the class 0 objects strongly suggests that material is inherited.

As all 3 analysed transitions lie at different frequencies of 316.7998 GHz (D2O), 225.8967 GHz (HDO) and 203.4075 GHz (H218O), frequency-dependent radiative transfer effects could affect the observed D2O/H2O and the (D2O/HDO)/(HDO/H2O) ratios. In particular, the dust inside 40 au is optically thick31,41 absorbing the emission of COMs and other molecules whose emission partly originates at altitudes comparable to the optically thick layer of the continuum emission18,28,33,42,43. As the continuum optical depth increases with frequency, more D2O emission could be hidden than HDO and H218O due to the higher frequency of the D2O line. Therefore, if optically thick dust is affecting the lines differentially, the measured ratios will be driven further into the regime consistent with inheritance. Other systematics that could affect the measured D2O/H2O and (D2O/HDO)/(HDO/H2O) ratios such as a lower excitation temperature are discussed in Supplementary Information, section 3.

Deuteration of COMs

The high abundance of D2O with respect to H2O in the V883 Ori disk demonstrates that water in this disk is probably inherited. This is further supported by the high gas-phase HDO/H2O ratio seen across protostellar envelopes, disks and comets (ref. 18, and references therein) and the high HDO/H2O ratio seen in the ice in a single low-mass protostar and two massive protostars19,44. However, the abundance of CH2DOH, CH3CDO, CH3OCDO and CH2DOCHO compared with their main isotopologues is measured to be lower in the V883 Ori disk than in the younger hot corino IRAS 16296 B and the comet 67P. This lower level of deuteration in the V883 Ori disk has been interpreted as an indication for some reprocessing of COMs28,45.

COMs are traditionally thought to form in CO-rich ice but there are indications in the V883 Ori disk that COMs possibly partially formed in a water-rich ice matrix (H2O)45. The contribution from COMs formed in the CO-rich ice matrix is expected to have a higher D/H ratio as deuteration is efficient at the temperature where CO freezes-out. The initial deuteration levels of these COMs probably follows the D2O/HDO ratio as D2O and HDO are formed at the same time. The levels of deuteration seen in a CH2DOH/CH3OH ratio of 1.97 × 10−2 (refs. 33,45) and the low upper limits on the deuteration in CH2DOH, CH3CDO, CH3OCDO and CH2DOCHO of (5.7–20) × 10−3 (ref. 28) are consistent with the D2O/HDO ratio of (8.5 ± 2.8) × 10−3 in this disk. Yet, chemical reactions where H and D are exchanged or abstracted can alter the D/H ratio in COMs, complicating the analysis (for example, ref. 46). Even though COMs are likely to at least partially form in the CO-rich ice matrix, the contribution of COMs formed within the water-ice matrix will have a low deuteration level due to the higher gas temperatures at the time of formation making deuteration inefficient.

Summary

The inheritance of water from the ice on dust grains in the cloud before stars are born to the disk and subsequently to comets connects the major steps in the formation of planets as comets probably form from the same reservoir of material as the planets. Our result demonstrates that pristine water that formed at the earliest phases of star and planet formation is available in protoplanetary disks, a phase where potential hints of embedded planets are frequently seen in the form of, for example, dust substructures (for example, ref. 47). Even though the journey of water from the disk to Earth is still debated and the deuteration in Earth’s oceans is lower than the HDO/H2O ratio in the V883 Ori disk1,18, the deuteration of Earth’s oceans is enhanced compared with the ISM by an order of magnitude12,48,49. In addition, the D2O/H2O ratio is similar across class 0 objects, the V883 Ori disk and a comet. Together with the enhanced deuteration seen in HDO across all these four phases, this suggests that the trail of inherited water does not stop at the cometary phase but potentially continues to the water present on exoplanets formed in water-ice-rich protoplanetary disks.

Methods

Self-calibration

We observed the V883 Ori disk in ALMA band 7 for 2.4 hours on-source distributed over 3 execution blocks (EBs; Supplementary Table 1; 2023.1.00588.S; principal investigator M.L.). These data targeted the D2O 11,0–10,1 transition at 316.7998 GHz at a spectral resolution of 61 kHz (58 m s−1) and a total bandwidth of 117.2 MHz. A continuum spectral window covering 1.875 GHz of bandwidth at a spectral resolution of 1.1 km s−1 was centred at 315 GHz. In addition, 6 spectral windows centred at the 13CN transition with quantum numbers N = 3–2, J = 5/2–3/2, F1 = 2–1, F = 3–2 (325.943 GHz), N2O 130,0–120,0 (326.556 GHz), N2O 13−1,2–121,2 (326.685 GHz), CH3OCH3 181,18–170,17 EE (326.931 GHz), NO2 221,21–220, 22, J = 45/2–45/2, F = 43/2–43/2 (328.097 GHz), and NO2 221,21–220,22, J = 45/2–45/2, F = 47/2–47/2 (328.131 GHz) were included with a spectral resolution of 122 kHz (~130 m s−1) and a bandwidth of 58.6 MHz. Finally, the CH3OCH 103,8–92,7 EE transition at 328.857 GHz was targeted at the same spectral resolution but a bandwidth of 117.2 MHz.

The data were self-calibrated using CASA version 6.5.450 following the analysis used in the exoALMA large program outlined in ref. 51, with several routines by refs. 52,53. A pseudo continuum measurement set was created for each EB after carefully flagging all spectral regions exhibiting line emission, and then averaging all the data in individual channels for each spectral window. As this is a very line-rich disk, the total continuum bandwidth used for the self-calibration was reduced to 180 MHz. Before aligning and then combining the three EBs, one round of phase self-calibration over a solution interval equal to the length of a single EB (1 hour and 19 minutes) was performed combining all scans and both polarizations. A CLEAN model was used for the self-calibration, as constructed over an elliptical mask of 0.6″ in semi-major axis, and a position angle and semi-minor axis computed from the position angle and inclination of the V883 disk of 32° and 38.3°, respectively31. We employed Briggs weighting with robust = 0.5. The model was created by cleaning the emission in all line-free channels down to a conservative threshold of 6σ. The peak signal-to-noise ratio in the images of the individual EBs improved between 76% and 160%. The continuum observed in the third EB had the highest signal-to-noise ratio of all EBs and therefore was used as a reference for the alignment where the phase angle and the amplitude differences are minimized between the first EBs and the third EB51.

After combining all execution blocks, 7 rounds of phase-only self-calibration were performed with solution intervals with the length of a single EB, 360, 120, 60, 20, 10 and 6 seconds. The imaging followed the same mask and weighting as for the individual EBs before concatenation. In the first round of phase self-calibration, separate solutions were found for both polarizations, whereas in all subsequent rounds, a single solution was obtained for both polarizations. In addition, all scans were combined during the first three rounds as the solution interval exceeded the scan length.

Comparing the amplitude of the continuum visibilities between the three execution blocks showed that the data taken on 24 December 2023 had an 8.6% higher amplitude across all baselines up to 600 kλ, with λ the wavelength of the observations, where the signal-to-noise ratio drops compared with the execution block with the highest signal-to-noise ratio. Therefore, we rescaled the flux before self-calibration in this execution block and concatenated this to the data of the other two EBs before self-calibration. Subsequently, these concatenated data were self-calibrated with seven rounds of phase-only self-calibration and a single round of phase and amplitude self-calibration with separate solutions for both polarizations and a solution interval of the length of a single EB. The model for the amplitude self-calibration was created by cleaning the line-free channels down to a 1σ threshold to capture as much emission as possible in the model. Solutions deviating by more than ~20% in amplitude were flagged. The phase self-calibration improved the peak signal-to-noise ratio of the data by a factor of 186%, from a peak signal-to-noise ratio of 495 to one of 1,457. The amplitude and phase self-calibration improved the peak signal-to-noise ratio by 3% (see Supplementary Fig. 1 for the final continuum image). The peak continuum intensity increases by 15% after phase-only self-calibration due to the improved phase coherence after phase-only self-calibration. The peak continuum intensity changes by less than 0.5% after phase and amplitude self-calibration. The solutions were then applied to the full dataset, following the same logical order as for the pseudo continuum measurement set.

Continuum subtraction

As many lines of COMs are detected in this dataset, too few line-free channels were available to subtract the continuum emission in the uv-plane using the standard CASA task uvcontsub. Instead, the continuum in the D2O spectral window was subtracted in each EB separately. First, a mtmfs image up to and including first order (nterms = 2) was created using the line-free channels in the D2O spectral window. The resulting model for the continuum emission was added to the measurement set using ft. This model was then used to subtract the continuum using the CASA task uvsub. The resulting MS tables for all three EBs were then combined to make the final continuum-subtracted dataset for D2O.

Imaging

The D2O line itself was imaged using the CASA task tclean with Briggs weighting and a robust parameter of 0, which provides the best balance between spatial resolution and noise, resulting in a 0.24″ × 0.19″ (89°) beam. The spectrum around the D2O emission is presented in Extended Data Fig. 1 and the D2O channel maps are presented in Fig. 2. The relatively small beam allows for better deblending of the lines while still detecting the line. The image is cleaned down to 1σ to capture all the flux in the model and make the final measurement independent of any non-Gaussian features in the beam at the cost of potential imaging artefacts53,54. The channel spacing for the final image is 400 m s−1 to match that of the HDO and H218O data. The resulting cubes are used to produce channel maps and measure the flux using a Keplerian mask. Only when the data cubes are shifted with the projected Keplerian velocity associated with each pixel, the native spectral resolution of the data of 58 m s−1, 162 m s−1 and 180 m s−1 for D2O, HDO and H218O, respectively, is used to minimize artefacts due to the finite spectral resolution of the data.

To accurately measure the (D2O/HDO)/(HDO/H2O) and D2O/H2O ratio in this disk, we re-imaged the HDO and H218O data presented in ref. 18 (2021.1.00186.S; principal investigator J.J.T.). In this work, these data are cleaned down to 1σ, similar to the D2O line, and allow for a uniform analysis of the line fluxes and mitigate any effects of the non-Gaussian beam shape on the measured line flux (for example, ref. 53). The resulting beam sizes are 0.13″ × 0.11″ (−72°) and 0.10″ × 0.08″ (−78°) for H218O and HDO when cleaned with a robust parameter of 1.0 and 2.0, respectively, to provide the best balance between the signal-to-noise ratio and a small beam to separate the lines from neighbouring COMs. The resulting channel maps for HDO and H218O are presented in Extended Data Figs. 3 and 4, respectively.

Flux measurements

The transitions of all three water isotopologues discussed in this paper are blended with lines from neighbouring COMs. To separate these lines and accurately measure the line flux, two methods are employed: Keplerian masking in the channel maps and spectral shifting of the spectrum. In the former case, the lines are separated in the image plane by computing the region in right ascension and declination where a molecule is expected to emit based on the Keplerian rotation of the disk and its orientation on the sky. As this region shifts for each velocity channel, lines of neighbouring COMs can be separated from the water isotopologue emission. The Keplerian masks are constructed using the package by ref. 55 following ref. 18 using a distance of 400 pc (ref. 30), a stellar mass of 1.3 M, a disk inclination of 38.3° and a position angle of 32° (ref. 31) and an emitting region extending from 40 au to 120 au tracing a height to radius ratio of z/r = 0.4. The line width is assumed to follow \(350\,{\rm{m}}\,{{\rm{s}}}^{-1}\times \sqrt{40\,{\rm{au}}/r}\) and the mask is shifted by 4.3 km s−1 to match the systemic velocity of V883 Ori31,32. These parameters are identical between all three analysed water isotopologues. Finally, the mask is convolved with a Gaussian 0.5 (D2O), 1.25 (HDO) and 0.75 (H218O) times larger than the beam of the respective observations. This parameter is chosen after visual inspection of the data. The factor varies slightly from line to line to match the spatial extent of the emission observed in the channel maps and to match the spatial resolution of the resulting masks to have an ~0.1−0.12″ major axis and a 0.08−0.1″ minor axis across all lines. The effect of neighbouring COMs is investigated using an identical mask but then shifted to the frequency of those lines.

In general the emission of the D2O, HDO 225 GHz and the H218O transition can be well separated in most channels using this method. To measure the disk integrated flux, only the channels between 1.2 km s−1 and 6.4 km s−1 are used as only in these channels the water emission can be separated from the COMs for all three isotopologues. The uncertainties on the disk integrated line fluxes are estimated as the root mean square of the flux measured in masks shifted to 8 different positions 1.4″ from the original location and to 5 different velocities resulting in 40 unique, non-overlapping locations. The HDO 241 GHz line, however, is too severely blended and is therefore not considered in this analysis.

The second method to deblend the lines is through spectral shifting. Similar to the Keplerian masking, this method utilizes the Keplerian rotation of the disk. Each pixel is shifted to correct for the projected Keplerian velocity expected at this location in the disk. The lines in the spectrum extracted from such a shifted cube are much narrower and single peaked than the double-peaked line profiles in the non-shifted cube. As the lines are only seen over a small radial range, the emission is assumed to be originating from the disk midplane.

The resulting line profiles are not necessarily Gaussian. Therefore, the line profile of each COM is reconstructed from the data directly (Extended Data Figs. 57). The non-blended side of COM emission line is mirrored in the line centre, creating a symmetric line profile that is then subtracted from the shifted spectrum. This procedure is repeated for all bright lines of COMs around the water lines. The D2O and H218O lines were still blended by some remaining COM emission. Therefore, a spectral template for the D2O and H218O themselves were created using the clean side of the line after the COM emission was subtracted (see the cyan line in the bottom panel of Extended Data Figs. 5 and 7). For H218O, the contribution of the contaminating shoulder is negligible at 1σ, whereas for D2O, the CH3OD contributed 8 mJy km s−1 to the total D2O flux. The region used to create the line profile of the COMs is indicated with the blue shaded region and that used to measure the water isotopologue line flux is indicated in red.

Extended Data Fig. 8 presents a spectrum of the H218O line but then extracted from a somewhat smaller region of 0.35″ × 0.27″ (semi-axes). The noise is estimated from 720 independent spectra covering a 19" region in the image plane while excluding the central 2.1″ square in the non-primary beam-corrected cube. As less noise is added to this spectrum than in Extended Data Fig. 7, it clearly shows an emission peak at the expected frequency for the H218O line, showing that this line is detected in this dataset. This spectrum is not used for any of calculations to avoid a bias due to the smaller region used to extract this spectrum compared with that of the D2O and HDO lines.

An overview of the measured fluxes is presented in Table 2, where for the D2O and H218O emission, we report the flux measured by the spectral template centred on those lines to account for the remaining shoulder of COM emission in the spectrum. The reported uncertainties on the line fluxes do include the statistical uncertainty but not the 5% absolute flux calibration uncertainty for ALMA Band 5 and Band 6 (HDO and H218O) and 10% for ALMA Band 7 (D2O). The absolute flux calibration uncertainty is included for all line ratios together with the uncertainty on the 16O/18O ratio of 560 ± 25 in the ISM35. The uncertainty on the 16O/18O ratio in the ISM is negligible for the resulting H2O column density and water isotopologue ratios.

The two methods to measure the line fluxes are consistent within ≤3σ for all three water isotopologues. This difference stems from the limited velocity range used for the Keplerian masking method. In this case, only the channels between 1.2 km s−1 and 6.4 km s−1 are used as all three water isotopologues can be separated from the neighbouring COMs in these channels, whereas emission in some isotopologues is seen up to 0.8 km s−1 and 8.4 km s−1. As some flux from the inner disk region may be lost due to the spectral shifting of the data as a result of beam smearing and the main goal of this work is to obtain ratios of water isotopologues, the fluxes measured using the Keplerian masks are used for the final analysis presented in the main text.

Column density estimates

To compute the ratios of water isotopologues, their line fluxes need to be converted to column densities using the properties of the emission lines listed in Table 1. In this work, optically thin emission and local thermodynamical equilibrium are assumed for this conversion. These assumptions are further discussed in Supplementary Information, sections 3.2 and 3.4, respectively. The column density of the upper energy level can be determined without any knowledge on the rotational temperature56,57:

$${N}_{{\mathrm{u}}}=\frac{4\uppi {F}_{\nu }\Delta V}{{A}_{{\mathrm{ul}}}\varOmega hc},$$
(1)

with ∫FνdV ≈ FνΔV the flux Fν integrated over velocity V, Aul the Einstein-A coefficient of the transition, Ω the emitting region in steradian, h the Planck constant and c the speed of light. The water snowline, the midplane region where water sublimates, is possibly at 40 au but most likely around 75–120 au based on gas-phase measurements18,31,32,58,59. In addition, gas-phase water traced by HDO and H218O is seen out to 160 au (0.4″)18 and as the spatial distribution of the D2O, HDO and H218O water isotopologues is similar (Fig. 2 and Extended Data Figs. 24), an elliptical emitting region with that radius is used. The minor axis of this elliptical region is set to 0.4″ × cos(i) = 0.31″, with i the disk inclination to trace a circular region with a radius of 160 au in the disk frame.

The column density of the upper energy level is then converted to the total column density using the partition function Q at the rotational temperature Trot and the degeneracy gu and the upper energy level Eu of the line:

$${N}_{{\rm{tot}}}=\frac{{N}_{{\mathrm{u}}}Q({T}_{{\rm{rot}}})}{{g}_{{\mathrm{u}}}}\exp \left(\frac{{E}_{{\mathrm{u}}}}{{k}_{{\rm{B}}}{T}_{{\rm{rot}}}}\right),$$
(2)

with kB the Boltzmann constant. If multiple lines of the same molecule are observed, this equation can be solved for each line to find the excitation temperature of the molecule. In this work, the excitation temperature derived by ref. 18 from two HDO transitions with different upper energy levels is used for all analysed lines as these water isotopologues emit from the same disk region.

For the D2O and H218O molecules that contain two deuterium or two hydrogen atoms, the molecules can be either in an ortho or in a para state. The transitions used in this work are both para states. The column density of p-D2O and p-H218O are converted to the total column density using a thermalized ortho-to-para ratio of 2 and 3, respectively60,61. A summary of the derived column densities are presented in Table 3.