Flux tubes confined in tokamaks are observed to erupt explosively in some plasma disruptions and edge localized modes. Similar eruptions occur in astrophysical plasmas, for example, in solar flares and magnetospheric substorms. A single unifying nonlinear evolution equation describing such behavior in both astrophysical and tokamak plasmas is derived. This theory predicts that flux tubes rise explosively, narrow, and twist to pass through overlying magnetic field lines without reconnection.