How is esophageal spasm treated? With treatment, your spasms, pain, and trouble swallowing may improve. Ask your healthcare provider for more information about these and other treatments for esophageal spasms: Medicine: Pain medicine: This medicine helps take away or decrease pain caused by the spasms.

