A child can remain in foster care until they turn 18, or 21 if they are enrolled in an education or training program.