Introduction Avascular necrosis of the femoral head (ANFH) is a phenomenon vascular supply disruption lead to death of bone cells around the femoral head. The disease is a severe health issue all over the world. Within 2 years about 80 % to 85 % of symptomatic cases will result in collapse of the femoral head. Recovery of hip function after total hip arthroplasty (THA) may be influenced by many factors that vary among different racial/ethnic groups. Most findings in this field have been from Western developed nations, and not much information from developing Asian countries is available.This study aimed to determine the six-month functional outcome and patient–related factors that predict functional recovery in patients with avascular necrosis of the femoral head (ANFH) undertaking total hip arthroplasty (THA).Methods Between January 2022 and December 2023 there were 143 patients participating in this prospective study. Demographic, medical history and clinical findings were collected from their medical records. The six-month functional outcome was evaluated using the Harris hip score (HHS). The mean age of the participants was 55.90 ± 11.49 years, and the majority (86.7 %) were male. Most patients had excellent (43.4 %) or good outcome (51.7 %).Discussion Our study had some limitations: the length of the follow-up after surgery is short (6 months), that hospital-related factors like the type and volume of the hospital have not been analyzed. Nonetheless, previous observations suggest that most of the improvement in physical function occurs during the first six months following surgery and remains the same for a long time. However, our sample has typical demographic and clinical characteristics of patients with THA for ANFH, suggesting that determinants of the 6-month functional outcome in the current study could apply to other patients undergoing this surgery.Results The determinants of excellent outcome were a higher preoperative HHS (odds ratio (OR): 4.369, 95 % confidence interval (CI) =1.854 – 10.299; p < 0.001) and absence of comorbidity (OR: 2.440, 95 % CI = 1.071 – 5.557, p = 0.034). No demographic (age, gender, body mass index), medical history (using of steroids, alcohol consumption or smoking), or any other clinical parameter (stage or side of the affected hip, time until surgery) had a significant influence on functional outcome.Conclusion Earlier surgery during functional decline and better management of comorbidity may help improve THA outcomes for patients with avascular necrosis of the femoral head.