Solid-state and solution pH-dependent NEXAFS studies allow direct observation of the electronic state of para-aminobenzoic acid (PABA) as a function of its chemical environment, revealing the chemical state and bonding of the chemical species. Variations in the ionization potential (IP) and 1s→π* resonances unequivocally identify the chemical species (neutral, cationic, or anionic) present and the varying local environment. Shifts in σ* shape resonances relative to the IP in the NEXAFS spectra vary with C-N bond length, and the important effect of minor alterations in bond length is confirmed with nitrogen FEFF calculations, leading to the possibility of bond length determination in solution.