The epidermal growth factor receptor (EGFR) is a pivotal target in cancer therapy due to its significance within the tyrosine kinase family. EGFR inhibitors like AG-1478 and PD153035, featuring a 4-anilinoquinazoline moiety, have garnered global attention for their potent therapeutic activities. While pre-clinical studies have highlighted the significant impact of halogen substitution at the C3'-anilino position on drug potency, the underlying mechanism remains unclear. This study investigates the influence of halogen substitution (X = H, F, Cl, Br, I) on the structure, properties, and spectroscopy of halogen-substituted 4-anilinoquinazoline tyrosine kinase inhibitors (TKIs) using time-dependent density functional methods (TD-DFT) with the B3LYP functional. Our calculations revealed that halogen substitution did not induce significant changes in the three-dimensional conformation of the TKIs but led to noticeable alterations in electronic properties, such as dipole moment and spatial extent, impacting interactions at the EGFR binding site. The UV-visible spectra show that more potent TKI-X compounds typically have shorter wavelengths, with bromine's peak wavelength at 326.71 nm and hydrogen, with the lowest IC50 nM, shifting its lambda max to 333.17 nm, indicating a correlation between potency and spectral characteristics. Further analysis of the four lowest-lying conformers of each TKI-X, along with their crystal structures from the EGFR database, confirms that the most potent conformer is often not the global minimum structure but one of the low-lying conformers. The more potent TKI-Cl and TKI-Br exhibit larger deviations (RMSD > 0.65 Å) from their global minimum structures compared to other TKI-X (RMSD < 0.15 Å), indicating that potency is associated with greater flexibility. Dipole moments of TKI-X correlate with drug potency (ln(IC50 nM)), with TKI-Cl and TKI-Br showing significantly higher dipole moments (>8.0 Debye) in both their global minimum and crystal structures. Additionally, optical spectral shifts correlate with potency, as TKI-Cl and TKI-Br exhibit blue shifts from their global minimum structures, in contrast to other TKI-X. This suggests that optical reporting can effectively probe drug potency and conformation changes.