Here’s a reason to put your sneakers on: exercise can improve your sex life. It’s not necessarily about changing how your body looks, or being strong enough to swing from the chandelier. Regular movement improves smaller, less visible bodily functions that increase your desire and capacity for sex—like the release of arousal-promoting hormones and enhanced circulation in the nether regions. Perhaps just as critically, it gets your mind in the right frame to do it.

While the links between physical activity and having great sex might seem obvious, they are not as linear as you might expect. Here’s what you need to know.