Quaternary ammonium amphoteric surfactants have been found in the past to be excellent lime soap dispersing agents and detergents but exhibit unusual solubility behavior. In search of a relationship between chemical structure and surface-active properties, compounds having the following general formula were synthesized: ZN+(CH3)2(CH2)n X-, where Z is C12H25-, C14H29-, C16H33-, or C15 H31CONHC3H6-, n is 2, 3, or 4 and X is SO 3-or OSO3-. Tertiary amines were converted to sulfobetaines (X = SO3-) by reaction with (a) butanesultone (n = 4), (b) propanesultone (n = 3), or (c) sodium 2-bromoethanesulfonate (n = 2). An alternate synthesis for the sulfoethylbetaines (n= 2) involved the reaction of the tertiary amines with ethylene bromide, followed by treatment with sodium sulfite. All sulfated quaternary ammonium compounds (X = OSO3-) were synthesized by treatment of the tertiary amine with the appropriate chloroalcohol, followed by sulfation with chlorosulfonic acid. The sulfated quaternary ammonium amphoterics are stable to acid hydrolysis, and alkaline stability improves with increasing bridge chain length. Sulfoethyl amphoterics are less water soluble than sulfobutyl, which in turn are less soluble than sulfopropyl derivatives of the same alkyl chain length. For the most part, the sulfated amphoterics are insoluble but are solubilized by soap. The lime soap dispersing properties improve as the carbon chain bridge length increases for both the sulfates and sulfonates. Formulations of tallow soap, amphoteric surfactant, and sodium silicates gave good detergency in most cases.