The Schiff base compound 2-[(4-propylphenylimino)methyl]-4-nitrophenol has been synthesized and characterized by IR, UV-Vis, and X-ray single-crystal determination. The molecular geometry from X-ray determination of the title compound in the ground state has been compared using the Hartree-Fock (HF) and density functional theory (DFT) with the 6-31G(d) basis set. The calculated results show that the DFT and HF can well reproduce the structure of the title compound. The energetic behaviour of the title compound in solvent media was examined using the B3LYP method with the 6-31G(d) basis set by applying the Onsager and the polarizable continuum model (PCM). The results obtained with these methods reveal that the PCM method provides a more stable structure than Onsager's method. Using the TD-DFT method, electronic absorption spectra of the title compound have been predicted and good agreement with the TD-DFT method and the experimental determination was found. The predicted nonlinear optical properties of the title compound are much greater than those of urea. In addition, DFT calculations of the molecular electrostatic potential and NBO analysis of the title compound were carried out at the B3LYP/6-31G(d) level of theory.