A series of azobenzenes was studied using ab initio methods to determine the substituent effects on the isomerization pathways. Energy barriers were determined from three-dimensional potential energy surfaces of the ground and electronically excited states. In the ground state (S(0)), the inversion pathway was found to be preferred. Our results show that electron donating substituents increase the isomerization barrier along the inversion pathway, whereas electron withdrawing substituents decrease it. The inversion pathway of the first excited state (S(1)) showed trans --> cis barriers with no curve crossing between S(0) and S(1). In contrast, a conical intersection was found between the ground and first excited states along the rotation pathway for each of the azobenzenes studied. No barriers were found in this pathway, and we therefore postulate that after n --> pi (S(1) <-- S(0)) excitation, the rotation mechanism dominates. Upon pi --> pi (S(2) <-- S(0)) excitation, there may be sufficient energy to open an additional pathway (concerted-inversion) as proposed by Diau. Our potential energy surface explains the experimentally observed difference in trans-to-cis quantum yields between S(1) and S(2) excitations. The concerted inversion channel is not available to the remaining azobenzenes, and so they must employ the rotation pathway for both n --> pi and pi --> pi excitations.