I have 4 kids, and the answer is different for each! My oldest was about 4, but my middle son was just about 3 years old - thankfully before my twins were born a month later! With the twins, it was interesting that my daughter trained overnight more slowly than her twin brother. But, during the day, she was better than he was at an earlier age.
Interested in reading other answers!