Most children learn to use the toilet between 2 and 4 years of age. Even after children are toilet-trained, they may wet the bed until they are older. It's even common for 6-year-olds to wet the bed once in a while. Some children still wet the bed at age 12.