XML 68 R58.htm IDEA: XBRL DOCUMENT v3.23.2
Goodwill and other intangible assets - Narrative (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
May 31, 2023
May 31, 2022
May 31, 2023
May 31, 2022
Aug. 31, 2022
Jun. 01, 2022
Jun. 01, 2021
Goodwill [Line Items]              
Goodwill $ 28,371   $ 28,371   $ 22,280    
Impairment of intangible assets 299 $ 0 299 $ 0      
Indefinite-lived intangible assets 5,387   5,387   5,528    
Amortization of intangible assets 226 $ 148 583 $ 488      
Minimum              
Goodwill [Line Items]              
Reporting unit fair value in excess of carrying amount (as a percent)           7.00% 7.00%
Maximum              
Goodwill [Line Items]              
Reporting unit fair value in excess of carrying amount (as a percent)           198.00% 18.00%
Boots Reporting Unit              
Goodwill [Line Items]              
Goodwill 962   962   906    
Impairment of intangible assets 431            
Indefinite-lived intangible assets $ 5,400   $ 5,400   $ 5,500