In chemistry, a zwitterion, also called an inner salt or dipolar ion is a molecule that contains an equal number of positively and negatively charged functional groups. (1,2-dipolar compounds, such as ylides, are sometimes excluded from the definition.)