v3.25.4

Investments - Schedule of Cash and Cash Equivalents and Securities Available for Sale (Details) - USD ($) $ in Thousands | Dec. 31, 2025 | Jun. 30, 2025
--- | --- | ---
Marketable Securities [Line Items] |  |
Marketable securities | $ 786,557 | $ 963,397
Money market funds | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 63,182 | 70,920
Agency bonds |  |
Marketable Securities [Line Items] |  |
Marketable securities | 5,051 | 7,854
Agency bonds | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 0 | 3,493
Commercial paper |  |
Marketable Securities [Line Items] |  |
Marketable securities | 63,943 | 126,761
Commercial paper | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 0 | 12,564
Government bonds - US |  |
Marketable Securities [Line Items] |  |
Marketable securities | 274,274 | 344,434
Government bonds - US | Asset Pledged as Collateral |  |
Marketable Securities [Line Items] |  |
Marketable securities | 99,800 | 75,400
Government bonds - US | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 0 | 4,995
Certificates of deposit |  |
Marketable Securities [Line Items] |  |
Marketable securities | 36,552 | 39,008
Corporate bonds |  |
Marketable Securities [Line Items] |  |
Marketable securities | 242,177 | 264,199
Municipal bonds |  |
Marketable Securities [Line Items] |  |
Marketable securities | 8,435 | 6,076
Government bonds, Non-US |  |
Marketable Securities [Line Items] |  |
Marketable securities | 2,181 | 5,340
Securitization notes receivable and certificates |  |
Marketable Securities [Line Items] |  |
Marketable securities | 80,080 | 75,469
Securitization notes receivable and certificates | Asset Pledged as Collateral |  |
Marketable Securities [Line Items] |  |
Marketable securities | 15,100 | 34,500
Residual interests in structured transactions |  |
Marketable Securities [Line Items] |  |
Marketable securities | 5,436 | 2,284
Other |  |
Marketable Securities [Line Items] |  |
Marketable securities | $ 5,246 | $ 0

X
- Definition Amount of investment in marketable security. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_MarketableSecurities
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 No definition available. + Details
Name: | us-gaap_MarketableSecuritiesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MoneyMarketFundsMember
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: |

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_CommercialPaperMember
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_PledgedStatusAxis=us-gaap_AssetPledgedAsCollateralMember
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_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=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: |