Occasional issues with maintaining an erection during sex are relatively common and generally not something to be concerned about. However, if you are experiencing erectile dysfunction (ED) routinely, consider seeing a doctor. Besides oral medications or wearable devices such as Eddie by Giddy®, you might find that switching some of your behaviors and making healthier lifestyle choices can have a big impact in the bedroom.

And remember: If you're suffering from ED, you are not alone, as the condition impacts about 30 million men in the United States, according to the Urology Care Foundation. While a number of physical and psychological factors contribute to ED, lifestyle ones such as diet, exercise, smoking and alcohol consumption can also add to erection woes. Here are five lifestyle factors that could be contributing to your ED:

Poor diet

Your ability to get and stay hard is based on the quality of the blood flow to and within the penis. The same poor diet