v3.26.1
Consolidated Statements of Stockholders' Equity - USD ($)
shares in Thousands, $ in Millions
Total
Common Stock
Additional Paid-In Capital
Treasury Stock
Accumulated Other Comprehensive Loss
Retained Earnings
Beginning balance (in shares) at Jul. 31, 2023   280,421        
Beginning balance at Jul. 31, 2023 $ 17,269 $ 3 $ 19,026 $ (16,772) $ (55) $ 15,067
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Comprehensive income 2,964       1 2,963
Issuance of stock under employee stock plans, net of shares withheld for employee taxes (in shares)   3,274        
Issuance of stock under employee stock plans, net of shares withheld for employee taxes (718)   (718)      
Stock repurchases under stock repurchase programs (in shares)   (3,427)        
Stock repurchases under stock repurchase programs (1,978)     (1,978)    
Retirement of treasury stock 0          
Dividends and dividend rights declared (1,041)         (1,041)
Share-based compensation expense 1,940   1,940      
Ending balance (in shares) at Jul. 31, 2024   280,268        
Ending balance at Jul. 31, 2024 18,436 $ 3 20,248 (18,750) (54) 16,989
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Comprehensive income 3,873       4 3,869
Issuance of stock under employee stock plans, net of shares withheld for employee taxes (in shares)   3,180        
Issuance of stock under employee stock plans, net of shares withheld for employee taxes (584)   (584)      
Stock repurchases under stock repurchase programs (in shares)   (4,319)        
Stock repurchases under stock repurchase programs (2,793)     (2,793)    
Retirement of treasury stock 0          
Dividends and dividend rights declared (1,190)         (1,190)
Share-based compensation expense $ 1,968   1,968      
Ending balance (in shares) at Jul. 31, 2025 279,129 279,129        
Ending balance at Jul. 31, 2025 $ 19,710 $ 3 21,632 (21,543) (50) 19,668
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Comprehensive income 4,559       (7) 4,566
Issuance of stock under employee stock plans, net of shares withheld for employee taxes (in shares)   2,621        
Issuance of stock under employee stock plans, net of shares withheld for employee taxes (529)   (529)      
Stock repurchases under stock repurchase programs (in shares)   (13,366)        
Stock repurchases under stock repurchase programs (5,463)     (5,463)    
Retirement of treasury stock (27,006)   (23,159) 27,006   (3,847)
Dividends and dividend rights declared (1,341)         (1,341)
Share-based compensation expense $ 2,056   2,056      
Ending balance (in shares) at Jul. 31, 2026 268,384 268,384        
Ending balance at Jul. 31, 2026 $ 18,992 $ 3 $ 0 $ 0 $ (57) $ 19,046