Primarily, an ant sting has Formic acid. Methanoic acid, often known as formic acid, is the acid produced by ants. HCOOH is the chemical formula for formic acid. It's an anti-injects acid that makes you feel like you're burning. A mild base, such as baking soda or soap, should be used to negate the effect.