The absorption wavelengths of the two forms of Rhodamine B, cation and zwitterion, were investigated by Time-Dependent Density Functional Theory (TD-DFT) in combination with polarizable continuum model. The redshift in absorption spectrum of cation relative to zwitterion is attributed to strong inductive e®ect of carboxyphenyl group and weak electrostatic repulsion between xanthene ring and carboxyphenyl group. The absorption wavelengths of cation and zwitterion decrease linearly with increase of solvent polarity in normal alcohols since in high polar solvents electrostatic repulsion between xanthene ring and carboxyphenyl group increases and a®ects xanthene conjugation system. The absorption wavelengths in water and formamide show a deviation from linear relationship because large dielectric constant hinders electrostatic repulsion between carboxyphenyl group and xanthene system. The hydrogen bonds a®ect absorption wavelengths because hydrogen bonds could a®ect conjugation between amino N atoms and xanthene system or electrostatic repulsion between carboxyphenyl group and xanthene ring. These results indicate electrostatic repulsion between carboxyphenyl group and xanthene ring plays a big role in determining absorption spectrum of Rhodamine B.