v3.26.1
Equity Incentive Plans - Schedule of Components and Classification of Stock-based Compensation (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Total stock-based compensation in operating expenses $ 304,671 $ 321,433 $ 344,511
Capitalized into property, equipment and software, net 179,842 178,461 126,510
Total stock-based compensation 484,513 499,894 471,021
Income Statement Location [Axis]: us-gaap:GeneralAndAdministrativeExpense      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Total stock-based compensation in operating expenses 195,746 216,323 228,334
Income Statement Location [Axis]: us-gaap:SellingAndMarketingExpense      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Total stock-based compensation in operating expenses 16,026 16,535 16,374
Income Statement Location [Axis]: afrm:ProcessingAndServicingExpense      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Total stock-based compensation in operating expenses 882 868 3,207
Income Statement Location [Axis]: afrm:TechnologyAndDataAnalyticsExpense      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Total stock-based compensation in operating expenses $ 92,017 $ 87,707 $ 96,596