Summer’s in full swing, and even though there are only a few weeks of the season left, the temperatures show no signs of cooling down for longer than a day or two. If you’re still dealing with long stretches of unbearably hot days, your exercise regimen may have been put on hold. After all, if you’re planning on working out in the middle of a heatwave, you may be wondering, are you in the clear or should you think twice?

As it turns out, you absolutely can exercise in a heatwave.

However, you have to be really careful and in tune with your body. Put that personal best on hold. It can definitely wait until the heat breaks. Plan your workout around the middle of the afternoon when the sun is doing its worst. Nighttime workouts are totally okay. Exercise indoors if possible. And of course, know your body. If you don’t feel well, it’s time to stop for the day.

Don’t wear black if you can help it.

Feel free to be ultra picky about your workout outfit. Break out the moisture-wicking sports bras, shirts, shorts, and leggings. Embrace breathable fabrics. Avoid skintight garments.

Make sure you have plenty of fluids.

While a bottle of water or two is a good start, experts recommend re-hydrating in other ways. You need to restore your electrolyte balance, so make sure to shop for a beverage that has electrolytes before your workout so your body can recover properly.

Whether you’re training for a marathon or another sporting event, you’re trying to lose weight and hate skipping workouts, or you just enjoy physical activity, don’t let a heatwave cramp your fitness style. As long as you’re careful, listen to your body and stay hydrated, there’s no reason to stop going to the gym. And hey, if it’s ever too hot, don’t forget that you can always work your muscles by swimming!