Equity Award Plans (Share-Based Compensation by Award Types) (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | |||
| Total share-based compensation | $ 1,815 | $ 1,300 | $ 1,079 |
| RSU and RSA | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | |||
| Total share-based compensation | 1,319 | 878 | 866 |
| PSU | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | |||
| Total share-based compensation | 344 | 331 | 124 |
| Others | |||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | |||
| Total share-based compensation | $ 152 | $ 91 | $ 89 |