My legs ache after a hard ride, or when I have not ridden for a day or two and they need a spin. Sometimes they wake me up.

Is it biking related do you think? Or something else...

Rabbit has made a good suggestion. My partner takes magnesium to help with his legs - but that is def cycling related.