v3.25.4

Stockholders’ Equity - Additional Information (Details) $ / shares in Units, $ in Millions | 3 Months Ended | 6 Months Ended |  |
--- | --- | --- | --- | ---
Dec. 31, 2025 USD ($) class vote $ / shares | Dec. 31, 2024 USD ($) | Dec. 31, 2025 USD ($) class vote $ / shares | Dec. 31, 2024 USD ($) | Nov. 30, 2025 year $ / shares | Jun. 30, 2025 $ / shares
Class of Stock [Line Items] |  |  |  |  |  |
Number of classes of common stock | class | 2 |  | 2 |  |  |
Exercise price of warrants (in USD per share) | $ 68.78 |  | $ 68.78 |  |  | $ 81.08
Commercial Agreement with Amazon, New Users Acquired Prior to February 1 |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Exercise price of warrants (in USD per share) |  |  |  |  | $ 100 |
Commercial Agreement with Amazon, Warrants, On Or After 2/1/2026 |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Exercise price of warrants (in USD per share) |  |  |  |  | $ 63.06 |
Commercial Agreement with Amazon, Warrants |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Expenses on sale of warrants | $ | $ 61.2 | $ 86.8 | $ 102.2 | $ 194.0 |  |
Unrecognized compensation expense, warrants | $ | $ 519.5 |  | $ 519.5 |  |  |
Weighted-average compensation expense recognition period, warrants |  |  | 2 years 10 months 24 days |  |  |
Commercial Agreement with Amazon, Warrants | Measurement Input, Expected Dividend Rate |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Warrants measurement input |  |  |  |  | 0 |
Commercial Agreement with Amazon, Warrants | Measurement Input, Expected Term |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Warrants measurement input | year |  |  |  |  | 3.6 |
Commercial Agreement with Amazon, Warrants | Measurement Input, Price Volatility |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Warrants measurement input |  |  |  |  | 0.94 |
Commercial Agreement with Amazon, Warrants | Measurement Input, Risk Free Interest Rate |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Warrants measurement input |  |  |  |  | 0.0363 |
Class A common stock |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Number of votes per share | vote | 1 |  | 1 |  |  |
Common stock, conversion ratio (in shares) | 1 |  | 1 |  |  |
Class B common stock |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |
Number of votes per share | vote | 15 |  | 15 |  |  |

X
- Definition Class of Warrant or Right, Cost Not Yet Recognized, Period For Recognition + References No definition available. + Details
Name: | afrm_ClassOfWarrantOrRightCostNotYetRecognizedPeriodForRecognition
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Class of Warrant or Right, Unrecognized Compensation Expense + References No definition available. + Details
Name: | afrm_ClassOfWarrantOrRightUnrecognizedCompensationExpense
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Class Of Warrants Or Rights, Expenses On Grant Date Fair Value On Sale Of Warrants + References No definition available. + Details
Name: | afrm_ClassOfWarrantsOrRightsExpensesOnGrantDateFairValueOnSaleOfWarrants
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Common Stock, Conversion Ratio + References No definition available. + Details
Name: | afrm_CommonStockConversionRatio
Namespace Prefix: | afrm_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Common Stock, Voting Rights, Number Of Votes Per Share + References No definition available. + Details
Name: | afrm_CommonStockVotingRightsNumberOfVotesPerShare
Namespace Prefix: | afrm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number Of Classes Of Common Stock + References No definition available. + Details
Name: | afrm_NumberOfClassesOfCommonStock
Namespace Prefix: | afrm_
Data Type: | xbrli:integerItemType
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/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-8A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480738/235-10-S50-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-1 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 6: http://www.xbrl.org/2003/role/recommendedDisclosureRef -Topic 272 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483014/272-10-45-3 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 272 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482987/272-10-50-1 Reference 8: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(d)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 14 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-14 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-18 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)(i)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)(ii)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Exercise price per share or per unit of warrants or rights outstanding. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480738/235-10-S50-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-3 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Value of input used to measure outstanding warrant and right embodying unconditional obligation requiring redemption by transferring asset at specified or determinable date or upon event certain to occur. + 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 + Details
Name: | us-gaap_WarrantsAndRightsOutstandingMeasurementInput
Namespace Prefix: | us-gaap_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_ClassOfWarrantOrRightAxis=afrm_CommercialAgreementWithAmazonNewUsersAcquiredPriorToFebruary1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ClassOfWarrantOrRightAxis=afrm_CommercialAgreementWithAmazonNewUsersAcquiredSubsequentToFebruary1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ClassOfWarrantOrRightAxis=afrm_CommercialAgreementWithAmazonWarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |