How long does the pain or agitation last after an anxiety attack?

Depends. While actual panic attack generally lasts fro 20 to 40 minuts for most, the residual affects last quite a bit longer. Although this tends to vary from person to person, in general, residual symptoms diminish and resolve from 2 to 6 hours, depending on the circumstances.