Limiting gastrointestinal oxalate absorption is a promising approach to reduce urinary oxalate excretion in patients with idiopathic and enteric hyperoxaluria. Phosphate binders, that inhibit gastrointestinal absorption of dietary phosphate by the formation of easily excretable insoluble complexes, are commonly used as a treatment for hyperphosphatemia in patients with end-stage renal disease. Several of these commercially available phosphate binders also have affinity for oxalate. In this work, a series of metallic cations (Li+, Na+, Mg2+, Ca2+, Fe2+, Cu2+, Zn2+, Al3+, Fe3+ and La3+) is investigated on their binding affinity to phosphate and oxalate on one side and anionic species that could be used to administer the cationic species to the body on the other, e.g., acetate, carbonate, chloride, citrate, formate, hydroxide and sulphate. Through quantum chemical calculations, the aim is to understand the competition between the different complexes and propose possible new and more efficient phosphate and oxalate binders.