If you are working hard on your New Years Resolution to get in better shape, the music you listen to can have a big impact.

Sports psychologists in London looked at 6.7 million Spotify playlists that had the word "workout" in the title. Then they analyzed the beats per minute of each song, to figure out the perfect type of music for each part of a workout.

When you're warming up, cooling down, or doing something aerobic, you should listen to pop music.

For jogging, the best thing to listen to is rap, because the number of beats per minute match up well with the average person's stride.

And when you're lifting weights, dance music is best, because it's faster and has a lot of bass.

The researchers say you should never listen to rock, because most rock songs have changes in rhythm, which can mess with YOUR rhythm. The study didn't say anything about country.

Here are the specific examples they came up with for the perfect workout playlist.

1. To get mentally prepared and psyched up,listen to 'Roar' by Katy Perry. It has 92 beats per minute.

2. While you're stretching, 'Talk Dirty' by Jason Derulo. 100 beats per minute.

3. For an aerobic warm-up, 'Get Lucky' by Daft Punk. 116 beats per minute.

4. For a moderate cardio workout 'Timber' by Pitbull and Ke$ha. 130 beats per minute.

5. For a more intense cardio workout, 'Applause' by Lady Gaga. 140 beats per minute.

6. For really intense cardio, 'Can't Hold Us' by Macklemore and Ryan Lewis. 147 beats per minute.

7. For weight lifting, 'The Monster' by Eminem and Rihanna. 110 beats per minute.

8. And to cool down, 'Burn' by Ellie Goulding. 86 beats per minute.

When it's a really tough workout, you're also supposed to choose songs that remind you of your youth, because they subconsciously help motivate you to power through when you're tired.

via daily mail