v3.26.1
Share-based compensation - Narrative (Details)
$ / shares in Units, $ in Millions
6 Months Ended
Jun. 30, 2026
USD ($)
$ / shares
shares
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]  
Share based payment, cost not yet recognized | $ $ 141
Share based payment, cost not yet recognized, period for recognition (in years) 2 years 1 month 6 days
Ferguson Group Employee Share Purchase Plan 2021  
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]  
Remain available for allotment under the ESPP (in shares) 20,000,000
RSU awards granted  
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]  
Share based compensation, award vesting period (in years) 3 years
PSU-EX granted  
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]  
Share based compensation, award vesting period (in years) 3 years
Stock Option  
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]  
Share based compensation, award vesting period (in years) 3 years
Service period 1 year
Expiration period 10 years
Employee Stock | Ferguson Group Employee Share Purchase Plan 2021  
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]  
Remain available for allotment under the ESPP (in shares) 19,500,000
Offering period 85.00%
Shares purchased under the ESPP (in shares) 136,659
Average price (in usd per share) | $ / shares $ 132.23