When one group got into difficulty they telephoned police, which sparked the rescue.
Two of the children were initially feared to have hypothermia symptoms.
At 5pm mountain rescue confirmed that all of the missing children had been located.
A massive search and rescue operation was launched today after 26 schoolchildren went missing in the Brecon Beacons.
The teenagers, who were doing their Duke of Edinburgh award, disappeared as atrocious weather hit the area.
Mountain rescue volunteers and a coastguard helicopter scrambled to help after the alarm was raised.
After four hours of worry for the children's parents they were finally located late this afternoon.
"We must have had several inches or rain over the past 24 hours and the rivers are all in flood and the mist has really come down." All of the children come from England with a large number believed to belong to schools in St Albans, Herts.
It was a scene that could have inspired a Victoria Wood sketch.Two women chatting in a hospital cafe, masking their nerves about upcoming medical tests by joking about the weather and the silly names given to storms.A Dyfed-Powys Police spokesman said: “We are pleased to confirm that following the search and rescue operation all 26 members of the party involved have been accounted for.“It is also very pleasing that no one was injured, but as a precaution they are being taken to hospital to be checked." A spokesman for the Welsh Ambulance Service said the hospital visit was just a precaution.He added: “None of their injuries are believed to be serious.” The search began at 1pm near the Tafarn Y Garreg pub in the village of Abercraf, Powys.The children - aged in their mid teens - had been walking on the hills in four separate groups with no adults present.