<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001820953</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001820953</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001820953</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-189">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-190">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-191">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-192">0001820953</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-193">Affirm Holdings, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-196">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-197">false</ffd:PrevslyPdFlg>
    <ffd:FormTp contextRef="rc" id="ixv-231">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-232">Affirm Holdings, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-233">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-234">Class A Common Stock, par value $0.00001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457aFlg contextRef="offrl_1" id="ixv-235">true</ffd:Rule457aFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-236"
      unitRef="Shares">16858785</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="2"
      id="ixv-237"
      unitRef="USD">75.05</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-238"
      unitRef="USD">1265251814.25</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-239"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-240"
      unitRef="USD">174731.28</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-241">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-242">Class A Common Stock, par value $0.00001 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457aFlg contextRef="offrl_2" id="ixv-243">true</ffd:Rule457aFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_2"
      decimals="0"
      id="ixv-244"
      unitRef="Shares">3371757</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_2"
      decimals="2"
      id="ixv-245"
      unitRef="USD">64.62</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-246"
      unitRef="USD">217882937.34</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-247"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-248"
      unitRef="USD">30089.63</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-249" unitRef="USD">1483134751.59</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-250" unitRef="USD">204820.91</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-251" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-252" unitRef="USD">204820.91</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-253">Amount Registered (applies to Offering Lines 1 and 2): Pursuant to Rule 416(a) promulgated under the Securities Act of 1933, as amended (the Securities Act), this Registration Statement on Form S-8 shall also cover any additional shares of Affirm Holdings, Inc. Class A common stock, $0.00001 par value per share (the Common Stock), that become issuable under the Affirm Holdings, Inc. Amended and Restated 2012 Stock Plan (the 2012 Stock Plan) and the Affirm Holdings, Inc. 2020 Employee Stock Purchase Plan (the 2020 ESPP) by reason of any stock dividend, stock split, recapitalization, or other similar transaction effected that results in an increase to the number of outstanding shares of Common Stock, as applicable. 

Represents 16,858,785 additional shares of Common Stock available for future issuance under the 2012 Stock Plan resulting from the automatic annual increase in the number of authorized shares of Common Stock reserved and available for issuance under the 2012 Stock Plan. The Proposed Maximum Offering Price Per Unit and the Maximum Aggregate Offering Price are estimated in accordance with Rules 457(c) and 457(h) under the Securities Act solely for the purpose of calculating the registration fee, based on the average of the high and low sales prices per share of Common Stock as reported on The Nasdaq Global Select Market on August 20, 2026 of $75.05 per share.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-254">Represents 3,371,757 additional shares of Common Stock reserved for future issuance under the 2020 ESPP resulting from the automatic annual increase in the number of authorized shares of Common Stock reserved and available for issuance under the 2020 ESPP. The Proposed Maximum Offering Price Per Unit and the Maximum Aggregate Offering Price are estimated in accordance with Rules 457(c) and 457(h) under the Securities Act solely for the purpose of calculating the registration fee, based on 85% of the average of the high and low sales prices per share of Common Stock as reported on Nasdaq on August 20, 2026 of $64.62 per share. Pursuant to the 2020 ESPP, the purchase price of a share of Common Stock is 85% of the fair market value of the Common Stock.</ffd:OfferingNote>
</xbrl>
