Research finds that babies sleep better in their rooms after four months. Infants may have a longer uninterrupted sleep lasting nine hours when they are alone in the room. They may get a little shorter or less sleep lasting 8.3 hours at night while sleeping in the same room with parents after four months (3).