<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:ck0000799295="http://www.bny.com/20261130"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:fnd="http://xbrl.sec.gov/fnd/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ck0000799295-20261130.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000799295</identifier>
        </entity>
        <period>
            <startDate>2026-11-30</startDate>
            <endDate>2026-11-30</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000799295</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">ck0000799295:S000011516Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-11-30</startDate>
            <endDate>2026-11-30</endDate>
        </period>
    </context>
    <oef:SupplementToProspectusTextBlock contextRef="c1" id="ixv-6">&lt;p style="font-size:11.0pt; font-family:Serif; font-style:normal; text-align:right; font-weight:normal; text-decoration:none;"&gt;November 30, 2026&lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Serif; text-align:center; font-weight:bold; font-style:normal;"&gt;&lt;span style="font-size:11.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;BNY MELLON INVESTMENT FUNDS I&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:11.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;BNY Mellon Small Cap Value
Fund&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Serif; font-style:normal; text-align:center; font-weight:bold; text-decoration:none;"&gt;Supplement to Current Summary Prospectus, Prospectus and Statement of Additional
Information&lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Serif; font-style:normal; text-align:center; font-weight:bold; text-decoration:none;"&gt;IMPORTANT NOTICE REGARDING CHANGE IN INVESTMENT POLICY&lt;/p&gt;</oef:SupplementToProspectusTextBlock>
    <oef:RiskReturnHeading contextRef="c1" id="ixv-11">BNY Mellon Small Cap Value
Fund</oef:RiskReturnHeading>
    <oef:StrategyNarrativeTextBlock contextRef="c1" id="ixv-15">&lt;p style="font-size:11.0pt; font-family:Serif; font-style:normal; text-align:left; font-weight:normal; text-decoration:none;"&gt;Effective
February 1, 2027 (the "Effective Date"), the following information will supersede and replace the information
in the first paragraph in the sections "Principal Investment Strategy" in the summary prospectus and
"Fund Summary &#x2013; Principal Investment Strategy" in the prospectus:&lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Serif; font-style:normal; text-align:left; font-weight:normal; text-decoration:none;"&gt;To pursue its goal, the
fund invests, under normal circumstances, at least 80% of its net assets in equity securities of small-cap
value U.S. companies. The fund considers small-cap companies to be those companies with total market
capitalizations that are equal to or less than the total market capitalization of the largest company
included in the Russell 2000&lt;sup&gt;&#xae;&lt;/sup&gt; Index. As of December 31, 2025, the market capitalization of the largest
company in the Index was approximately $31.15 billion. The fund considers value companies to be a company
included in at least one of the Russell 3000 Value Index, the S&amp;amp;P Composite 1500 Value Index, or
the MSCI ACWI Value Index, or a company that has a price-to-book ratio that is lower than that of the
S&amp;amp;P 500 Index.&lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock contextRef="c1" id="ixv-56">To pursue its goal, the
fund invests, under normal circumstances, at least 80% of its net assets in equity securities of small-cap
value U.S. companies.</fnd:NmRule35d1EightyPctInvstmntPlcyTextBlock>
    <fnd:NmRule35d1TermSlctnCritSmryTextBlock contextRef="c1" id="ixv-18">The fund considers small-cap companies to be those companies with total market
capitalizations that are equal to or less than the total market capitalization of the largest company
included in the Russell 2000&lt;sup&gt;&#xae;&lt;/sup&gt; Index. As of December 31, 2025, the market capitalization of the largest
company in the Index was approximately $31.15 billion.</fnd:NmRule35d1TermSlctnCritSmryTextBlock>
    <fnd:NmRule35d1TermDfnSmryTextBlock contextRef="c1" id="ixv-57">The fund considers value companies to be a company
included in at least one of the Russell 3000 Value Index, the S&amp;amp;P Composite 1500 Value Index, or
the MSCI ACWI Value Index, or a company that has a price-to-book ratio that is lower than that of the
S&amp;amp;P 500 Index.</fnd:NmRule35d1TermDfnSmryTextBlock>
    <dei:DocumentType contextRef="c0" id="ixv-60">497</dei:DocumentType>
    <dei:EntityInvCompanyType contextRef="c0" id="ixv-61">N-1A</dei:EntityInvCompanyType>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-62">0000799295</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c0" id="ixv-63">false</dei:AmendmentFlag>
    <dei:DocumentPeriodEndDate contextRef="c0" id="ixv-64">2026-11-30</dei:DocumentPeriodEndDate>
    <oef:ProspectusDate contextRef="c0" id="ixv-65">2026-01-30</oef:ProspectusDate>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-66">BNY Mellon Investment Funds I</dei:EntityRegistrantName>
</xbrl>
