v3.25.4

Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Calculation of Diluted Net Income (Loss) Per Share (Details) - shares | 3 Months Ended | 6 Months Ended
--- | --- | ---
Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2025 | Dec. 31, 2024
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |  |  |  |
Antidilutive common stock equivalents excluded from diluted net income (loss) per share (in shares) | 9,554,485 | 8,148,887 | 9,554,485 | 45,414,332
Common stock warrants |  |  |  |
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |  |  |  |
Antidilutive common stock equivalents excluded from diluted net income (loss) per share (in shares) | 8,647,629 | 6,278,501 | 8,647,629 | 6,278,501
Restricted stock units |  |  |  |
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |  |  |  |
Antidilutive common stock equivalents excluded from diluted net income (loss) per share (in shares) | 532,903 | 773,998 | 532,903 | 20,685,982
Employee stock purchase plan shares |  |  |  |
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |  |  |  |
Antidilutive common stock equivalents excluded from diluted net income (loss) per share (in shares) | 211,939 | 189,621 | 211,939 | 189,621
Stock options |  |  |  |
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |  |  |  |
Antidilutive common stock equivalents excluded from diluted net income (loss) per share (in shares) | 162,014 | 906,767 | 162,014 | 14,260,228
Value creation award vested shares |  |  |  |
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |  |  |  |
Antidilutive common stock equivalents excluded from diluted net income (loss) per share (in shares) | 0 | 0 | 0 | 4,000,000

X
- Definition Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 260 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482662/260-10-50-1 + Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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 260 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482662/260-10-50-1 + Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=us-gaap_WarrantMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=us-gaap_EmployeeStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=afrm_ValueCreationAwardVestedSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |