Abstract.Observations with the Short Wavelength Spectrometer (SWS) onboard the Infrared Space Observatory (ISO) are used to determine the D/H ratio in Jupiter's and Saturn's atmospheres. The D/H ratio is measured independently in hydrogen (i.e. from the HD/H2 ratio) and methane (from CH3D/CH4). Observations of the HD R(2) and R(3) rotational lines at 37.7 and 28.5 µm, of the H2 S(0) and S(1) quadrupolar lines at 17.1 and 28.2 µm, of the methane ν4 band at 7.7 µm, and of the CH3D ν6 band at 8.6 µm are analyzed jointly, allowing a retrieval of thermal profiles and molecular abundances.