median days to automaticity, range 18 to 254
Why 120 days
Habits take longer than 21 days
At University College London, volunteers repeated a new daily behaviour and tracked how automatic it felt. The median was 66 days, and missing a single day didn't meaningfully set people back.
In the journal120 day pages cover the typical window with room to spare.
Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W., & Wardle, J. (2010). European Journal of Social Psychology, 40(6), 998–1009. Read the study