A dispersive solid‐phase extraction method based on a new sorbent has been performed on plasma and wastewater samples to determine metoprolol by high‐performance liquid chromatography–tandem mass spectrometry. In this study, the analyte was adsorbed from the samples onto microcrystalline cellulose as a green and efficient sorbent and then eluted for use in the determination step. In the mass spectrometer, the analyte was detected in the positive mode and selectivity of the analysis was increased by sequential mass analysis through multiple reaction monitoring. All of the effective parameters in the extraction of metoprolol from plasma and wastewater were optimized. Under optimal conditions the method was linear in the ranges of 1–1,000 and 0.1–1,000 ng/ml in plasma and wastewater samples, respectively. The detection limits of the method were 0.30 and 0.03 ng/ml in plasma and wastewater samples, respectively. The data showed that the method provides low detection limit, wide linear range, good precision and high extraction recovery. Finally several plasma and wastewater samples were successfully analyzed using the method. The use of a small amount of a green and inexpensive sorbent and a low volume of plasma without the need for further pretreatment steps are the main advantages of the method.