An erection usually lasts a few moments or for about half an hour. You should tell your doctor right away if you experience an erection lasting four hours or more, called priapism, or another that isn’t sexual.