v3.25.2
Income Taxes - Additional Information (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Jun. 30, 2022
Income Taxes [Line Items]        
Income taxes paid, net of refunds $ 28,700 $ 23,400 $ 23,100  
Gross unrecognized tax benefits related to uncertain tax positions 24,729 22,760 17,120 $ 15,593
Gross unrecognized tax benefits related to uncertain tax positions, if recognized would affect our effective tax rates 21,200 19,600 14,400  
Accrued interest expense related to uncertain tax positions net of federal income tax benefits 8,200 6,800 5,200  
Interest expense related to uncertain tax positions, net of income tax benefits $ 1,300 $ 1,500 $ 918  
Regional Operating Centers        
Income Taxes [Line Items]        
Foreign earnings, taxed at rates lower than U.S. rate as a percentage of foreign income before tax 81.00% 83.00% 81.00%  
Federal        
Income Taxes [Line Items]        
Operating loss carryforwards $ 390      
Capital loss carryforwards $ 816      
Capital loss carryforwards expiration year 2030      
State        
Income Taxes [Line Items]        
Operating loss carryforwards $ 836      
Foreign Country        
Income Taxes [Line Items]        
Operating loss carryforwards $ 2,600      
Earliest Tax Year | Federal and State        
Income Taxes [Line Items]        
Operating loss carryforwards expiration year 2026      
Latest Tax Year | Federal and State        
Income Taxes [Line Items]        
Operating loss carryforwards expiration year 2045