v3.25.4

Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used in Risk Sharing Arrangement (Details) | Dec. 31, 2025 | Jun. 30, 2025
--- | --- | ---
Minimum | Discount Rate | Risk Sharing Arrangement |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing liabilities | 0.2000 | 0.2000
Minimum | Loss Rate | Risk Sharing Arrangement |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing liabilities | 0.0348 | 0.0347
Minimum | Risk Sharing Arrangement | Discount Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.0688 | 0.2000
Minimum | Risk Sharing Arrangement | Loss Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.0334 | 0.0332
Minimum | Risk Sharing Arrangement | Prepayment Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.1834 | 0.1984
Maximum | Discount Rate | Risk Sharing Arrangement |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing liabilities | 0.2000 | 0.2000
Maximum | Loss Rate | Risk Sharing Arrangement |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing liabilities | 0.0527 | 0.0535
Maximum | Risk Sharing Arrangement | Discount Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.2000 | 0.2000
Maximum | Risk Sharing Arrangement | Loss Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.0494 | 0.0491
Maximum | Risk Sharing Arrangement | Prepayment Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.2096 | 0.2289
Weighted Average | Discount Rate | Risk Sharing Arrangement |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing liabilities | 0.2000 | 0.2000
Weighted Average | Loss Rate | Risk Sharing Arrangement |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing liabilities | 0.0446 | 0.0442
Weighted Average | Risk Sharing Arrangement | Discount Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.1768 | 0.2000
Weighted Average | Risk Sharing Arrangement | Loss Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.0415 | 0.0413
Weighted Average | Risk Sharing Arrangement | Prepayment Rate |  |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] |  |
Risk sharing assets | 0.1968 | 0.2134

X
- Definition Value of input used to measure derivative asset. + References Reference 1: 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 2: 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 3: 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 4: 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_DerivativeAssetMeasurementInput
Namespace Prefix: | us-gaap_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | instant

X
- Definition Value of input used to measure derivative liability. + References Reference 1: 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 2: 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 3: 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_DerivativeLiabilityMeasurementInput
Namespace Prefix: | us-gaap_
Data Type: | xbrli:decimalItemType
Balance Type: | na
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: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=afrm_RiskSharingArrangementMember
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: |

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

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