How can I make magnesium citrate(C6H6MgO7) with just magnesium chloride(MgCl2), some lemons and oranges and the things that everybody has in their house? Well, the problem is pretty much it, but the history is that my father's doctor recommended him to change his supplement from magnesium chloride(MgCl2)to magnesium citrate(C6H6MgO7), for whatever reason. So, my father got pissed because he just bought 2 liters of magnesium chloride and now he not only has to buy magnesium citrate, but also has to sell magnesium chloride. So I remembered my chemistry classes about Arrhenius's theory in acids-bases and thought: well, we have MgCl2, so we can ionize it, and do the same with citric acid. Then, we will have citrate and Mg+2, so we just mix them and boom, magnesium citrate. That was simpler in my mind at the time. So I asked my dad: "Why don't we produce the magnesium citrate with the magnesium chloride that we already have?"
Everybody taught that was a good idea at the time, but then when I arrived home I realized that I don't have idea of how I am going to ionize the salt or the acid and, after that, how am I going to filter only the ions needed to make magnesium citrate. And, after all this, how can I be sure that this is safe to drink? I mean, I know that we can ingest magnesium citrate, but what if I do some s#*$ in the way? Hope you guys can help me with that.
P.S.: Please, forgive me for my grammatical mistakes, I'm from Brazil and a considerable portion of this came from Google Translate.