Magnesium doesn’t make you gain weight however studies have linked magnesium deficiency with insulin resistance. This may lead to weight gain (22).