v3.25.4

Fair Value of Financial Assets and Liabilities - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value Hierarchy for Financial Assets and Liabilities Held at Amortized Cost (Details) (Details) - USD ($) $ in Thousands | Dec. 31, 2025 | Jun. 30, 2025
--- | --- | ---
Level 1 |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Loans held for sale | $ 0 |
Loans held for investment, net | 0 | $ 0
Total assets | 0 | 0
Convertible senior notes, net | 0 | 0
Notes issued by securitization trusts | 0 | 0
Funding debt | 0 | 0
Total liabilities | 0 | 0
Level 2 |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Loans held for sale | 6 |
Loans held for investment, net | 0 | 0
Total assets | 6 | 0
Convertible senior notes, net | 1,241,762 | 1,205,287
Notes issued by securitization trusts | 0 | 0
Funding debt | 0 | 0
Total liabilities | 1,241,762 | 1,205,287
Level 3 |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Loans held for sale | 0 |
Loans held for investment, net | 8,970,675 | 7,085,840
Total assets | 8,970,675 | 7,085,840
Convertible senior notes, net | 0 | 0
Notes issued by securitization trusts | 4,866,377 | 4,868,980
Funding debt | 3,064,040 | 1,640,765
Total liabilities | 7,930,417 | 6,509,745
Carrying Amount |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Loans held for sale | 6 |
Loans held for investment, net | 8,295,439 | 6,628,606
Total assets | 8,295,445 | 6,628,606
Convertible senior notes, net | 1,127,658 | 1,153,000
Notes issued by securitization trusts | 4,834,736 | 4,833,855
Funding debt | 3,046,846 | 1,622,808
Total liabilities | 9,009,240 | 7,609,663
Carrying Amount | 2026 Notes |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Convertible senior notes, net | 220,900 | 247,900
Carrying Amount | 2029 Notes |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Convertible senior notes, net | 906,800 | 905,100
Balance at Fair Value |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Loans held for sale | 6 |
Loans held for investment, net | 8,970,675 | 7,085,840
Total assets | 8,970,681 | 7,085,840
Convertible senior notes, net | 1,241,762 | 1,205,287
Notes issued by securitization trusts | 4,866,377 | 4,868,980
Funding debt | 3,064,040 | 1,640,765
Total liabilities | 9,172,179 | 7,715,032
Balance at Fair Value | 2026 Notes |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Convertible senior notes, net | 211,400 | 232,700
Balance at Fair Value | 2029 Notes |  |
Fair Value Disclosure, Asset and Liability, Not Measured at Fair Value [Line Items] |  |
Convertible senior notes, net | $ 1,000,000 | $ 972,600

X
- Definition Debt Liabilities, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_DebtLiabilitiesFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Financing Receivable Assets, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_FinancingReceivableAssetsFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Financing Receivable, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_FinancingReceivableFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Financing Receivable, Held For Sale, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_FinancingReceivableHeldForSaleFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of borrowing which can be exchanged for a specified number of another security at the option of the issuer or the holder, for example, but not limited to, the entity's common stock. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -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 2: http://www.xbrl.org/2009/role/commonPracticeRef -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 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -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/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 28 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-28 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-10 Reference 8: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 9: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2E -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2E + Details
Name: | us-gaap_ConvertibleDebtFairValueDisclosures
Namespace Prefix: | us-gaap_
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/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2E -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2E + Details
Name: | us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value portion of contractual arrangement with a lender under which borrowings can be made up to a specific amount at any point in time. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 28 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-28 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-10 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2E -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2E + Details
Name: | us-gaap_LinesOfCreditFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value portion of notes payable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(20)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 28 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-28 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-10 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 8: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2E -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2E Reference 9: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_NotesPayableFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByMeasurementBasisAxis=us-gaap_CarryingReportedAmountFairValueDisclosureMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_ConvertibleSeniorNotesDue2026Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_ConvertibleSeniorNotesDue2029Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByMeasurementBasisAxis=us-gaap_EstimateOfFairValueFairValueDisclosureMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |