A high-performance liquid chromatography method coupled to tandem mass spectrometry was validated in order to study the pharmacokinetics of cefotaxime in shrimp hepatopancreases and plasma, as well as its withdrawal time related to a maximum residue limit (MRL) in shrimp muscle. Pharmacokinetics parameters were investigated through oral medication at a single dose of 25 mg/kg shrimp body weight and subsequent hepatopancreas and plasma cefotaxime concentration measurements at 0.5, 1, 2, 4, 8, 12 and 24 h after shrimp were fed with medication. The maximum concentration of cefotaxime was observed after one hour in the hepatopancreas (Cmax, 19.45 ± 2.10 mg/kg) and 4 h in plasma (0.184 ± 0.061 mg/L). Based on a minimum inhibitory concentration (MIC) of cefotaxime of 4.13 mg/L against Vibrio parahaemolyticus (known to cause acute hepatopancreatic necrosis disease (AHPND) in white leg shrimp), it was observed that the time during which the hepatopancreas cefotaxime concentration was above the MIC was 23 h. An every 24 h cefotaxime treatment could thus be effective in fighting against this bacterium in shrimp. The withdrawal time of cefotaxime was determined after shrimp were fed with medicated feed once a day and twice a day for three consecutive days. Shrimp muscle was collected on day 1 and day 3 during medication and 1, 3, 7, 14 and 21 days after medication was stopped. Considering an MRL of 50 μg/kg, the withdrawal times were 8.5 degree-days (corresponding to 6.9 h at 29.5 °C) after shrimp were fed with medicated feed once a day for 3 days and 95.5 degree-days (77.7 h at 29.5 °C) after shrimp were fed with medicated feed twice a day for 3 days. Moreover, histological analysis revealed that feeding shrimp with cefotaxime at the given dose in once- or twice-a-day treatments did not negatively impact the shrimp hepatopancreas.