BACKGROUND: Combining smoking with poor eating habits significantly elevates the risk of chronic illnesses and early death. Understanding of how dietary quality shifts post-smoking cessation remains limited. The objective of this study is to examine dietary quality - using Healthy Eating Index (HEI - 2020) and its 13 components, among current, former, and never smokers, and particularly the impact of quitting and the duration of cessation on dietary habits. METHODS: A cross-sectional analysis of 31,569 adults from the National Health and Nutrition Examination Survey (NHANES) 2005-2018 was conducted. Dietary quality was assessed using HEI-2020 scores, which were determined by NIH developed - simple HEI scoring algorithm per person. Smoking status was categorized into current, former, and never smokers, with further subdivisions for current (heavy/light smokers) and former smokers (duration post-cessation). Descriptive analysis and multiple regression models weighted to represent the US population were performed. RESULTS: The current smoking rate was 19.4%, with a higher prevalence in males (22.5%) than females (17.5%). Current smokers reported statistically significantly lower HEI total score than both former and never smokers. Former smokers exhibited HEI scores similar to those of never smokers. The adjusted HEI total scores for current, former, and never smokers were 49.2, 54.0, and 53.3, respectively, with a statistically significant difference (p < 0.001). Moreover, light smokers had better total HEI score than heavy smokers (46.8 vs. 50.8, p < 0.001, respectively), but former and never smokers scored even higher. Quitting smoking immediately improved dietary quality, with former smokers reaching the dietary levels of never smokers within 5-10 years (53.8 vs. 53.3, p > 0.05, respectively). Compared to current smokers, former smokers tended to consume more beneficial foods (e.g., fruits, vegetables, greens and beans, whole grains, proteins, and fatty acids), while also consuming more sodium and less added sugar. CONCLUSIONS: Current smokers, particularly heavy smokers, exhibit poorer dietary habits than former and never smokers. The dietary quality of former smokers aligns with never smokers over time, highlighting the positive impact of smoking cessation on diet. This has implications for reducing chronic disease risks associated with poor diet and smoking.