Background: Preterm infants requiring prolonged hospitalization in the neonatal intensive care unit (NICU) are often exposed to early-life stress, which may contribute to long-term health consequences. Epigenetic markers, particularly DNA methylation (DNAm) of stress-related genes such as SLC6A4 and NR3C1, have been identified as potential biomarkers of early-life stress. Limited research has compared DNAm patterns between term and preterm infants or examined associations between NICU-related stress and DNAm in preterm populations. Objectives: This pilot study aimed to (1) compare DNAm patterns between preterm and term infants, (2) examine relationships between NICU-related stress and DNAm alterations in preterm infants, and (3) explore DNAm changes over time in preterm infants. Methods: Buccal swabs were collected from 10 term and 23 preterm infants within the first week of life. Eleven preterm infants returned for a repeat sampling three months post discharge. The Neonatal Infant Stressor Scale (NISS) was used to calculate early-life stress. DNAm at specific CpG sites were analyzed using Mann-Whitney U tests and Spearman’s rho correlations. Results: Preterm infants exhibited significantly different DNAm patterns at select CpG sites compared to term infants. Among preterm infants, higher NISS scores during hospitalization correlated with altered DNAm patterns in both genes. At three months post-discharge, new and persistent DNAm alterations were identified; although, total average DNAm did not significantly differ over time. Conclusion: These findings suggest that NICU-related stress is associated with DNAm alterations in preterm infants, supporting the need for further investigation of DNAm as a biomarker of early-life stress.