In almost all schools at these levels, children are divided by age groups into grades , ranging from kindergarten (followed by first grade ) for the youngest children in elementary school, up to twelfth grade , the final year of high school .