v3.25.4

Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Residual Interests in Structured Transactions (Details) - USD ($) $ in Thousands | Dec. 31, 2025 | Jun. 30, 2025
--- | --- | ---
Discount Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Discount Rate increase of 20% | $ (374) | $ (181)
Discount Rate increase of 40% | (712) | (343)
Default Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Default Rate increase of 20% | (25) | (28)
Default Rate increase of 40% | (57) | (50)
Prepayment Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Prepayment Rate increase of 20% | (73) | (35)
Prepayment Rate increase of 40% | $ (134) | $ (64)

X
- Definition Sensitivity Analysis of Fair Value, Residual Interests In Structured Transactions, Impact of 20 Percent Adverse Change In Default Rate + References No definition available. + Details
Name: | afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDefaultRate
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Sensitivity Analysis of Fair Value, Residual Interests In Structured Transactions, Impact of 20 Percent Adverse Change in Discount Rate + References No definition available. + Details
Name: | afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDiscountRate
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Sensitivity Analysis of Fair Value, Residual Interests In Structured Transactions, Impact of 20 Percent Adverse Change in Prepayment Speed + References No definition available. + Details
Name: | afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInPrepaymentSpeed
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Sensitivity Analysis of Fair Value, Residual Interests In Structured Transactions, Impact of 40 Percent Adverse Change In Default Rate + References No definition available. + Details
Name: | afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDefaultRate
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Sensitivity Analysis of Fair Value, Residual Interests In Structured Transactions, Impact of 40 Percent Adverse Change in Discount Rate + References No definition available. + Details
Name: | afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDiscountRate
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Sensitivity Analysis of Fair Value, Residual Interests In Structured Transactions, Impact of 40 Percent Adverse Change in Prepayment Speed + References No definition available. + Details
Name: | afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInPrepaymentSpeed
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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/exampleRef -Topic 805 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479328/805-10-50-8 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 805 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 43 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479303/805-10-55-43 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 103 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-103 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_MeasurementInputTypeAxis=us-gaap_MeasurementInputDiscountRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MeasurementInputTypeAxis=us-gaap_MeasurementInputDefaultRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MeasurementInputTypeAxis=us-gaap_MeasurementInputPrepaymentRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |