The m-PIXE setup of Fudan University has been used to study the trace elements of ostracode shells. Program TSPIXE was used to calculate their trace element concentrations.Stenocypris derupta Vavra, Dolerocypria mukaishimensis okubo andTanella opima Chen, three kinds of ostracodes were analyzed. In this study, we concentrate on the relationships between molar ratios of Mg/Ca and temperature, and between molar ratios of Mg/Ca and salinity of the host water. We have found that the molar ratios of Mg/Ca of ostracize shells are positively correlated with the temperature of the host water, but negatively correlated with its salinity.