How long will a doctor let a baby stay in the womb after the water breaks? Most don't like for the baby to stay in there any longer than 24 hours because of the risk of infection, but closely monitored, a doctor may go longer.