With the aim of preparing carrier-free 28Mg and 47Ca simultaneously, Ti, V and Fe targets were examined by irradiating with high-energy ions of 12C, 14N and 16O accelerated by the RIKEN Ring Cyclotron. Among the targets, V gave the highest cross section for the formation of both 28Mg and 47Ca irrespective of the kind of beams. The cross section for the formation of 28Mg by the reactions of Ti, V and Fe targets with ion beams increased in the order of 12C < 16O<14N. On the other hand, the three beams exhibited almost the same cross sections for the formation of 47Ca by the reaction of a given target. Titanium and V were selected as prospective targets and 14N as a suitable beam for the production of 28Mg and 47Ca. Chemical separation procedures of the radiotracers in carrier- and salt-free states have been established by using cation exchange resins. The recovery yields of 28Mg and 47Ca from Ti target were 70 and 90%, respectively, and the decontamination factor was less than 10-5. The recovery yields of 28Mg and 47Ca from V target were 80% and the decontamination factor was less than 10-7.