This cross-sectional study aimed to investigate the nutritional status and dietary intake of HIV-infected children and adolescents and the relationship between nutritional status and dietary intake and CD4(+) T-cell count and viral load. The sample was composed of 49 subjects aged 7-17 years and living in Florianópolis, Brazil. Nutritional status was assessed by height-for-age and body mass index-for-age. Dietary intake was assessed by a food frequency questionnaire. Spearman correlations and multiple linear regressions were used to determine the relationship between energy, nutrient intake and body mass index-for-age and CD4(+) T-cell count and viral load. The mean body mass index-for-age and height-for-age values were -0.26 ± 0.86 and -0.56 ± 0.92, respectively. The energy intake was 50.8% above the estimated energy requirement and inadequate intake of polyunsaturated fat, cholesterol, fibre, calcium and vitamin C was present in 100%, 57.1%, 40.8%, 61.2% and 26.5% of the sample, respectively. Multiple linear regression analyses revealed that energy intake was correlated with CD4+ T-cell count (r = 0.33; p = 0.028) and viral load (r = -0.35; p = 0.019). These data showed low body mass index-for-age and height-for-age z-scores, high energy intake and inadequate intake of important nutrients for immune function, growth and control of chronic diseases. A lower energy intake was correlated with viral suppression and immune preservation.