An arterial blood gas (ABG) sample is taken by a specialized doctor or nurse. During this procedure, while the patient is typically in a reclining position, a blood sample is obtained from an artery in areas such as the wrist (radial artery) or arm (brachial artery). The collected blood sample is analyzed in a laboratory to determine gas levels such as oxygen, carbon dioxide, and pH.