v3.25.2
Basic and Diluted Earnings Per Share (Detail) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Earning Per Share Basic And Diluted [Abstract]      
Net income available for common shareholders (A) $ 101,832 $ 88,136 $ 72,361
Weighted average outstanding shares of common stock (B) 7,433 7,431 7,446
Dilutive effect of stock-based awards 32 38 26
Common stock and common stock equivalents (C) 7,465 7,469 7,472
Earnings Per Share      
Basic (A/B) $ 13.70 $ 11.86 $ 9.72
Diluted (A/C) $ 13.64 $ 11.80 $ 9.68