This study was conducted to determine the volatile flavor compositions of the essential oil and the headspace of Capsella bursa-pastoris Medicus. Essential oil and headspace from the plant were extracted by simultaneous steam distillation extraction (SDE), and solid-phase microextraction(SPME) methods, respectively. Seventy-two compounds including 28 hydrocarbons, 4 aldehydes, 6 ketones, 16 alcohols, 4 esters, 8 acids, and 6 miscellaneous ones were identified in the leaf essential oil extracted by SDE method Sixty-eight compounds including 26 hydrocarbons, 2 aldehydes, 6 ketones, 17 alcohols, 4 esters, 6 acids, and 7 miscellaneous ones were identified in the root essential oil. According to the instrumental analyses the essential oil, phytol ($21.12\%$ in leaves, $20.94\%$ in roots) was the most abundant compound Alcohols, esters, and acids were main groups of the essential oil. On the other hand, thirty-eight compounds including 18 hydrocarbons, 3 aldehydes, 3 ketones, 9 alcohols, 2 esters, 3 miscellaneous ones were identified in the leaf headspace by SPME. In root headspace, thirty-three compounds including 16 hydrocarbons, 2 aldehydes, 1 ketone, 9 alcohols, 3 esten;, and 2 miscellaneous ones were identified. Hydrocarbons($44.02\%$ in leaves, $56.98\%$ in roots) were the main components of the headspace of Capsella bursa-pastoris Medicus.