In this paper, a symmetry-adapted method is applied to examine the influence of deformation and defects on the electronic structure and band structure in carbon nanotubes. First, the symmetry-adapted approach is used to develop the analog of Bloch waves. Building on this, the technique of perfectly matched layers is applied to develop a method to truncate the computational domain of electronic structure calculations without spurious size effects. This provides an efficient and accurate numerical approach to compute the electronic structure and electromechanics of defects in nanotubes. The computational method is applied to study the effect of twist, stretch, and bending, with and without various types of defects, on the band structure of nanotubes. Specifically, the effect of stretch and twist on band structure in defect-free conducting and semiconducting nanotubes is examined, and the interaction with vacancy defects is elucidated. Next, the effect of localized bending or kinking on the electronic structure is studied. Finally, the paper examines the effect of 5–8–5 Stone–Wales defects. In all of these settings, the perfectly matched layer method enables the calculation of localized non-propagating defect modes with energies in the bandgap of the defect-free nanotube.