v3.25.4

Loans Held for Investment and Allowance for Credit Losses - Additional Information (Details) $ in Millions | 3 Months Ended | 6 Months Ended
--- | --- | ---
Dec. 31, 2025 USD ($) deferral | Dec. 31, 2024 USD ($) | Dec. 31, 2025 USD ($) deferral | Dec. 31, 2024 USD ($)
Financing Receivable, Allowance for Credit Loss [Line Items] |  |  |  |
Loans purchased | $ 10,800.0 | $ 8,100.0 | $ 19,500.0 | $ 14,500.0
Loans originated | $ 2,800.0 | $ 1,700.0 | $ 4,700.0 | $ 3,000.0
Period of suspended accrued interest past due |  |  | 120 days |
Financing receivable, modified, number of deferrals | deferral | 1 |  | 1 |
Financing receivable, modified, length of deferral term | 1 month | 1 month | 1 month | 1 month
Financing receivable, modified, length of remaining term, maximum |  |  | 24 months |
Financing receivable, excluding accrued interest, modified, subsequent default |  |  | $ 4.4 | $ 17.1
Maximum |  |  |  |
Financing Receivable, Allowance for Credit Loss [Line Items] |  |  |  |
Loan lending terms |  |  | 60 months |
Financing receivable, modified, length of deferral term |  |  | 3 months |
Financing receivable, modified, weighted average term increase from modification | 12 months | 12 months | 12 months | 12 months
Minimum |  |  |  |
Financing Receivable, Allowance for Credit Loss [Line Items] |  |  |  |
Financing receivable, modified, weighted average term increase from modification | 1 month | 1 month | 1 month | 1 month

X
- Definition Financing Receivable Excluding Accrued Interest Originated Loans + References No definition available. + Details
Name: | afrm_FinancingReceivableExcludingAccruedInterestOriginatedLoans
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Financing Receivable, Loan Term + References No definition available. + Details
Name: | afrm_FinancingReceivableLoanTerm
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Modified, Length Of Deferral Term + References No definition available. + Details
Name: | afrm_FinancingReceivableModifiedLengthOfDeferralTerm
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Modified, Length Of Remaining Term, Maximum + References No definition available. + Details
Name: | afrm_FinancingReceivableModifiedLengthOfRemainingTermMaximum
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Modified, Number Of Deferrals + References No definition available. + Details
Name: | afrm_FinancingReceivableModifiedNumberOfDeferrals
Namespace Prefix: | afrm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Financing Receivable, Threshold Period Past Due, Suspended Accrued Interest + References No definition available. + Details
Name: | afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name Regulation S-K (SK) -Number 229 -Section 1405 -Paragraph c -Publisher SEC + Details
Name: | us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, excluding accrued interest, of increase in allowance for credit loss on financing receivable from purchase of loan. Excludes financing receivable purchased with credit deterioration, loan acquired through business combination or acquisition, and net investment in lease. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, of financing receivable with payment default in current period and modified within previous 12 months preceding payment default for debtor experiencing financial difficulty. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 44 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481962/310-10-50-44 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Period of increase in weighted average maturity of financing receivable modified for debtor experiencing financial difficulty, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 12A -Publisher FASB -URI https://asc.fasb.org/1943274/2147481933/310-10-55-12A + Details
Name: | us-gaap_FinancingReceivableModifiedWeightedAverageTermIncreaseFromModification
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |