Hepatitis B (HB) vaccination is recommended for people with human immunodeficiency virus/acquired immune deficiency syndrome (HIV/AIDS). We aimed to assess the immune response to the HB vaccine and associated factors using the standard vaccination schedule among people with HIV (PWH) in China. A prospective study was carried out from 2016 to 2020 in Beijing, China. PWH were given three 20 μg doses of recombinant HB vaccine at 0, 1, and 6 months. Blood samples were taken within 4–6 weeks after each dose to evaluate the anti-HBs levels. A total of 312 participants completed vaccination and serologic testing. The seroconversion (anti-HBs ≥ 10 IU/L) rates following the first, second, and third doses of the vaccine were 35.6% (95% CI: 30.3–40.9%), 55.1% (95% CI: 49.6–60.7%), and 86.5% (95% CI: 82.8–90.3%), respectively, and the geometric means of the anti-HBs titers were 0.8 IU/L (95% CI: 0.5–1.6 IU/L), 15.7 IU/L (95% CI: 9.4–26.3 IU/L), and 241.0 IU/L (95% CI: 170.3–341.1 IU/L), respectively. In multivariate analysis, after three doses of vaccination, age, CD4 cell count, and HIV-RNA viral load were significantly associated with strong, moderate, and weak response, respectively. These findings confirm that these personal health conditions are related to the HB response. HB vaccination in PWH using the standard schedule was still highly effective in the context of early treatment initiation, especially among participants aged 30 years and younger.