To examine the extent to which geometric parameters derived from dual-energy x-ray absorptiometry (DXA) scans in the UK Biobank study are related to hip osteoarthritis (HOA) independently of sex, age and body size. Femoral neck width (FNW), diameter of the femoral head (DFH) and hip axis length (HAL) were derived automatically from left hip DXA scans in UK Biobank using outline points placed around the hip by a machine-learning program. Correlations were calculated between geometric parameters, age, height, and weight. Logistic regression was used to examine the relationship of geometric parameters with radiographic HOA, hospital diagnosed HOA (HESOA), and Cox proportional hazards model to evaluate the relationship with total hip replacement (THR). Analyses were adjusted for sex, age, height, weight, and geometric parameters. The study consisted of 40,312 participants. In age and sex-adjusted analyses, FNW, HAL and DFH were related to increased risk of radiographic HOA. In a model adjusted for age, sex, height, weight and other geometric parameters, both FNW and HAL retained independent relationships with radiographic HOA [FNW: odds ratios 2.38 (2.18-2.59), HAL: 1.25 (1.15-1.36)], while DFH was now protective [0.55 (0.50-0.61)]. Only FNW was independently related to HESOA [2.20 (1.80-2.68)] and THR [hazard ratios 2.51 (1.89-3.32)]. Greater FNW and HAL were independently related to an increased risk of radiographic HOA, whereas greater DFH appeared to be protective. Greater FNW was independently associated with HESOA and THR. These results suggest that DXA-derived geometric parameters, particularly FNW, could help determine HOA and THR risk.