<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:bift="http://www.BaronFunds.com/20260402"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cik0000810902-20260402.xsd" xlink:type="simple"/>
    <context id="DefaultContext">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000810902</identifier>
        </entity>
        <period>
            <startDate>2025-09-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="S000000583Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000810902</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">bift:S000000583Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="DefaultContext"
      id="h3_89c46dd3_a23a_484b_acbb_5e8c7c2f71cc">false</dei:AmendmentFlag>
    <dei:DocumentPeriodEndDate
      contextRef="DefaultContext"
      id="h8_1fbffc9b_53fd_493d_bee6_ac119edb7053">2025-09-30</dei:DocumentPeriodEndDate>
    <dei:DocumentType
      contextRef="DefaultContext"
      id="h7_674a4b4d_11d2_4aa9_b96d_14a123bda7ae">497</dei:DocumentType>
    <dei:EntityCentralIndexKey
      contextRef="DefaultContext"
      id="h1_0e921185_1e84_4273_a180_68e388a03c37">0000810902</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="DefaultContext"
      id="h2_28ac53b4_51a6_4fc4_8a8f_e21364bae2c8">BARON INVESTMENT FUNDS TRUST (f/k/a BARON ASSET FUND) </dei:EntityRegistrantName>
    <dei:EntityInvCompanyType
      contextRef="DefaultContext"
      id="h_1_5ceab1da-3c67-9d45-b3de-6c48cd71dc41">N-1A</dei:EntityInvCompanyType>
    <oef:SupplementToProspectusTextBlock
      contextRef="DefaultContext"
      id="t_1_f7a43150_1f59_364b_82ff_50915165aaa5">  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri; font-weight: bold; text-align: center;"&gt;BARON INVESTMENT FUNDS TRUST&lt;sup style="font-size: 75%; vertical-align: top;"&gt;&#xae;&lt;/sup&gt;&lt;/div&gt;   &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri; text-align: center;"&gt;Supplement to the Summary Prospectus, Prospectus and Statement of Additional Information (&#x201c;SAI&#x201d;) dated January&#160;28, 2026, as supplemented&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri;"&gt;The Summary Prospectus, Prospectus and SAI are hereby revised as follows:&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; text-indent: 9%; font-size: 10pt; font-family: calibri; font-weight: bold;"&gt;Effective June&#160;1, 2026, Baron Growth Fund&#x2019;s name will change to Baron Generational Growth Fund. Accordingly, effective June&#160;1, 2026, all references to Baron Growth Fund (the &#x201c;Fund&#x201d;) in the Fund&#x2019;s Summary Prospectus, Prospectus and Statement of Additional Information will be replaced with Baron Generational Growth Fund.&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri;"&gt;The Summary Prospectus and Prospectus are hereby revised as follows:&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; text-indent: 9%; font-size: 10pt; font-family: calibri; font-weight: bold;"&gt;Effective June&#160;1, 2026, the principal investment strategies of Baron Generational Growth Fund (the &#x201c;Fund&#x201d;) are hereby replaced in their entirety by the following:&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri;"&gt;Principal Investment Strategies of the Fund&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; text-indent: 9%; font-size: 10pt; font-family: calibri;"&gt;The Fund is a diversified fund that, under normal circumstances, invests primarily in equity securities of U.S. small-sized growth companies. BAMCO, Inc. (&#x201c;BAMCO&#x201d; or the &#x201c;Adviser&#x201d;) defines small-sized companies as those, at the time of purchase, with market capitalizations up to the largest market cap stock in the Russell 2000 Growth Index at reconstitution. The Adviser seeks to invest in businesses it believes have significant opportunities for growth, sustainable competitive advantages, exceptional management, and an attractive valuation. Because of its long-term approach, the Fund could have a significant percentage of its assets invested in securities that have appreciated beyond their market capitalizations at the time of the Fund&#x2019;s investment, and the Fund may continue to add to its investments in those securities even if their market capitalizations exceed the largest market cap stock in the Russell 2000 Growth Index at reconstitution.&lt;/div&gt; </oef:SupplementToProspectusTextBlock>
    <oef:SupplementToProspectusTextBlock
      contextRef="S000000583Member"
      id="t_2_1dcfd8a3_12ec_e8b3_bd62_36b9bc5efe1f"> &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri; font-weight: bold; text-align: center;"&gt;BARON INVESTMENT FUNDS TRUST&lt;sup style="font-size: 75%; vertical-align: top;"&gt;&#xae;&lt;/sup&gt;&lt;/div&gt;   &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri; text-align: center;"&gt;Supplement to the Summary Prospectus, Prospectus and Statement of Additional Information (&#x201c;SAI&#x201d;) dated January&#160;28, 2026, as supplemented&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri;"&gt;The Summary Prospectus, Prospectus and SAI are hereby revised as follows:&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; text-indent: 9%; font-size: 10pt; font-family: calibri; font-weight: bold;"&gt;Effective June&#160;1, 2026, Baron Growth Fund&#x2019;s name will change to Baron Generational Growth Fund. Accordingly, effective June&#160;1, 2026, all references to Baron Growth Fund (the &#x201c;Fund&#x201d;) in the Fund&#x2019;s Summary Prospectus, Prospectus and Statement of Additional Information will be replaced with Baron Generational Growth Fund.&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri;"&gt;The Summary Prospectus and Prospectus are hereby revised as follows:&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; text-indent: 9%; font-size: 10pt; font-family: calibri; font-weight: bold;"&gt;Effective June&#160;1, 2026, the principal investment strategies of Baron Generational Growth Fund (the &#x201c;Fund&#x201d;) are hereby replaced in their entirety by the following:&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: calibri;"&gt;Principal Investment Strategies of the Fund&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; text-indent: 9%; font-size: 10pt; font-family: calibri;"&gt;The Fund is a diversified fund that, under normal circumstances, invests primarily in equity securities of U.S. small-sized growth companies. BAMCO, Inc. (&#x201c;BAMCO&#x201d; or the &#x201c;Adviser&#x201d;) defines small-sized companies as those, at the time of purchase, with market capitalizations up to the largest market cap stock in the Russell 2000 Growth Index at reconstitution. The Adviser seeks to invest in businesses it believes have significant opportunities for growth, sustainable competitive advantages, exceptional management, and an attractive valuation. Because of its long-term approach, the Fund could have a significant percentage of its assets invested in securities that have appreciated beyond their market capitalizations at the time of the Fund&#x2019;s investment, and the Fund may continue to add to its investments in those securities even if their market capitalizations exceed the largest market cap stock in the Russell 2000 Growth Index at reconstitution.&lt;/div&gt;  </oef:SupplementToProspectusTextBlock>
    <oef:ProspectusDate
      contextRef="DefaultContext"
      id="t_3_a80833a0_bad8_f10d_d0ba_c613e34fdeac">2026-01-28</oef:ProspectusDate>
</xbrl>
