The photoelectric effect is a phenomenon in physics . Because of the effect , electrons are emitted from matter after energy from electromagnetic radiation like x-rays or visible light is absorbed . In the photoelectric effect , electrons are emitted from matter ( metals and non-metallic solids , liquids or gases ) as a consequence of their absorption of energy from electromagnetic radiation of very short wavelength , such as visible or ultraviolet light .