Photochemical reactions require a light source that emits wavelengths corresponding to an electronic transition in the reactant. In the early experiments (and in everyday life), sunlight was the light source, although it is polychromatic. Mercury-vapor lamps are more common in the laboratory. Low-pressure mercury-vapor lamps mainly emit at 254 nm. For polychromatic sources, wavelength ranges can be selected using filters. Alternatively, laser beams are usually monochromatic (although two or more wavelengths can be obtained using nonlinear optics), and LEDs have a relatively narrow band that can be efficiently used, as well as Rayonet lamps, to get approximately monochromatic beams.
The emitted light must reach the targeted functional group without being blocked by the reactor, medium, or other functional groups present. For many applications, quartz is used for the reactors as well as to contain the lamp. Pyrex absorbs at wavelengths shorter than 275 nm. The solvent is an important experimental parameter. Solvents are potential reactants, and for this reason, chlorinated solvents are avoided because the C–Cl bond can lead to chlorination of the substrate. Strongly-absorbing solvents prevent photons from reaching the substrate. Hydrocarbon solvents absorb only at short wavelengths and are thus preferred for photochemical experiments requiring high-energy photons. Solvents containing unsaturation absorb at longer wavelengths and can usefully filter out short wavelengths. For example, cyclohexane and acetone "cut off" (absorb strongly) at wavelengths shorter than 215 and 330 nm, respectively.
Typically, the wavelength employed to induce a photochemical process is selected based on the absorption spectrum of the reactive species, most often the absorption maximum. Over the last years, however, it has been demonstrated that, in the majority of bond-forming reactions, the absorption spectrum does not allow selecting the optimum wavelength to achieve the highest reaction yield based on absorptivity. This fundamental mismatch between absorptivity and reactivity has been elucidated with so-called photochemical action plots.