Background and study aims: Esophagogastroduodenoscopy (EGD) and colonoscopy (CS) are vital endoscopic procedures in the diagnosis and follow-up of gastrointestinal tract diseases. Endoscopic procedures can be performed with or without anesthesia as per patient preferences. These procedures can cause some anxiety in almost all patients, and the degree of anxiety differs for each individual. Thus, we aimed to evaluate the trait and state anxiety levels of the patients and assess the relationship between the preference of anesthesia and anxiety levels. Patients and methods: To investigate this issue, 723 patients who underwent elective endoscopy (EGD and/or CS) were enrolled. The researchers collected sociodemographic data and medical history records as reported by the patients. State and trait anxiety levels of the patients were evaluated using the State and Trait Anxiety Inventory (STAI). Results: The patients were divided into two groups as with anesthesia and without anesthesia. Of the respondents, 43.4% requested anesthesia during endoscopic procedure. Sociodemographic data, except sex, showed similar characteristics. The STAI trait scores of the two groups were similar; however, there was a significant difference in the STAI state scores of the groups (p = 0.018). A significant difference was observed in the anesthesia preference and the type of endoscopic procedure (EGD, CS, or both) (p < 0.001). Type of endoscopic procedure, STAI state scores, and sex were determined as the predictors of the anesthesia choice. Conclusion: Endoscopic procedures are known to cause anxiety among many patients. Our findings suggest that the anesthesia preferences of patients are an important factor in preventing these situational concerns. However, this study found that being a woman and undergoing a CS procedure are important factors related to anesthesia preferences. Thus, more detailed assessments on this subject are required. ? 2020 Pan-Arab Association of Gastroenterology. Published by Elsevier B.V. All rights reserved.