v3.25.4

Investments - Schedule of Securities Available for Sale at Fair Value (Details) - USD ($) $ in Thousands | Dec. 31, 2025 | Jun. 30, 2025
--- | --- | ---
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | $ 721,736 | $ 892,168
Gross Unrealized Gains | 2,466 | 1,467
Gross Unrealized Losses | (258) | (217)
Allowance for Credit Losses | (569) | (941)
Securities, available for sale: | 723,375 | 892,477
Other Receivables | Asset Pledged as Collateral | 2021-Z1 and 2021-Z2 | Repurchase Agreement |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 15,100 | 34,500
Certificates of deposit |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 36,500 | 38,990
Gross Unrealized Gains | 52 | 18
Gross Unrealized Losses | 0 | 0
Allowance for Credit Losses | 0 | 0
Securities, available for sale: | 36,552 | 39,008
Corporate bonds |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 241,356 | 263,495
Gross Unrealized Gains | 821 | 759
Gross Unrealized Losses | 0 | (55)
Allowance for Credit Losses | 0 | 0
Securities, available for sale: | 242,177 | 264,199
Commercial paper |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 63,869 |
Gross Unrealized Gains | 74 | 7
Gross Unrealized Losses | 0 | (18)
Allowance for Credit Losses | 0 |
Securities, available for sale: | 63,943 | 126,761
Including cash, amortized cost |  | 139,336
Including cash, allowance for credit losses |  | 0
Including cash, fair value |  | 139,325
Agency bonds |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 5,049 |
Gross Unrealized Gains | 2 | 0
Gross Unrealized Losses | 0 | (11)
Allowance for Credit Losses | 0 |
Securities, available for sale: | 5,051 | 7,854
Including cash, amortized cost |  | 11,358
Including cash, allowance for credit losses |  | 0
Including cash, fair value |  | 11,347
Municipal bonds |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 8,410 | 6,057
Gross Unrealized Gains | 25 | 19
Gross Unrealized Losses | 0 | 0
Allowance for Credit Losses | 0 | 0
Securities, available for sale: | 8,435 | 6,076
Government bonds, Non-US |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 2,168 | 5,331
Gross Unrealized Gains | 13 | 9
Gross Unrealized Losses | 0 | 0
Allowance for Credit Losses | 0 | 0
Securities, available for sale: | 2,181 | 5,340
US |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 273,716 |
Gross Unrealized Gains | 558 | 371
Gross Unrealized Losses | 0 | (91)
Allowance for Credit Losses | 0 |
Securities, available for sale: | 274,274 | 344,434
Including cash, amortized cost |  | 349,149
Including cash, allowance for credit losses |  | 0
Including cash, fair value |  | 349,429
US | Asset Pledged as Collateral |  |
Debt Securities, Available-for-sale [Line Items] |  |
Securities, available for sale: | 99,800 | 75,400
Securitization notes receivable and certificates |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 80,792 | 76,279
Gross Unrealized Gains | 115 | 173
Gross Unrealized Losses | (258) | (42)
Allowance for Credit Losses | (569) | (941)
Securities, available for sale: | 80,080 | 75,469
Residual interests in structured transactions |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 4,876 | 2,173
Gross Unrealized Gains | 560 | 111
Gross Unrealized Losses |  | 0
Allowance for Credit Losses | 0 | 0
Securities, available for sale: | 5,436 | 2,284
Other |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 5,000 |
Gross Unrealized Gains | 246 |
Gross Unrealized Losses | 0 |
Allowance for Credit Losses | 0 |
Securities, available for sale: | $ 5,246 |
Commercial Paper, Agency Bonds & US Government Bonds | Cash Equivalents |  |
Debt Securities, Available-for-sale [Line Items] |  |
Securities, available for sale: |  | $ 21,100

X
- Definition Debt Securities, Available-for-Sale, Including Cash, Allowance for Credit Loss, Excluding Accrued Interest + References No definition available. + Details
Name: | afrm_DebtSecuritiesAvailableForSaleIncludingCashAllowanceForCreditLossExcludingAccruedInterest
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debt Securities, Available-for-Sale, Including Cash, Amortized Cost, Excluding Accrued Interest, before Allowance for Credit Loss + References No definition available. + Details
Name: | afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Securities, Available-for-Sale, Including Cash, Excluding Accrued Interest + References No definition available. + Details
Name: | afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount excluding accrued interest, of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amortized cost excluding accrued interest, before allowance for credit loss, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (aa) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (aaa) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-3 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-3 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-3 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-3 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-3 + Details
Name: | us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=afrm_OtherReceivablesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PledgedStatusAxis=us-gaap_AssetPledgedAsCollateralMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=afrm_RepurchaseAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CertificatesOfDepositMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateBondSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_AgencySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MunicipalBondsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=afrm_NonUSGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=afrm_SecuritizationNotesReceivableAndCertificatesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=afrm_ResidualInterestsInStructuredTransactionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_OtherDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_CashEquivalentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |