You and your erection have been through a lot together. Whether it’s hiding it behind a book when called to the front of the class, or trying to get it to simmer down when you see your partner naked for the first time, you’ve been there for each other. Which is why it can be downright scary to think that one day your erection isn’t going to be as strong as it used to be.

Yes, as men grow older, their erection will begin to falter. While you used to deal with erections day in and day out, you’ll find it increasingly difficult to get it up as you age.

But when can you expect this dreaded erection killer to strike? In your 40’s? In your 50’s? You know it’s coming, but when?

Extensive research has been done on the median age for erectile dysfunction, and the general consensus seems to be that erectile health and sexual function begin to falter after age 50.

But that’s not to say that your erection is going to kick the bucket as soon as you hit 51. Research has found that most age-associated erectile dysfunction is due to underlying physical factors. Whether it’s a lifetime of smoking, eating poorly, avoiding physical exercise, or just generally living poorly, it can all lead to ED.

If you’re looking to avoid ED for quite some time, it’s time to make some positive lifestyle changes. Eat better, get active, quit smoking, drink in moderation; just live a good, healthy life, and you shouldn’t have to worry about erectile dysfunction for many years.