The atomic ratio of tantalum nitride foil has been measured by means of transmissive scattering. The atomic ratio in a thin foil sample can be determined accurately due to the fact that the peaks corresponding to different components can be separated easily.