The effects of the hydrostatic pressure and temperature on the electronic and the linear and nonlinear optical properties (i.e., absorption coefficients and refractive indices) are investigated in a spherical quantum dot in the presence of the electric field. The energy levels and wave functions are calculated using the variational method within the effective-mass approximation. The results show that these external factors have a significant effect not only on the binding energy of the donor impurity but also on the optical characteristics of the system. Moreover, it is found that the total absorption coefficient is strongly affected by the existence of impurity, the incident optical intensity, and relaxation time. Published by Elsevier B.V.