Purpose: This study aimed to develop a diabetic nephropathy (DN) or diabetic retinopathy (DR) incidence risk nomogram in China's population with type 2 diabetes mellitus (T2DM) based on a community-based sample. Methods: We carried out questionnaire evaluations, physical examinations and biochemical tests among 4219 T2DM patients in Shanghai. According to the incidence of DN and DR, 4219 patients in our study were divided into groups of T2DM patients with DN or DR, patients with both, and patients without any complications. We successively used least absolute shrinkage and selection operator regression analysis and logistic regression analysis to optimize the feature selection for DN and DR. To ensure the accuracy of the results, we carried out multivariable logistic regression analysis of the above significant risk factors on the sample data for both DN and DR. The selected features were included to establish a prediction model. The C-index, calibration plot, curve analysis and internal validation were used to validate the distinction, calibration, and clinical practicality of the model. Results: The predictors in the prediction model included disease course, body mass index (BMI), total triglycerides (TGs), systolic blood pressure (SBP), postprandial blood glucose (PBG), haemoglobin A1C (HbA1c) and blood urea nitrogen (BUN). The model displayed moderate predictive power with a C-index of 0.807 and an area under the receiver operating characteristic curve of 0.807. In internal verification, the C-index reached 0.804. The risk threshold was 16-75% according to the analysis of the decision curve, and the nomogram could be applied in clinical practice. Conclusion: This DN or DR incidence risk nomogram incorporating disease course, BMI, TGs, SBP, PBG, HbA1c and BUN can be used to predict DN or DR incidence risk in T2DM patients. The research team has developed an online app based on a clinical prediction model incorporating risk factors for rapid and simple prediction.