Cefexime is a useful antibiotic that can be prescribed to treat bacterial infections. Nanoparticles have been widely marketed as a universal solution among scientists. Many studies have been performed to modify nanoparticles to make them functional as extraction and pre-concentration agents and drug carriers. Temperature-sensitive polymers belong to a group of substances that undergo a major change in their physical features in response to temperature. Recently developed polymers can be used in many different areas, including modification of nanoparticles. In order to modify this nanoparticle, grafting copolymerization of Fe O nanoparticles was performed using poly (N-vinylcaprolactam) and 3-allyloxy-1,2-propanediol. The optimum conditions for pre-concentration of cefexime were studied. Under these optimum conditions, extraction recovery of biological samples in the range of 71-89% was obtained. The limit of detection and precision of proposed method were 4.5 × 10 μg mL and <4.11% (relative standard deviation), respectively. Based on the results from analysis of cefexime, in biological samples using the proposed method, the ability of this method to extract and pre-concentrate cefexime was confirmed. Also, satisfactory results from an in vitro study on drug release in simulated intestine media were obtained.