Use the photoelectric effect equation which shows conservation of energy between photons, electrons and the material that the electron is being freed from, hf = phi + KEmax . Defining terms: h is Planck's constant, phi is the work function of the material (i.e. the energy needed to excite an electron from its surface) and KEmax is the maximum possible Kinetic Energy of the emitted photoelectron. Thus, to find the threshold frequency, i.e. the minimum frequency of light to cause photoelectric effect and excite an electron, set KEmax to zero (i.e. the condition of electron only just escaping, with no KE). Hence threshold frequency, f0 = phi / h.