Researchers at the Universities of Southampton, Exeter and Plymouth used the test to assess the levels of epigenetic switches in the PGC1a gene - a gene that regulates fat storage in the body.
Epigenetic switches take place through a chemical change called DNA methylation, which controls how genes work and is set during early life.
The Southampton team found that the test, when carried out on children at five years old, differentiates between children with a high body fat and those with a low body fat when they were older.
Results were independent of the child's gender, their amount of physical activity and their timing of puberty.
Also Read
Dr Graham Burdge, of the University of Southampton who led the study with colleague Dr Karen Lillycrop, said, "It can be difficult to predict when children are very young, which children will put on weight or become obese."
"It is important to know which children are at risk because help, such as suggestions about their diet, can be offered early and before they start to gain weight," Burdge said.
"We hope that this knowledge will help us to develop and test new ways to prevent children developing obesity which can be introduced before a child starts to gain excess weight. However, our findings now need to be tested in larger groups of children," Burdge said.
The study, which also involved Professor Terence Wilkin at the University of Exeter and Dr Joanne Hosking at the University of Plymouth, is published in the journal Diabetes.
Led by Wilkin, the study assessed the children in Plymouth each year for factors related to type 2 diabetes, such as the amount of exercise they undertook and the amount of fat in their body. A blood sample was collected and stored.
The Southampton team extracted DNA from these blood samples to test for epigenetic switches.