<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:bift="http://www.baroncapital.com/20260616"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:fnd="http://xbrl.sec.gov/fnd/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-20260616.xsd" xlink:type="simple"/>
    <context id="D20250930_20250930_S000000584Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000810902</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">bift:S000000584Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="D20250930_20250930_S000000586Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000810902</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">bift:S000000586Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <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>
    <dei:AmendmentFlag
      contextRef="DefaultContext"
      id="h3_eae062d0_f2e8_4f18_9916_35120d41f606">false</dei:AmendmentFlag>
    <dei:DocumentPeriodEndDate
      contextRef="DefaultContext"
      id="h8_218c881e_90a2_4d9e_855e_e86412e0f685">2025-09-30</dei:DocumentPeriodEndDate>
    <dei:DocumentType
      contextRef="DefaultContext"
      id="h7_3df33043_6736_45a4_8873_bdd0a0256d08">497</dei:DocumentType>
    <dei:EntityCentralIndexKey
      contextRef="DefaultContext"
      id="h1_76368f77_860d_413e_ad50_83552776ed73">0000810902</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="DefaultContext"
      id="h2_57d6d285_d5e1_4101_b685_2b3fc6b1dff3">BARON INVESTMENT FUNDS TRUST (f/k/a BARON ASSET FUND) </dei:EntityRegistrantName>
    <dei:EntityInvCompanyType
      contextRef="DefaultContext"
      id="h_1_cbe22062-b239-0483-86f8-656f732fae99">N-1A</dei:EntityInvCompanyType>
    <oef:SupplementToProspectusTextBlock
      contextRef="D20250930_20250930_S000000584Member"
      id="t_3_7fb8c927_4242_4287_a18e_5e1cedbf3aff">&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 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;"&gt;&lt;span style="font-weight:bold"&gt;1.&#x2003;&lt;/span&gt;&lt;span style="font-weight:bold"&gt;Effective immediately, the principal investment strategies of Baron Small Cap Fund are hereby replaced in their entirety with the following:&lt;/span&gt; &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 at least 80% of its net assets (plus any borrowings for investment purposes) in equity securities of U.S. small&#x2011;sized growth companies. BAMCO, Inc. (&#x201c;BAMCO&#x201d; or the &#x201c;Adviser&#x201d;) defines small&#x2011;sized companies as those with market capitalizations up to the largest market cap equity security in the Russell 2000 Growth Index at reconstitution, or the largest market cap equity security in the bottom 25% of the U.S. equity market by market capitalization, as measured by a broad market index such as the Russell 3000 Index, whichever is larger. 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 net assets (up to 20%) invested in securities that have appreciated beyond their market capitalizations at the time of the Fund&#x2019;s investment. &lt;/div&gt;</oef:SupplementToProspectusTextBlock>
    <oef:SupplementToProspectusTextBlock
      contextRef="D20250930_20250930_S000000586Member"
      id="t_6_5026fc21_6fe9_257a_d0f4_80fe61678576">&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 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;"&gt;&lt;span style="font-weight:bold"&gt;2.&#x2003;Effective immediately, the principal investment strategies of Baron Fifth Avenue Growth Fund are hereby replaced in their entirety with the following:&lt;/span&gt; &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. large&#x2011;sized growth companies. The Adviser defines large&#x2011;sized companies as those, at the time of purchase, with market capitalizations no smaller than the top 85th percentile by total market capitalization of the Russell 1000 Growth Index at reconstitution, or companies with market capitalizations above $10&#160;billion, whichever is smaller. &lt;/div&gt;&lt;div style="margin-top:0pt;margin-bottom:0pt;font-size:10pt;font-family:calibri;"&gt; The Adviser seeks to invest in businesses it believes have significant opportunities for growth, sustainable competitive advantages, exceptional management, and an attractive valuation. The Fund may continue to hold securities that no longer satisfy these market capitalization criteria following purchase. &lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:0pt;text-indent:9%;font-size:10pt;font-family:calibri;"&gt;The Fund, under normal market circumstances, invests at least 80% of its net assets (plus any borrowings for investment purposes) in growth companies. The Adviser defines growth companies as those included in an index that is representative of growth companies, or those that are classified as growth companies by an independent third-party financial data provider. Securities that are not included in an index or are covered by third-party data providers will be reviewed by the Adviser to determine whether the issuer exhibits characteristics of a growth company, considering historical and/or projected growth rates relative to the equity market prior to investment. &lt;/div&gt;</oef:SupplementToProspectusTextBlock>
    <oef:SupplementToProspectusTextBlock
      contextRef="DefaultContext"
      id="t_12_bd33d43f_599b_e8be_ca96_17e091605aa7">&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 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;"&gt;&lt;span style="font-weight:bold"&gt;1.&#x2003;&lt;/span&gt;&lt;span style="font-weight:bold"&gt;Effective immediately, the principal investment strategies of Baron Small Cap Fund are hereby replaced in their entirety with the following:&lt;/span&gt; &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 at least 80% of its net assets (plus any borrowings for investment purposes) in equity securities of U.S. small&#x2011;sized growth companies. BAMCO, Inc. (&#x201c;BAMCO&#x201d; or the &#x201c;Adviser&#x201d;) defines small&#x2011;sized companies as those with market capitalizations up to the largest market cap equity security in the Russell 2000 Growth Index at reconstitution, or the largest market cap equity security in the bottom 25% of the U.S. equity market by market capitalization, as measured by a broad market index such as the Russell 3000 Index, whichever is larger. 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 net assets (up to 20%) invested in securities that have appreciated beyond their market capitalizations at the time of the Fund&#x2019;s investment. &lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:0pt;text-indent:9%;font-size:10pt;font-family:calibri;"&gt;&lt;span style="font-weight:bold"&gt;2.&#x2003;Effective immediately, the principal investment strategies of Baron Fifth Avenue Growth Fund are hereby replaced in their entirety with the following:&lt;/span&gt; &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. large&#x2011;sized growth companies. The Adviser defines large&#x2011;sized companies as those, at the time of purchase, with market capitalizations no smaller than the top 85th percentile by total market capitalization of the Russell 1000 Growth Index at reconstitution, or companies with market capitalizations above $10&#160;billion, whichever is smaller. &lt;/div&gt;&lt;div style="margin-top:0pt;margin-bottom:0pt;font-size:10pt;font-family:calibri;"&gt; The Adviser seeks to invest in businesses it believes have significant opportunities for growth, sustainable competitive advantages, exceptional management, and an attractive valuation. The Fund may continue to hold securities that no longer satisfy these market capitalization criteria following purchase. &lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:0pt;text-indent:9%;font-size:10pt;font-family:calibri;"&gt;The Fund, under normal market circumstances, invests at least 80% of its net assets (plus any borrowings for investment purposes) in growth companies. The Adviser defines growth companies as those included in an index that is representative of growth companies, or those that are classified as growth companies by an independent third-party financial data provider. Securities that are not included in an index or are covered by third-party data providers will be reviewed by the Adviser to determine whether the issuer exhibits characteristics of a growth company, considering historical and/or projected growth rates relative to the equity market prior to investment. &lt;/div&gt;</oef:SupplementToProspectusTextBlock>
    <oef:ProspectusDate
      contextRef="DefaultContext"
      id="t_10_bd11afa8_dcba_6adc_d37e_1f3102846263">2026-01-28</oef:ProspectusDate>
    <oef:StrategyHeading
      contextRef="D20250930_20250930_S000000584Member"
      id="t_1_cff3c1f2_77ff_3405_e290_eafa61fa023e">Principal Investment Strategies of the Fund </oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="D20250930_20250930_S000000584Member"
      id="t_2_5201c45c_9107_8c9d_400a_a467aeb5d2af">&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 at least 80% of its net assets (plus any borrowings for investment purposes) in equity securities of U.S. small&#x2011;sized growth companies. BAMCO, Inc. (&#x201c;BAMCO&#x201d; or the &#x201c;Adviser&#x201d;) defines small&#x2011;sized companies as those with market capitalizations up to the largest market cap equity security in the Russell 2000 Growth Index at reconstitution, or the largest market cap equity security in the bottom 25% of the U.S. equity market by market capitalization, as measured by a broad market index such as the Russell 3000 Index, whichever is larger. 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 net assets (up to 20%) invested in securities that have appreciated beyond their market capitalizations at the time of the Fund&#x2019;s investment. &lt;/div&gt;</oef:StrategyNarrativeTextBlock>
    <fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock
      contextRef="D20250930_20250930_S000000584Member"
      id="t_7_afefdc13_0705_1ecd_fdb5_0c408294e91d">&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 at least 80% of its net assets (plus any borrowings for investment purposes) in equity securities of U.S. small&#x2011;sized growth companies. BAMCO, Inc. (&#x201c;BAMCO&#x201d; or the &#x201c;Adviser&#x201d;) defines small&#x2011;sized companies as those with market capitalizations up to the largest market cap equity security in the Russell 2000 Growth Index at reconstitution, or the largest market cap equity security in the bottom 25% of the U.S. equity market by market capitalization, as measured by a broad market index such as the Russell 3000 Index, whichever is larger. 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 net assets (up to 20%) invested in securities that have appreciated beyond their market capitalizations at the time of the Fund&#x2019;s investment. &lt;/div&gt;</fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock>
    <oef:StrategyHeading
      contextRef="D20250930_20250930_S000000586Member"
      id="t_4_b81f0e9e_dffe_eccd_dd43_3118242f74bf">Principal Investment Strategies of the Fund </oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="D20250930_20250930_S000000586Member"
      id="t_5_38f7181c_8e49_aa11_763a_4d15af21f19b">&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. large&#x2011;sized growth companies. The Adviser defines large&#x2011;sized companies as those, at the time of purchase, with market capitalizations no smaller than the top 85th percentile by total market capitalization of the Russell 1000 Growth Index at reconstitution, or companies with market capitalizations above $10&#160;billion, whichever is smaller. &lt;/div&gt;&lt;div style="margin-top:0pt;margin-bottom:0pt;font-size:10pt;font-family:calibri;"&gt; The Adviser seeks to invest in businesses it believes have significant opportunities for growth, sustainable competitive advantages, exceptional management, and an attractive valuation. The Fund may continue to hold securities that no longer satisfy these market capitalization criteria following purchase. &lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:0pt;text-indent:9%;font-size:10pt;font-family:calibri;"&gt;The Fund, under normal market circumstances, invests at least 80% of its net assets (plus any borrowings for investment purposes) in growth companies. The Adviser defines growth companies as those included in an index that is representative of growth companies, or those that are classified as growth companies by an independent third-party financial data provider. Securities that are not included in an index or are covered by third-party data providers will be reviewed by the Adviser to determine whether the issuer exhibits characteristics of a growth company, considering historical and/or projected growth rates relative to the equity market prior to investment. &lt;/div&gt;</oef:StrategyNarrativeTextBlock>
    <fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock
      contextRef="D20250930_20250930_S000000586Member"
      id="t_8_f83965ec_d0aa_5952_f929_98847416a3d4">&lt;div style="margin-top:12pt;margin-bottom:0pt;text-indent:9%;font-size:10pt;font-family:calibri;"&gt;The Fund, under normal market circumstances, invests at least 80% of its net assets (plus any borrowings for investment purposes) in growth companies. The Adviser defines growth companies as those included in an index that is representative of growth companies, or those that are classified as growth companies by an independent third-party financial data provider. Securities that are not included in an index or are covered by third-party data providers will be reviewed by the Adviser to determine whether the issuer exhibits characteristics of a growth company, considering historical and/or projected growth rates relative to the equity market prior to investment. &lt;/div&gt;</fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock>
    <fnd:NmRule35d1TermDfnSmryTextBlock
      contextRef="D20250930_20250930_S000000586Member"
      id="t_11_6208232a_f3d8_aa70_16cf_8d54ac2e2ff6">The Adviser defines growth companies as those included in an index that is representative of growth companies, or those that are classified as growth companies by an independent third-party financial data provider. Securities that are not included in an index or are covered by third-party data providers will be reviewed by the Adviser to determine whether the issuer exhibits characteristics of a growth company, considering historical and/or projected growth rates relative to the equity market prior to investment.</fnd:NmRule35d1TermDfnSmryTextBlock>
</xbrl>
