XML 99 R86.htm IDEA: XBRL DOCUMENT v3.22.2.2
Stock compensation plans (Details) - USD ($)
$ in Millions
12 Months Ended
Aug. 31, 2022
Aug. 31, 2021
Aug. 31, 2020
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Total stock-based compensation expense $ 391 $ 155 $ 137
Unrecognized compensation cost related to non-vested awards $ 399    
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 $ 133 $ 155 $ 137
Walgreens health      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Total stock-based compensation expense $ 269