Oh the lovely leg cramps. They are the worst. I used to get them every once in a while and then when I started running I was getting them all the time. I searched the internet for solutions and here’s what finally solved them:
1. Foam rolling: It hurts but it is so good for you. I foam roll twice a week on my rest days. It isn’t a huge time commitment. I only do it for about 5 minutes or so (you can foam roll for longer but I’m impatient) and it really helps with tight muscles. If you are new to foam rolling, this is a good video to follow.
2. Magnesium: It is important to make sure you are getting enough magnesium. Eat magnesium rich foods or consider taking a supplement.
3. Water and stretching: Stay hydrated and drink plenty of water especially if you are working out. And don’t forget to stretch after your workout!
*Just a disclaimer that I am not a medical professional (obviously) so if you have an actual issue with leg cramps that won’t go away, ask a medical professional. This is just what worked for me.