<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cik0001038520="http://www.dreyfus.com/20260331"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="c485bpos-20260729.xsd" xlink:type="simple"/>
    <context id="Context_20260331_20260331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_PrincipalRisks2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:PrincipalRisks2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_RiskLoseMoneyMember_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_RiskMoneyMarketFundPriceFluctuatesMember_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskMoneyMarketFundPriceFluctuatesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_RiskMoneyMarketFundMayNotPreserveDollarMember_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskMoneyMarketFundMayNotPreserveDollarMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_RiskNotInsuredMember_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_Interestraterisk2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:Interestraterisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_Liquidityrisk2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:Liquidityrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_USTreasurysecuritiesrisk2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:USTreasurysecuritiesrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_Governmentsecuritiesrisk2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:Governmentsecuritiesrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_Repurchaseagreementcounterpartyrisk2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:Repurchaseagreementcounterpartyrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20260331_20260331_S000002772Member_Marketrisk2_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">cik0001038520:Marketrisk2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="Context_20161231_20161231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-31</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Context_20171231_20171231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-31</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Context_20181231_20181231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-12-31</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Context_20191231_20191231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-12-31</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Context_20201231_20201231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-12-31</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Context_20211231_20211231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-31</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Context_20221231_20221231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Context_20231231_20231231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-12-31</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Context_20241231_20241231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-12-31</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251231_20251231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20250101_20251231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20210101_20251231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20160101_20251231_C000007598Member_S000002772Member_S000002772Summary1Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001038520</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001038520:S000002772Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">cik0001038520:C000007598Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:EntityInvCompanyType contextRef="Context_20260331_20260331" id="ixv-36398">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Context_20260331_20260331" id="ixv-36399">Dreyfus Institutional Preferred Money Market Funds</dei:EntityRegistrantName>
    <dei:DocumentEffectiveDate contextRef="Context_20260331_20260331" id="ixv-36400">2026-07-31</dei:DocumentEffectiveDate>
    <oef:ProspectusDate contextRef="Context_20260331_20260331" id="ixv-36401">2026-07-31</oef:ProspectusDate>
    <oef:RiskReturnHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36402">Fund 
Summary</oef:RiskReturnHeading>
    <oef:ObjectiveHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36403"> Investment 
Objective</oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36404">The fund seeks as high a level of current income 
as is consistent with the preservation of capital and the maintenance of liquidity.</oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36405">Fees 
and Expenses</oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-254">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;This table describes the fees and expenses 
that you may pay if you buy, hold and sell shares of the fund.  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;You may 
pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not 
reflected in the table and examples below.&lt;/span&gt;&lt;/p&gt;</oef:ExpenseNarrativeTextBlock>
    <oef:OperatingExpensesCaption
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36406">Annual Fund Operating Expenses (expenses 
that you pay each year as a percentage of the value of your investment)</oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36407"
      unitRef="pure">0.0010</oef:ManagementFeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="_20_"
      unitRef="pure">0.0000</oef:OtherExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36409"
      unitRef="pure">0.0010</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="_22_"
      unitRef="pure">-0.0000</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36411"
      unitRef="pure">0.0010</oef:NetExpensesOverAssets>
    <oef:ExpenseExampleHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36412">Example</oef:ExpenseExampleHeading>
    <oef:ExpenseExampleNarrativeTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-321">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The Example is intended to help you compare the cost of investing in the fund 
with the cost of investing in other mutual funds.  The Example assumes that you invest $10,000 in the 
fund for the time periods indicated and then hold or redeem all of your shares at the end of those periods. 
 The Example also assumes that your investment has a 5% return each year and that the fund's operating 
expenses remain the same.  The Example is based on net operating expenses, which reflect the contractual 
undertaking by BNY Mellon Investment Adviser, Inc.  Although your actual costs may be higher or lower, 
based on these assumptions your costs would be:&lt;/p&gt;</oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleYear01
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36413"
      unitRef="usd">10</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36414"
      unitRef="usd">32</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36415"
      unitRef="usd">56</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36416"
      unitRef="usd">128</oef:ExpenseExampleYear10>
    <oef:StrategyHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36417">Principal Investment Strategy</oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-354">&lt;p style="margin-top:revert; margin-bottom:revert;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
fund pursues its investment objective by investing only in government securities (i.e., securities issued 
or guaranteed as to principal and interest by the U.S. government or its agencies or instrumentalities, 
including those with floating or variable rates of interest), repurchase agreements collateralized fully 
by government securities and/or cash, and cash.  The fund is a money market fund subject to the maturity, 
quality, liquidity and diversification requirements of Rule 2a-7 under the Investment Company Act of 
1940, as amended (1940 Act), and seeks to maintain a stable share price of $1.00.&lt;/p&gt;&lt;p style="margin-top:revert; margin-bottom:revert;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
fund is a "government money market fund," as that term is defined in Rule 2a-7, and as such will invest 
at least 99.5% of its total assets in securities issued or guaranteed as to principal and interest by 
the U.S. government or its agencies or instrumentalities, repurchase agreements collateralized fully 
by cash and/or government securities, and cash.  Under normal circumstances, the fund will invest its 
assets so that at least 80% of its net assets (plus any borrowing for investment purposes) are invested 
in government securities and/or repurchase agreements that are collateralized fully by government securities. 
 The securities in which the fund invests include those backed by the full faith and credit of the U.S. 
government, which include U.S. Treasury securities as well as securities issued by certain agencies of 
the U.S. government, and those that are neither insured nor guaranteed by the U.S. government.&lt;/p&gt;

&lt;p style="margin-top:revert; margin-bottom:revert;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;The fund invests in securities issued or guaranteed as to 
principal and interest by the U.S. government or its agencies or instrumentalities and seeks to enter 
into repurchase agreements that present minimal credit risk (and are considered "eligible securities" 
as defined in Rule 2a-7 under the 1940 Act), based on an assessment by Dreyfus, a division of Mellon 
Investments Corporation, the fund's sub-adviser, of the counterparty's credit quality and capacity to 
meet its financial obligations, among other factors.   &lt;/p&gt;</oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_PrincipalRisks2_S000002772Summary1Member"
      id="ixv-362">&lt;div style="border-bottom:0.25pt; border-bottom-style:solid; border-bottom-color:#000000; padding:0pt 0pt 1pt 0pt;"&gt;&lt;div style="font-size:12.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold;"&gt;&lt;span style="font-size:12.0pt; font-family:Arial; font-style:normal; color:#000000; font-weight:bold; text-decoration:none;"&gt;Principal 
Risks&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="margin-top:revert; margin-bottom:revert;font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;An investment in the fund is not a bank account 
or a bank deposit.  It is not insured or guaranteed by the Federal Deposit Insurance Corporation (FDIC) 
or any other government agency.  You could lose money by investing in the fund.  Although the fund seeks 
to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.  The 
fund's yield will fluctuate as the short-term securities in its portfolio mature or are sold and the 
proceeds are reinvested in securities with different interest rates.  BNY Mellon Investment Adviser, 
Inc. and its affiliates are not required to reimburse the fund for losses, and you should not expect 
that BNY Mellon Investment Adviser, Inc. or its affiliates will provide financial support to the fund 
at any time, including during periods of market stress.  The fund is subject to the following principal 
risks:&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_RiskNotInsuredMember_S000002772Summary1Member"
      id="ixv-36418">An investment in the fund is not a bank account 
or a bank deposit.  It is not insured or guaranteed by the Federal Deposit Insurance Corporation (FDIC) 
or any other government agency.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_RiskLoseMoneyMember_S000002772Summary1Member"
      id="ixv-36419">  You could lose money by investing in the fund.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_RiskMoneyMarketFundMayNotPreserveDollarMember_S000002772Summary1Member"
      id="ixv-36420">Although the fund seeks 
to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_RiskMoneyMarketFundPriceFluctuatesMember_S000002772Summary1Member"
      id="ixv-36421">The 
fund's yield will fluctuate as the short-term securities in its portfolio mature or are sold and the 
proceeds are reinvested in securities with different interest rates.</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_Interestraterisk2_S000002772Summary1Member"
      id="ixv-367">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Interest 
rate risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  This risk refers to the decline in the prices of fixed-income 
securities that may accompany a rise in the overall level of interest rates.  A sharp and unexpected 
rise in interest rates could impair the fund's ability to maintain a stable net &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;asset 
value.  A wide variety of market factors can cause interest rates to rise, including central bank monetary 
policy, rising inflation and changes in general economic conditions.  It is difficult to predict the 
pace at which central banks or monetary authorities may increase (or decrease) interest rates or the 
timing, frequency, or magnitude of such changes.  Changing interest rates may have unpredictable effects 
on markets&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;, may result in heightened market volatility and may detract 
from fund performance.  For floating and variable rate obligations, there may be a lag between an actual 
change in the underlying interest rate benchmark and the reset time for an interest payment of such an 
obligation, which could harm or benefit the fund, depending on the interest rate environment or other 
circumstances.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_Liquidityrisk2_S000002772Summary1Member"
      id="ixv-375">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Liquidity risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  &lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;When 
there is little or no active trading market for specific types of securities, it can become more difficult 
to sell the securities in a timely manner at or near their perceived value.  In such a market, the value 
of such securities may fall dramatically, potentially impairing the fund's ability to maintain a stable 
net asset value.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_USTreasurysecuritiesrisk2_S000002772Summary1Member"
      id="ixv-382">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;U.S. Treasury securities risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt; 
 A security backed by the U.S. Treasury or the full faith and credit of the United States is guaranteed 
only as to the timely payment of interest and principal when held to maturity, but the market prices 
for such securities are not guaranteed and will fluctuate.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_Governmentsecuritiesrisk2_S000002772Summary1Member"
      id="ixv-388">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Government securities risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  Not 
all obligations of the U.S. government, its agencies and instrumentalities are backed by the full faith 
and credit of the U.S. Treasury.  Some obligations are backed only by the credit of the issuing agency 
or instrumentality, and in some cases there may be some risk of default by the issuer.  Any guarantee 
by the U.S. government or its agencies or instrumentalities of a security held by the fund does not apply 
to the market value of such security or to shares of the fund itself.  &lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_Repurchaseagreementcounterpartyrisk2_S000002772Summary1Member"
      id="ixv-394">&lt;p style="margin-top:revert; margin-bottom:revert;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Repurchase 
agreement counterparty risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The fund is subject to the risk that a counterparty 
in a repurchase agreement could fail to honor the terms of the agreement.  If this occurs, the fund may 
suffer a loss if the proceeds from the sale of the underlying securities are less than the repurchase 
price.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_Marketrisk2_S000002772Summary1Member"
      id="ixv-400">&lt;p style="margin-top:revert; margin-bottom:revert;font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-8.65pt; font-weight:normal; margin-left:8.65pt; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Symbol; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;&#xb7;&lt;/span&gt;&lt;span style="word-spacing:5.325pt;"&gt;&#160;&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Market 
risk:&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;  The value of the securities in which the fund invests may be affected by political, 
regulatory, economic and social developments.&#160; In addition, turbulence in financial markets and reduced 
liquidity in fixed-income markets may negatively affect many issuers, which could adversely affect the 
fund.  Global economies and financial markets are becoming increasingly interconnected, and conditions 
and events in one country, region or financial market may adversely impact issuers in a different country, 
region or financial market. These risks may be magnified if certain events or developments adversely 
interrupt the global supply chain; in these and other circumstances, such risks might affect companies 
world-wide.  Local, regional or global events such as war, acts of terrorism, natural disasters, the 
spread of infectious illness or other public health issues, recessions, elevated levels of government 
debt, changes in trade regulation or economic sanctions, internal unrest and discord, or other events 
could have a significant impact on the fund and its investments.&lt;/span&gt;&lt;/p&gt;</oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36422">Performance</oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-409">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:10.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; color:#000000; font-weight:normal; text-decoration:none;"&gt;The 
following bar chart and table provide some indication of the risks of investing in the fund.  The bar 
chart shows changes in the performance of the fund's Institutional shares from year to year.  The table 
shows the average annual total returns of the fund's Institutional shares over time.  The fund's past 
performance is not necessarily an indication of how the fund will perform in the future.  More recent 
performance information may be available at www.dreyfus.com.&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;</oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36423">The 
following bar chart and table provide some indication of the risks of investing in the fund.</oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36424">The fund's past 
performance is not necessarily an indication of how the fund will perform in the future.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:PerformanceAvailabilityWebSiteAddress
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36425">www.dreyfus.com</oef:PerformanceAvailabilityWebSiteAddress>
    <oef:BarChartHeading
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36426">Year-by-Year 
Total Returns&#x2005;as of 12/31 each year (%)</oef:BarChartHeading>
    <oef:BarChartClosingTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-434">&lt;p style="font-size:10.0pt; font-family:Serif; text-align:left; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; font-weight:normal; text-decoration:none;"&gt;During the periods shown in the chart:&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;Best&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt; Quarter&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;2023, 
Q4: 1.36&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:bold; text-decoration:none;"&gt;Worst Quarter&lt;/span&gt;&lt;br/&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;2021, Q3: 0.01&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top:revert; margin-bottom:revert;font-size:9.0pt; font-family:Serif; text-align:left; color:#000000; text-indent:-4.3pt; font-weight:normal; margin-left:8.6pt; text-decoration:none; font-style:italic;"&gt;The year-to-date total return of the fund's 
Institutional shares as of June 30, 2026 was 1.84%.&lt;/p&gt;</oef:BarChartClosingTextBlock>
    <oef:HighestQuarterlyReturnLabel
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      id="ixv-36427">Best Quarter</oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturnDate
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      id="ixv-36428">2023-12-31</oef:BarChartHighestQuarterlyReturnDate>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36429"
      unitRef="pure">0.0136</oef:BarChartHighestQuarterlyReturn>
    <oef:LowestQuarterlyReturnLabel
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      id="ixv-36430">Worst Quarter</oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturnDate
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      id="ixv-36431">2021-09-30</oef:BarChartLowestQuarterlyReturnDate>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36432"
      unitRef="pure">0.0001</oef:BarChartLowestQuarterlyReturn>
    <oef:YearToDateReturnLabel
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      id="ixv-36433">The year-to-date total return of the fund's 
Institutional shares as of</oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturnDate
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      id="ixv-36434">2026-06-30</oef:BarChartYearToDateReturnDate>
    <oef:BarChartYearToDateReturn
      contextRef="Context_20260331_20260331_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36435"
      unitRef="pure">0.0184</oef:BarChartYearToDateReturn>
    <oef:AverageAnnualReturnCaption
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36436">Average 
Annual Total Returns&#160;(as of 12/31/25)</oef:AverageAnnualReturnCaption>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20250101_20251231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36437"
      unitRef="pure">0.0437</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20210101_20251231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36438"
      unitRef="pure">0.0332</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Context_20160101_20251231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36439"
      unitRef="pure">0.0222</oef:AvgAnnlRtrPct>
    <oef:PerformanceTableClosingTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-482">&lt;p style="margin-top:revert; margin-bottom:revert; font-size:9.0pt; font-family:Serif; text-align:left; color:#000000; font-weight:normal; margin-left:4.5pt; text-decoration:none; font-style:italic;"&gt;For the current yield, call toll free 1-800-373-9387.&lt;/p&gt;</oef:PerformanceTableClosingTextBlock>
    <dei:DocumentType contextRef="Context_20260331_20260331" id="ixv-36442">485BPOS</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="Context_20260331_20260331" id="ixv-36443">2026-03-31</dei:DocumentPeriodEndDate>
    <dei:EntityCentralIndexKey contextRef="Context_20260331_20260331" id="ixv-36444">0001038520</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="Context_20260331_20260331" id="ixv-36445">false</dei:AmendmentFlag>
    <dei:DocumentCreationDate contextRef="Context_20260331_20260331" id="ixv-36446">2026-07-29</dei:DocumentCreationDate>
    <oef:AnnualFundOperatingExpensesTableTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36447">~ http://xbrl.sec.gov/rr/role/OperatingExpensesData row dei_DocumentInformationDocumentAxis compact cik0001038520_S000002772Summary1Member row dei_LegalEntityAxis compact cik0001038520_S000002772Member ~</oef:AnnualFundOperatingExpensesTableTextBlock>
    <oef:ExpenseExampleWithRedemptionTableTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36448">~ http://xbrl.sec.gov/rr/role/ExpenseExample row dei_DocumentInformationDocumentAxis compact cik0001038520_S000002772Summary1Member row dei_LegalEntityAxis compact cik0001038520_S000002772Member ~</oef:ExpenseExampleWithRedemptionTableTextBlock>
    <oef:PerformanceTableTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36449">~ http://xbrl.sec.gov/rr/role/PerformanceTableData column period compact * row dei_DocumentInformationDocumentAxis compact cik0001038520_S000002772Summary1Member row dei_LegalEntityAxis compact cik0001038520_S000002772Member row oef_ClassAxis compact * row oef_PerformanceMeasureAxis compact * ~</oef:PerformanceTableTextBlock>
    <oef:AnnlRtrPct
      contextRef="Context_20161231_20161231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36700"
      unitRef="pure">0.0032</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20171231_20171231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36701"
      unitRef="pure">0.0085</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20181231_20181231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36702"
      unitRef="pure">0.0183</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20191231_20191231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36703"
      unitRef="pure">0.022</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20201231_20201231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36704"
      unitRef="pure">0.0051</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20211231_20211231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36705"
      unitRef="pure">0.0006</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20221231_20221231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36706"
      unitRef="pure">0.0171</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20231231_20231231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36707"
      unitRef="pure">0.0521</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20241231_20241231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36708"
      unitRef="pure">0.0535</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Context_20251231_20251231_C000007598Member_S000002772Member_S000002772Summary1Member"
      decimals="INF"
      id="ixv-36709"
      unitRef="pure">0.0436999988555908</oef:AnnlRtrPct>
    <cik0001038520:CustomRisksTableTextBlock
      contextRef="Context_20260331_20260331_S000002772Member_S000002772Summary1Member"
      id="ixv-36712">~ http://www.dreyfus.com/20260331/role/RRRiskTable3 ~</cik0001038520:CustomRisksTableTextBlock>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc xlink:href="#_22_" xlink:label="_22_" xlink:type="locator"/>
        <link:loc xlink:href="#_20_" xlink:label="_20_" xlink:type="locator"/>
        <link:footnote id="fn1_" xlink:label="fn1_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:9.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;">  Amount 
represents less than .01%.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_22_"
          xlink:to="fn1_"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_20_"
          xlink:to="fn1_"
          xlink:type="arc"/>
        <link:footnote id="fn2_" xlink:label="fn2_" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-size:9.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"> 
 The fund's investment adviser, BNY Mellon Investment Adviser, Inc., has agreed in its management agreement 
with the fund to pay all of the fund's expenses, except management fees, brokerage fees and commissions, 
if any, fees pursuant to any distribution or shareholder services plan adopted by the fund, fees and 
expenses of the non-interested board members and their counsel and independent counsel to the fund, and 
any extraordinary expenses.  BNY Mellon Investment Adviser, Inc. has further agreed to reduce its fee 
in an amount equal to the fund's allocable portion of the fees and expenses of the non-interested board 
members and the fees and expenses of independent counsel to the fund and to the non-interested board 
members (in the amount of less than .01% for the past fiscal year).  These provisions in the management 
agreement may not be amended without the approval of the fund's shareholders.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="_22_"
          xlink:to="fn2_"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
