v3.25.2
Fair Value Measurements - Schedule of Fair Value of Financial Instruments (Details) - USD ($)
$ in Millions
May 31, 2025
Aug. 31, 2024
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount $ 2,884 $ 2,880
Senior Notes | 3.950% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Stated interest rate 3.95%  
Carrying Amount $ 498 498
Senior Notes | 3.600% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Stated interest rate 3.60%  
Carrying Amount $ 498 497
Senior Notes | 3.000% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Stated interest rate 3.00%  
Carrying Amount $ 595 594
Senior Notes | 1.700% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Stated interest rate 1.70%  
Carrying Amount $ 499 499
Senior Notes | 4.250% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Stated interest rate 4.25%  
Carrying Amount $ 497 496
Senior Notes | 5.450% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Stated interest rate 5.45%  
Carrying Amount $ 297 296
Senior Notes | Carrying Amount | Level 2 | 3.950% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount 498 498
Senior Notes | Carrying Amount | Level 2 | 3.600% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount 498 497
Senior Notes | Carrying Amount | Level 2 | 3.000% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount 595 594
Senior Notes | Carrying Amount | Level 2 | 1.700% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount 499 499
Senior Notes | Carrying Amount | Level 2 | 4.250% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount 497 496
Senior Notes | Carrying Amount | Level 2 | 5.450% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Carrying Amount 297 296
Senior Notes | Fair Value | Level 2 | 3.950% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 491 487
Senior Notes | Fair Value | Level 2 | 3.600% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 471 468
Senior Notes | Fair Value | Level 2 | 3.000% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 539 529
Senior Notes | Fair Value | Level 2 | 1.700% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 487 476
Senior Notes | Fair Value | Level 2 | 4.250% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 496 495
Senior Notes | Fair Value | Level 2 | 5.450% Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value $ 305 $ 306