To address the relationship between the proportions of carbohydrates and fat and hyperglycemia in the Chinese population. A cross-section research involving data from the China Health and Nutrition Survey in 2009, and nutritional status and health indicators were mainly focused. China. 8197 Chinese individuals aged over 16 years, including 1345 subjects had a low carbohydrate and high fat diet (LCHF), 3951 individuals had a medium proportion of carbohydrate and fat (MPCF) diet, 2660 participants had a high carbohydrate and low fat (HCLF) diet and 241 people had the very high carbohydrate and low fat (VHCLF) diet. Subjects with the HCLF diet were significantly associated with an increased risk of hyperglycemia (OR:1.142, 95%CI:1.022-1.276) when compared with the individuals with the MPCF diet. Meanwhile, people with a VHCLF diet had a higher risk of hyperglycemia (OR:1.829, 95%CI:1.377-2.429). In contrast, the association between participants with an LCHF diet and hyperglycemia was not significant (OR:1.082, 95%CI:0.942-1.243) with adjusting a series of confounding factors. Furthermore, people with a VHCLF diet were significantly associated with a higher risk of hyperglycemia in the major energy levels and social characteristics subgroup. We found the HCLF and VHCLF diets were significantly associated with a high risk of hyperglycemia. And, the association between LCHF diets and the risk of hyperglycemia was not significant.