Erections typically last a few minutes or, in some cases, up to about a half hour. If you have an erection that lasts more than a four hours (priapism) or one that's unrelated to sex, talk to your doctor right away or seek emergency care.