<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>666</ContextCount>
  <ElementCount>537</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>140</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>13</UnitCount>
  <MyReports>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONDENSED CONSOLIDATED STATEMENT OF STOCKHOLDERS??? EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENT OF STOCKHOLDERS??? EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Disclosure - Business Description</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BusinessDescription</Role>
      <ShortName>Business Description</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/Revenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Loans Held for Investment and Allowance for Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLosses</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Balance Sheet Components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponents</Role>
      <ShortName>Balance Sheet Components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Securitization and Variable Interest Entities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SecuritizationandVariableInterestEntities</Role>
      <ShortName>Securitization and Variable Interest Entities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DerivativeFinancialInstruments</Role>
      <ShortName>Derivative Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Fair Value of Financial Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilities</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Equity Incentive Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlans</Role>
      <ShortName>Equity Incentive Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholders</Role>
      <ShortName>Net Income (Loss) per Share Attributable to Common Stockholders</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.affirm.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/RevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/Revenue</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Loans Held for Investment and Allowance for Credit Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesTables</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLosses</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Balance Sheet Components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsTables</Role>
      <ShortName>Balance Sheet Components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/BalanceSheetComponents</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/Leases</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/Debt</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Securitization and Variable Interest Entities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SecuritizationandVariableInterestEntitiesTables</Role>
      <ShortName>Securitization and Variable Interest Entities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/SecuritizationandVariableInterestEntities</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/Investments</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/DerivativeFinancialInstruments</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Fair Value of Financial Assets and Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesTables</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilities</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/StockholdersEquity</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Equity Incentive Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlansTables</Role>
      <ShortName>Equity Incentive Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/EquityIncentivePlans</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersTables</Role>
      <ShortName>Net Income (Loss) per Share Attributable to Common Stockholders (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholders</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Revenue - Schedule of Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/RevenueScheduleofDisaggregationofRevenueDetails</Role>
      <ShortName>Revenue - Schedule of Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Revenue - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/RevenueAdditionalInformationDetails</Role>
      <ShortName>Revenue - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Revenue - Schedule of Interest Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails</Role>
      <ShortName>Revenue - Schedule of Interest Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Loans Held for Investment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Schedule of Loans Held for Investment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Loans Held for Investment by Delinquency (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentbyDelinquencyDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Schedule of Loans Held for Investment by Delinquency (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Net Charge Offs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofNetChargeOffsDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Schedule of Net Charge Offs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Allowance for Credit Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAllowanceforCreditLossDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Schedule of Allowance for Credit Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Amortized Cost Basis of Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAmortizedCostBasisofLoansDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Schedule of Amortized Cost Basis of Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Delinquency Status of Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofDelinquencyStatusofLoansDetails</Role>
      <ShortName>Loans Held for Investment and Allowance for Credit Losses - Schedule of Delinquency Status of Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Balance Sheet Components - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsAdditionalInformationDetails</Role>
      <ShortName>Balance Sheet Components - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Balance Sheet Components - Schedule of Property, Equipment and Software, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails</Role>
      <ShortName>Balance Sheet Components - Schedule of Property, Equipment and Software, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Balance Sheet Components - Schedule of Changes in the Carrying Amount of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsScheduleofChangesintheCarryingAmountofGoodwillDetails</Role>
      <ShortName>Balance Sheet Components - Schedule of Changes in the Carrying Amount of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Balance Sheet Components - Schedule of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails</Role>
      <ShortName>Balance Sheet Components - Schedule of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Balance Sheet Components - Schedule of Other Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsScheduleofOtherAssetsDetails</Role>
      <ShortName>Balance Sheet Components - Schedule of Other Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Balance Sheet Components - Schedule of Accrued Expenses and Other Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails</Role>
      <ShortName>Balance Sheet Components - Schedule of Accrued Expenses and Other Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Leases - Schedule of Components of Lease Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LeasesScheduleofComponentsofLeaseExpenseDetails</Role>
      <ShortName>Leases - Schedule of Components of Lease Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Leases - Schedule of Lease Term and Discount Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LeasesScheduleofLeaseTermandDiscountRateDetails</Role>
      <ShortName>Leases - Schedule of Lease Term and Discount Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Leases - Schedule of Future Minimum Lease Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails</Role>
      <ShortName>Leases - Schedule of Future Minimum Lease Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.affirm.com/role/CommitmentsandContingencies</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Debt - Schedule of Components Secured and Unsecured Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DebtScheduleofComponentsSecuredandUnsecuredDebtDetails</Role>
      <ShortName>Debt - Schedule of Components Secured and Unsecured Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Debt - Schedule of Aggregate Future Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DebtScheduleofAggregateFutureMaturitiesDetails</Role>
      <ShortName>Debt - Schedule of Aggregate Future Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Debt - Schedule of Interest Expense Recognized Related to the Convertible Senior Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.affirm.com/role/DebtScheduleofInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails</Role>
      <ShortName>Debt - Schedule of Interest Expense Recognized Related to the Convertible Senior Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Securitizations and Variable Interest Entities - Schedule of Aggregate Carrying Value of Financial Assets and Liabilities from VIEs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofAggregateCarryingValueofFinancialAssetsandLiabilitiesfromVIEsDetails</Role>
      <ShortName>Securitizations and Variable Interest Entities - Schedule of Aggregate Carrying Value of Financial Assets and Liabilities from VIEs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Securitizations and Variable Interest Entities - Schedule of Variable Interest Entities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofVariableInterestEntitiesDetails</Role>
      <ShortName>Securitizations and Variable Interest Entities - Schedule of Variable Interest Entities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Investments - Schedule of Cash and Cash Equivalents and Securities Available for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/InvestmentsScheduleofCashandCashEquivalentsandSecuritiesAvailableforSaleDetails</Role>
      <ShortName>Investments - Schedule of Cash and Cash Equivalents and Securities Available for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Investments - Schedule of Securities Available for Sale at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleatFairValueDetails</Role>
      <ShortName>Investments - Schedule of Securities Available for Sale at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Investments - Schedule of Securities Available for Sale With Unrealized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleWithUnrealizedLossesDetails</Role>
      <ShortName>Investments - Schedule of Securities Available for Sale With Unrealized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Investments - Schedule of Contractual Maturities of Securities Available for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/InvestmentsScheduleofContractualMaturitiesofSecuritiesAvailableforSaleDetails</Role>
      <ShortName>Investments - Schedule of Contractual Maturities of Securities Available for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Investments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/InvestmentsAdditionalInformationDetails</Role>
      <ShortName>Investments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Derivative Financial Instruments - Schedule of Fair Value of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofFairValueofDerivativeInstrumentsDetails</Role>
      <ShortName>Derivative Financial Instruments - Schedule of Fair Value of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Derivative Financial Instruments - Schedule of Impact of the Cash Flow Hedges on Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheCashFlowHedgesonAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Derivative Financial Instruments - Schedule of Impact of the Cash Flow Hedges on Accumulated Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Derivative Financial Instruments - Schedule of Impact of the Derivative Instruments on Consolidated Statements of Operations and Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheDerivativeInstrumentsonConsolidatedStatementsofOperationsandComprehensiveIncomeLossDetails</Role>
      <ShortName>Derivative Financial Instruments - Schedule of Impact of the Derivative Instruments on Consolidated Statements of Operations and Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Fair Value of Financial Assets and Liabilities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Aggregate Fair Value of Servicing Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAggregateFairValueofServicingAssetsDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Aggregate Fair Value of Servicing Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Aggregate Fair Value of Servicing Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAggregateFairValueofServicingLiabilitiesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Aggregate Fair Value of Servicing Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Servicing Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofServicingAssetsandLiabilitiesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Servicing Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Servicing Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofServicingAssetsandLiabilitiesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Servicing Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of the Performance Fee Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofthePerformanceFeeLiabilityDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of the Performance Fee Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Performance Fee Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofPerformanceFeeLiabilityDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Performance Fee Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Notes and Residual Trust Certificates (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofNotesandResidualTrustCertificatesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Notes and Residual Trust Certificates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Notes and Residual Trust Certificates (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofNotesandResidualTrustCertificatesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Notes and Residual Trust Certificates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Notes Receivable and Residual Trust Certificates (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofNotesReceivableandResidualTrustCertificatesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Notes Receivable and Residual Trust Certificates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofAssetsDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Residual Interests in Structured Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofResidualInterestsinStructuredTransactionsDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Residual Interests in Structured Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Residual Interests in Structured Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofResidualInterestsinStructuredTransactionsDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Residual Interests in Structured Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Profit Share Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofProfitShareLiabilityDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Profit Share Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Quantitative Information About Significant Unobservable Inputs for Profit Share Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofQuantitativeInformationAboutSignificantUnobservableInputsforProfitShareLiabilityDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Quantitative Information About Significant Unobservable Inputs for Profit Share Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Risk Sharing Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofRiskSharingAssetsandLiabilitiesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Risk Sharing Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used in Risk Sharing Arrangement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedinRiskSharingArrangementDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used in Risk Sharing Arrangement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Risk Sharing Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofRiskSharingAssetsandLiabilitiesDetails</Role>
      <ShortName>Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Risk Sharing Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - 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)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueofFinancialAssetsandLiabilitiesScheduleofFairValueHierarchyforFinancialAssetsandLiabilitiesHeldatAmortizedCostDetailsDetails</Role>
      <ShortName>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)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - Stockholders' Equity - Schedule of Common Stock Reserved for Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/StockholdersEquityScheduleofCommonStockReservedforIssuanceDetails</Role>
      <ShortName>Stockholders' Equity - Schedule of Common Stock Reserved for Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - Stockholders??? Equity - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/StockholdersEquityAdditionalInformationDetails</Role>
      <ShortName>Stockholders??? Equity - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955581 - Disclosure - Stockholders??? Equity - Schedule of Warrant Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/StockholdersEquityScheduleofWarrantActivityDetails</Role>
      <ShortName>Stockholders??? Equity - Schedule of Warrant Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955582 - Disclosure - Equity Incentive Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlansAdditionalInformationDetails</Role>
      <ShortName>Equity Incentive Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955583 - Disclosure - Equity Incentive Plans - Schedule of Stock Option Activity And Value Creation Award activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlansScheduleofStockOptionActivityAndValueCreationAwardactivityDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of Stock Option Activity And Value Creation Award activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955584 - Disclosure - Equity Incentive Plans - Schedule of RSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlansScheduleofRSUActivityDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of RSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955585 - Disclosure - Equity Incentive Plans - Schedule of PSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlansScheduleofPSUActivityDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of PSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955586 - Disclosure - Equity Incentive Plans - Schedule of Components and Classification of Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockBasedCompensationDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of Components and Classification of Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955587 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.affirm.com/role/IncomeTaxes</ParentRole>
      <Position>102</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955588 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Basic and Diluted Net Income (Loss) Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetIncomeLossPerShareDetails</Role>
      <ShortName>Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Basic and Diluted Net Income (Loss) Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersTables</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9955589 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Calculation of Diluted Net Income (Loss) Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofCalculationofDilutedNetIncomeLossPerShareDetails</Role>
      <ShortName>Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Calculation of Diluted Net Income (Loss) Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersTables</ParentRole>
      <Position>104</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9955590 - Disclosure - Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SegmentInformationDetails</Role>
      <ShortName>Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.affirm.com/role/SegmentInformation</ParentRole>
      <Position>105</Position>
    </Report>
    <Report instance="afrm-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9955591 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affirm.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.affirm.com/role/SubsequentEvents</ParentRole>
      <Position>106</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="afrm-20251231.htm">afrm-20251231.htm</File>
    <File>afrm-20251231.xsd</File>
    <File>afrm-20251231_cal.xml</File>
    <File>afrm-20251231_def.xml</File>
    <File>afrm-20251231_lab.xml</File>
    <File>afrm-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1946">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="31">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="27">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>