How long have you already tried stretching and staying hydrated? I'm asking because magnesium really does help often, but it's not magic - night cramps have different roots and if stretching + water aren't enough after a few weeks, then yeah, a supplement could make a difference. That said, not all magnesium is the same: glycinate and taurate absorb better compared to carbonate, which is cheaper but less effective. Try with not-too-high doses at first (maybe 200-300 mg a day) and give it at least a couple of weeks before judging, because your body needs time. If after a month there's still nothing, it'd be worth seeing a doctor to rule out other causes - calcium deficiency, circulation issues, or just weird sleeping posture. 😊