v3.26.3
Equity Incentive Plans - Schedule of Components and Classification of Stock-Based Compensation (Details) - USD ($)
$ in Thousands
3 Months Ended
Sep. 30, 2026
Sep. 30, 2025
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Total stock-based compensation in operating expenses $ 55,702 $ 85,853
Capitalized into property, equipment and software, net 29,414 52,885
Total stock-based compensation 85,116 138,738
Location, Statement of Income, Balance [Axis]: us-gaap:GeneralAndAdministrativeExpense    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Total stock-based compensation in operating expenses 36,542 55,773
Location, Statement of Income, Balance [Axis]: us-gaap:SellingAndMarketingExpense    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Total stock-based compensation in operating expenses 2,548 5,076
Location, Statement of Income, Balance [Axis]: afrm:ProcessingAndServicingExpense    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Total stock-based compensation in operating expenses 162 240
Location, Statement of Income, Balance [Axis]: afrm:TechnologyAndDataAnalyticsExpense    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Total stock-based compensation in operating expenses $ 16,449 $ 24,764