Feasible interactions between metallic single-walled carbon nanotubes (CNT) and ethanol gases were carried out using theory of first principles based on DFT. Also, the vdW correction and spin polarized were included in this account. The equilibrium position, adsorption energy, charge transfer and electronic band structure of ethanol rearranged inside and outside pristine also with P-doped nanotubes were calculated to estimate the responses of P-CNT. It was found that the ethanol preferred to absorb inside than outside the tube and revealed that ethanol fit suitably inside CNT at diameter of 8.19 Å. Conversely, larger size of nanotubes diameter than 13.63 Å, the ethanol equivalently forms both inside and outside carbon nanotubes. The investigations on electronic properties have been shown that ethanol performed as electron-withdrawing group because of hydroxyl group attached with ethyl group. Then, the electron in CNT moves toward the adsorbate thereby enhancing its conductivity. Furthermore, doping an impurity, Phosphorus, on the surface improved the absorption and the characteristic of all intermolecular interactions.