v3.26.1
Stockholders' Equity - Share-based compensation expense (Details) - USD ($)
$ in Millions
12 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2024
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense $ 2,056 $ 1,968 $ 1,940
Income tax benefit (366) (548) (594)
Decrease in net income 1,690 1,420 1,346
Location, Statement of Income, Balance [Axis]: us-gaap:CostOfGoodsAndServicesSold | Service      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense 370 420 398
Location, Statement of Income, Balance [Axis]: us-gaap:CostOfGoodsAndServicesSold | Product and other      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense 1 3 4
Location, Statement of Income, Balance [Axis]: us-gaap:GeneralAndAdministrativeExpense      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense 392 375 368
Location, Statement of Income, Balance [Axis]: us-gaap:ResearchAndDevelopmentExpense      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense 706 629 639
Location, Statement of Income, Balance [Axis]: us-gaap:RestructuringCharges      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense 0 0 25
Location, Statement of Income, Balance [Axis]: us-gaap:SellingAndMarketingExpense      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Share-based compensation expense $ 587 $ 541 $ 506