No, ECT, commonly referred to as “shock therapy”, uses electricity to produce seizure-like activity in the brain while the patient is under anesthesia and has side effects that can be substantial. They both relieve depression, however, TMS is a treatment that is performed while the patient is awake and alert, no anesthesia or sedation is needed. TMS uses magnetic energy, rather than electricity that is applied to the scalp.