Systemic lupus erythematosus (SLE) and rheumatoid arthritis (RA) are complex autoimmune diseases. CD40 participates in inflammatory response, and promotes fibroblast proliferation, leading to occurrence and progression of SLE, RA. This study explores CD40 gene polymorphisms in SLE and RA patients from a Chinese Han population. Two hundred SLE patients, 340 RA patients, and 900 healthy controls were enrolled. Genomic DNA was extracted from peripheral blood, and six polymorphisms of CD40 gene (rs3765456, rs1569723, rs73115010, rs13040307, rs1883832, and rs4810485) were detected by KASP method. Frequencies of rs1569723 genotypes AA, AC, AA+AC were significantly higher in RA patients as compared to those in healthy controls (P = 0.049, P = 0.024, P = 0.022). Frequencies of genotypes CT, CC+CT of rs1883832, and GT, GG+GT of rs4810485 were significantly higher in RA patients as compared to those in healthy controls (P = 0.012, P = 0.018, P = 0.009, P = 0.015). RA patients carrying rs13040307 C allele and rs73115010 T allele showed increased number of swollen joints. Moreover, frequency of allele T of rs13040307 was lower in SLE patients with positive anti-dsDNA and hematuria as compared to that in patients without these parameters (P = 0.038, P = 0.045). There were increased frequencies of genotype TT, allele T for rs13040307 and lower frequencies of genotype TT, allele T for rs73115010 in lupus patients with myositis (all P<0.05). Interestingly, frequencies of rs1569723 A allele, rs4810485 T allele were higher in SLE patients with myositis, and frequencies of rs3765456 A allele, rs1883832 T allele were lower in SLE patients with myositis (All P<0.05). In conclusion, CD40 gene polymorphisms may associate with susceptibility to SLE and RA.