XML 107 R87.htm IDEA: XBRL DOCUMENT v3.24.3
Stock compensation plans (Details) - USD ($)
$ in Millions
12 Months Ended
Aug. 31, 2024
Aug. 31, 2023
Aug. 31, 2022
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Total stock-based compensation expense $ 182 $ 385 $ 391
Unrecognized compensation cost related to non-vested awards $ 276    
Compensation cost not yet recognized period for recognition 3 years    
2021 Omnibus Plan      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Total stock-based compensation expense $ 73 58 133
Walgreens health      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Total stock-based compensation expense $ 110 $ 327 $ 269