v3.25.4

Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Profit Share Liability (Details) - Commercial Agreement, Profit Share Liability - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2025 | Dec. 31, 2024
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |  |
Fair value at beginning of period | $ 7,592 | $ 2,015 | $ 9,323 | $ 1,974
Facilitation of loans | 675 | 4,238 | 3,822 | 5,465
Actual performance | (4,500) | (3,271) | (9,596) | (6,299)
Subsequent changes in fair value | 946 | 3,129 | 1,164 | 4,971
Fair value at end of period | $ 4,713 | $ 6,111 | $ 4,713 | $ 6,111

X
- Definition Fair Value, Measurement With Unobservable Inputs Reconciliation, Recurring Basis, Liability, Actual Gain (Loss) + References No definition available. + Details
Name: | afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityActualGainLoss
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Fair Value, Measurement With Unobservable Inputs Reconciliation, Recurring Basis, Liability, Facilitation Of Loans + References No definition available. + Details
Name: | afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityFacilitationOfLoans
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Fair Value, Measurement With Unobservable Inputs Reconciliation, Recurring Basis, Liability, Subsequent Changes To Fair Value + References No definition available. + Details
Name: | afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySubsequentChangesToFairValue
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=afrm_CommercialAgreementProfitShareLiabilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |