<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:needham="http://needham/20260630"
  xmlns:oef="http://xbrl.sec.gov/oef/2026"
  xmlns:us-gaap="http://fasb.org/us-gaap/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="needham-20260630.xsd" xlink:type="simple"/>
    <context id="From2026-01-01to2026-06-30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_InformationTechnologyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:InformationTechnologyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_IndustrialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:IndustrialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_us-gaap_HealthCareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:HealthCareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_CommunicationServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CommunicationServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_ConsumerDiscretionaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerDiscretionaryMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_FinancialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:FinancialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_MaterialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:MaterialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_us-gaap_RealEstateMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:RealEstateMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_EnergyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:EnergyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_CashampOtherMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CashampOtherMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_DreyfusTreasurySecuritiesCashManagementMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:DreyfusTreasurySecuritiesCashManagementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_PDFSolutionsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:PDFSolutionsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_CorningIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CorningIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_LamResearchCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:LamResearchCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_VicorCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VicorCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_VishayIntertechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayIntertechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_FormFactorIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:FormFactorIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_MarvellTechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:MarvellTechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_MKSIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:MKSIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176575Member_custom_VertivHoldingsCoMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VertivHoldingsCoMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176575Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_InformationTechnologyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:InformationTechnologyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_IndustrialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:IndustrialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_us-gaap_HealthCareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:HealthCareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_CommunicationServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CommunicationServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_ConsumerDiscretionaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerDiscretionaryMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_FinancialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:FinancialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_MaterialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:MaterialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_us-gaap_RealEstateMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:RealEstateMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_EnergyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:EnergyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_CashampOtherMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CashampOtherMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_DreyfusTreasurySecuritiesCashManagementMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:DreyfusTreasurySecuritiesCashManagementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_PDFSolutionsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:PDFSolutionsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_CorningIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CorningIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_LamResearchCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:LamResearchCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_VicorCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VicorCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_VishayIntertechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayIntertechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_FormFactorIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:FormFactorIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_MarvellTechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:MarvellTechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_MKSIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:MKSIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010138Member_custom_VertivHoldingsCoMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VertivHoldingsCoMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010138Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_InformationTechnologyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:InformationTechnologyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_IndustrialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:IndustrialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_ConsumerDiscretionaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerDiscretionaryMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_EnergyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:EnergyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_ConsumerStaplesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerStaplesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_MaterialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:MaterialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_us-gaap_HealthCareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:HealthCareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_us-gaap_RealEstateMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:RealEstateMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_CommunicationServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CommunicationServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_CashampOtherMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CashampOtherMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_VicorCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VicorCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_ArterisIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:ArterisIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_VishayIntertechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayIntertechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_DreyfusTreasurySecuritiesCashManagementMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:DreyfusTreasurySecuritiesCashManagementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_PDFSolutionsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:PDFSolutionsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_NLightIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:NLightIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_VertivHoldingsCoMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VertivHoldingsCoMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_VishayPrecisionGroupIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayPrecisionGroupIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_CECOEnvironmentalCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CECOEnvironmentalCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176576Member_custom_OilDriCorpofAmericaMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:OilDriCorpofAmericaMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176576Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_InformationTechnologyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:InformationTechnologyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_IndustrialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:IndustrialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_ConsumerDiscretionaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerDiscretionaryMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_EnergyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:EnergyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_ConsumerStaplesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerStaplesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_MaterialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:MaterialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_us-gaap_HealthCareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:HealthCareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_us-gaap_RealEstateMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:RealEstateMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_CommunicationServicesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CommunicationServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_CashampOtherMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CashampOtherMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_VicorCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VicorCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_ArterisIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:ArterisIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_VishayIntertechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayIntertechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_DreyfusTreasurySecuritiesCashManagementMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:DreyfusTreasurySecuritiesCashManagementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_PDFSolutionsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:PDFSolutionsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_NLightIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:NLightIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_VertivHoldingsCoMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VertivHoldingsCoMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_VishayPrecisionGroupIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayPrecisionGroupIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_CECOEnvironmentalCorpMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CECOEnvironmentalCorpMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010644Member_custom_OilDriCorpofAmericaMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:OilDriCorpofAmericaMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010644Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302016-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302017-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302018-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302019-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302020-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302021-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302022-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302023-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302024-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302025-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_InformationTechnologyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:InformationTechnologyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_IndustrialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:IndustrialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_ConsumerDiscretionaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerDiscretionaryMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_us-gaap_HealthCareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:HealthCareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_MaterialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:MaterialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_EnergyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:EnergyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_UtilitiesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:UtilitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_us-gaap_RealEstateMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:RealEstateMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_CashampOtherMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CashampOtherMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_DreyfusTreasurySecuritiesCashManagementMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:DreyfusTreasurySecuritiesCashManagementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_ArterisIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:ArterisIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_BadgerMeterIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:BadgerMeterIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_VishayIntertechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayIntertechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_AmbarellaIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:AmbarellaIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_HarmonicIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:HarmonicIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_VeecoInstrumentsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VeecoInstrumentsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_CalixIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CalixIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_PDFSolutionsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:PDFSolutionsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000176577Member_custom_CEVAIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CEVAIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000176577Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="From2026-01-012026-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-06-302016-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-06-30</startDate>
            <endDate>2016-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012016-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012017-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012018-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012019-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012020-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012021-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012022-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012023-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-02-29</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012024-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-07-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-08-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-10-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-11-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012025-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-01-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-02-28</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-05-31</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2016-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:BroadBasedIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:AdditionalIndexAxis">needham:NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_InformationTechnologyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:InformationTechnologyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_IndustrialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:IndustrialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_ConsumerDiscretionaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:ConsumerDiscretionaryMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_us-gaap_HealthCareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:HealthCareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_MaterialsMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:MaterialsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_EnergyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:EnergyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_UtilitiesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:UtilitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_us-gaap_RealEstateMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">us-gaap:RealEstateMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_CashampOtherMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:IndustrySectorAxis">needham:CashampOtherMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_DreyfusTreasurySecuritiesCashManagementMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:DreyfusTreasurySecuritiesCashManagementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_ArterisIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:ArterisIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_BadgerMeterIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:BadgerMeterIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_VishayIntertechnologyIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VishayIntertechnologyIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_AmbarellaIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:AmbarellaIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_HarmonicIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:HarmonicIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_VeecoInstrumentsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:VeecoInstrumentsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_CalixIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CalixIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_PDFSolutionsIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:PDFSolutionsIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <context id="AsOf2026-06-30_custom_C000010645Member_custom_CEVAIncMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001002537</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">needham:CEVAIncMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">needham:C000010645Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-06-30</instant>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:AmendmentFlag contextRef="From2026-01-01to2026-06-30" id="Fact000003">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="From2026-01-01to2026-06-30" id="Fact000004">N-CSRS</dei:DocumentType>
    <dei:EntityInvCompanyType contextRef="From2026-01-01to2026-06-30" id="Fact000005">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="From2026-01-01to2026-06-30" id="Fact000006">NEEDHAM FUNDS INC</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="From2026-01-01to2026-06-30" id="Fact000007">0001002537</dei:EntityCentralIndexKey>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000013">Needham Growth Fund</oef:FundName>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000014">Institutional Class</oef:ClassName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000015">NEEIX</dei:TradingSymbol>
    <dei:DocumentPeriodEndDate contextRef="From2026-01-01to2026-06-30" id="Fact000016">2026-06-30</dei:DocumentPeriodEndDate>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000017">This &lt;span id="xdx_902_eoef--ShareholderReportAnnualOrSemiAnnual_c20260101__20260630_zN0fej0V3mYL"&gt;semi-annual shareholder report&lt;/span&gt; contains important information about the Needham Growth Fund ("the Fund") for the period of &lt;span style="white-space: nowrap"&gt;January 1, 2026&lt;/span&gt; to &lt;span style="white-space: nowrap"&gt;June 30, 2026&lt;/span&gt;.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:ShareholderReportAnnualOrSemiAnnual contextRef="From2026-01-01to2026-06-30" id="Fact000018">semi-annual shareholder report</oef:ShareholderReportAnnualOrSemiAnnual>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000019">You can find additional information about the Fund at &lt;span id="xdx_90B_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zgosqY3jgVRw"&gt;www.needhamfunds.com/resources-forms&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_903_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zvpw3ZfPawGd"&gt;1-800-625-7071&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000020">www.needhamfunds.com/resources-forms</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000021">1-800-625-7071</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000022">
        &lt;div class="section-header"&gt;&lt;strong&gt;What Were the Fund Costs for the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt;?&lt;/strong&gt;&lt;/div&gt;
        &lt;div style="font-size: 10pt"&gt;(Based on a hypothetical $10,000 investment)&lt;/div&gt;
        &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                    &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;Class Name&lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs of a $10,000 investment
                    &lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs paid as a percentage of a $10,000 investment*
                    &lt;/th&gt;
                    &lt;/tr&gt;
                                        &lt;tr&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;Institutional Class&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zsVALmLoXvXR"&gt;$78&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--ExpenseRatioPct_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zmSw7Tigfr9l"&gt;1.19%&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                    &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      decimals="2"
      id="Fact000023"
      unitRef="USD">78</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      decimals="INF"
      id="Fact000024"
      unitRef="Ratio">0.0119</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000025">
        &lt;div class="section-header"&gt;&lt;strong&gt;How Did the Fund Perform Over the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt; and What Affected its Performance?&lt;/strong&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;For the six-month period ended June 30, 2026, the Needham Growth Fund's Institutional Class returned 65.64% , significantly outperforming the Russell 3000 Index's 10.88% and the Russell Midcap Growth Index's 7.27%.&lt;/p&gt;&lt;p style="text-align: left"&gt;Equity markets were volatile in the first quarter as war, tariff uncertainty, and a 2025 government-shutdown-related slowdown weighed on many industries, including software, autos, and health care equipment. Volatility continued into April as the closing of the Strait of Hormuz pushed oil above $126 per barrel, but markets rallied sharply after a June memorandum of understanding between the United States and Iran eased tensions, oil prices normalized, and the Information Technology sector led a broad-based recovery.&lt;/p&gt;&lt;p style="text-align: left"&gt;The key factor affecting the Fund's performance was stock selection, particularly among holdings tied to semiconductor manufacturing, data center infrastructure, and defense. Leading contributors for the period included Vicor Corporation (VICR), PDF Solutions, Inc. (PDFS), FormFactor, Inc. (FORM), and Vishay Intertechnology, Inc. (VSH). The Fund's detractors were small relative to its contributors and included Super Micro Computer, Inc. (SMCI), Thermo Fisher Scientific, Inc. (TMO), and Huntington Ingalls Industries, Inc. (HII).&lt;/p&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Investment Themes&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;The Fund's major investment theme remains the importance of U.S. infrastructure. The Fund invests in lesser-known "pick and shovel" providers behind engineering, manufacturing, and technology development. Portfolio companies sell into data centers, life sciences laboratories, semiconductor and other manufacturing facilities, transportation infrastructure, energy systems, and defense-related markets. The U.S. has underinvested in many of these areas, which may create long-term opportunities.&lt;/p&gt;&lt;p style="text-align: left"&gt;Four areas present throughout the portfolio are: Semiconductor manufacturing, data centers and artificial intelligence (AI) processing, U.S. manufacturing, and defense technology.&lt;/p&gt;&lt;p style="text-align: left"&gt;Needham Investment Management LLC, the Fund's adviser, believes the AI buildout remains in an early stage. The Fund's strategy is to invest in companies developing new products and services and to hold those that execute successfully over time.&lt;/p&gt;&lt;/div&gt;
      </oef:FactorsAffectingPerfTextBlock>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_C000176575Member"
      decimals="0"
      id="Fact000026"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000027"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000028"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000029"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000030"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000031"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000032"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000033"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000034"
      unitRef="USD">101682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000035"
      unitRef="USD">101882</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000036"
      unitRef="USD">103334</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000037"
      unitRef="USD">101677</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000038"
      unitRef="USD">103018</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000039"
      unitRef="USD">105671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000040"
      unitRef="USD">106305</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000041"
      unitRef="USD">104344</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000042"
      unitRef="USD">101889</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000043"
      unitRef="USD">105743</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000044"
      unitRef="USD">106894</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000045"
      unitRef="USD">103940</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000046"
      unitRef="USD">102488</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000047"
      unitRef="USD">106864</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000048"
      unitRef="USD">108480</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000049"
      unitRef="USD">104809</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000050"
      unitRef="USD">104309</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000051"
      unitRef="USD">107958</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000052"
      unitRef="USD">111071</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000053"
      unitRef="USD">104299</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000054"
      unitRef="USD">104286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000055"
      unitRef="USD">108932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000056"
      unitRef="USD">111400</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000057"
      unitRef="USD">105988</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000058"
      unitRef="USD">108295</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000059"
      unitRef="USD">110986</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000060"
      unitRef="USD">113261</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000061"
      unitRef="USD">106922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000062"
      unitRef="USD">107281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000063"
      unitRef="USD">111200</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000064"
      unitRef="USD">114060</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000065"
      unitRef="USD">105281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000066"
      unitRef="USD">111567</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000067"
      unitRef="USD">113912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000068"
      unitRef="USD">117285</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000069"
      unitRef="USD">109403</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000070"
      unitRef="USD">111751</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000071"
      unitRef="USD">116397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000072"
      unitRef="USD">120567</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000073"
      unitRef="USD">111878</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000074"
      unitRef="USD">112645</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000075"
      unitRef="USD">119932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000076"
      unitRef="USD">124597</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000077"
      unitRef="USD">115991</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000078"
      unitRef="USD">108885</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000079"
      unitRef="USD">121131</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000080"
      unitRef="USD">125268</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000081"
      unitRef="USD">116244</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000082"
      unitRef="USD">113881</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000083"
      unitRef="USD">127515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000084"
      unitRef="USD">132355</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000085"
      unitRef="USD">119585</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000086"
      unitRef="USD">108658</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000087"
      unitRef="USD">122815</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000088"
      unitRef="USD">128201</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000089"
      unitRef="USD">114285</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000090"
      unitRef="USD">107901</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000091"
      unitRef="USD">120350</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000092"
      unitRef="USD">127992</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000093"
      unitRef="USD">115346</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000094"
      unitRef="USD">105503</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000095"
      unitRef="USD">120807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000096"
      unitRef="USD">126783</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000097"
      unitRef="USD">115047</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000098"
      unitRef="USD">111610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000099"
      unitRef="USD">124218</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000100"
      unitRef="USD">131525</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000101"
      unitRef="USD">119794</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000102"
      unitRef="USD">112947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000103"
      unitRef="USD">125030</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000104"
      unitRef="USD">132033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000105"
      unitRef="USD">120298</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000106"
      unitRef="USD">115017</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000107"
      unitRef="USD">129179</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000108"
      unitRef="USD">134867</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000109"
      unitRef="USD">122421</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000110"
      unitRef="USD">116733</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000111"
      unitRef="USD">133716</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000112"
      unitRef="USD">142641</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000113"
      unitRef="USD">126332</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000114"
      unitRef="USD">114310</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000115"
      unitRef="USD">133937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000116"
      unitRef="USD">142034</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000117"
      unitRef="USD">124947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000118"
      unitRef="USD">104368</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000119"
      unitRef="USD">124075</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000120"
      unitRef="USD">127969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000121"
      unitRef="USD">113020</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000122"
      unitRef="USD">108310</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000123"
      unitRef="USD">126560</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000124"
      unitRef="USD">131224</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000125"
      unitRef="USD">116549</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000126"
      unitRef="USD">98183</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000127"
      unitRef="USD">114781</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000128"
      unitRef="USD">119317</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000129"
      unitRef="USD">103360</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000130"
      unitRef="USD">107576</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000131"
      unitRef="USD">124633</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000132"
      unitRef="USD">133028</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000133"
      unitRef="USD">114172</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000134"
      unitRef="USD">111744</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000135"
      unitRef="USD">129017</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000136"
      unitRef="USD">140828</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000137"
      unitRef="USD">119012</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000138"
      unitRef="USD">112390</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000139"
      unitRef="USD">130900</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000140"
      unitRef="USD">142728</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000141"
      unitRef="USD">118335</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000142"
      unitRef="USD">119405</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000143"
      unitRef="USD">136128</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000144"
      unitRef="USD">149147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000145"
      unitRef="USD">123093</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000146"
      unitRef="USD">114122</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000147"
      unitRef="USD">127318</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000148"
      unitRef="USD">140566</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000149"
      unitRef="USD">113281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000150"
      unitRef="USD">123544</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000151"
      unitRef="USD">136261</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000152"
      unitRef="USD">150438</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000153"
      unitRef="USD">121938</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000154"
      unitRef="USD">125158</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000155"
      unitRef="USD">138286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000156"
      unitRef="USD">153950</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000157"
      unitRef="USD">123388</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000158"
      unitRef="USD">122986</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000159"
      unitRef="USD">135467</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000160"
      unitRef="USD">151146</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000161"
      unitRef="USD">118213</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000162"
      unitRef="USD">126244</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000163"
      unitRef="USD">137845</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000164"
      unitRef="USD">149425</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000165"
      unitRef="USD">121833</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000166"
      unitRef="USD">131381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000167"
      unitRef="USD">140812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000168"
      unitRef="USD">152195</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000169"
      unitRef="USD">123210</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000170"
      unitRef="USD">136202</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000171"
      unitRef="USD">146165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000172"
      unitRef="USD">159767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000173"
      unitRef="USD">126876</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000174"
      unitRef="USD">140534</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000175"
      unitRef="USD">150385</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000176"
      unitRef="USD">161638</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000177"
      unitRef="USD">130440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000178"
      unitRef="USD">140238</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000179"
      unitRef="USD">150221</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000180"
      unitRef="USD">163151</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000181"
      unitRef="USD">127034</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_C000176575Member"
      decimals="0"
      id="Fact000182"
      unitRef="USD">132232</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000183"
      unitRef="USD">137922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000184"
      unitRef="USD">151900</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000185"
      unitRef="USD">114976</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000186"
      unitRef="USD">114382</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000187"
      unitRef="USD">118955</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000188"
      unitRef="USD">129246</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000189"
      unitRef="USD">91698</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000190"
      unitRef="USD">133610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000191"
      unitRef="USD">134710</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000192"
      unitRef="USD">149485</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000193"
      unitRef="USD">104703</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000194"
      unitRef="USD">143388</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000195"
      unitRef="USD">141914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000196"
      unitRef="USD">164501</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000197"
      unitRef="USD">112362</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000198"
      unitRef="USD">149623</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000199"
      unitRef="USD">145158</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000200"
      unitRef="USD">168357</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000201"
      unitRef="USD">113774</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000202"
      unitRef="USD">163600</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000203"
      unitRef="USD">153401</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000204"
      unitRef="USD">181807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000205"
      unitRef="USD">119020</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000206"
      unitRef="USD">165963</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000207"
      unitRef="USD">164514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000208"
      unitRef="USD">186753</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000209"
      unitRef="USD">123202</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000210"
      unitRef="USD">163305</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000211"
      unitRef="USD">158524</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000212"
      unitRef="USD">184138</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000213"
      unitRef="USD">119202</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000214"
      unitRef="USD">162025</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000215"
      unitRef="USD">155102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000216"
      unitRef="USD">184364</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000217"
      unitRef="USD">121793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000218"
      unitRef="USD">189970</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000219"
      unitRef="USD">173971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000220"
      unitRef="USD">209127</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000221"
      unitRef="USD">139180</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000222"
      unitRef="USD">199902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000223"
      unitRef="USD">181797</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000224"
      unitRef="USD">219160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000225"
      unitRef="USD">148257</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000226"
      unitRef="USD">210531</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000227"
      unitRef="USD">180989</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000228"
      unitRef="USD">218428</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000229"
      unitRef="USD">150487</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000230"
      unitRef="USD">215619</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000231"
      unitRef="USD">186646</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000232"
      unitRef="USD">222158</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000233"
      unitRef="USD">160723</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000234"
      unitRef="USD">214679</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000235"
      unitRef="USD">193336</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000236"
      unitRef="USD">217921</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000237"
      unitRef="USD">168228</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000238"
      unitRef="USD">216247</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000239"
      unitRef="USD">203302</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000240"
      unitRef="USD">230165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000241"
      unitRef="USD">175802</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000242"
      unitRef="USD">215794</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000243"
      unitRef="USD">204230</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000244"
      unitRef="USD">226648</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000245"
      unitRef="USD">176147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000246"
      unitRef="USD">230640</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000247"
      unitRef="USD">209266</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000248"
      unitRef="USD">242049</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000249"
      unitRef="USD">174343</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000250"
      unitRef="USD">236425</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000251"
      unitRef="USD">212805</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000252"
      unitRef="USD">244542</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000253"
      unitRef="USD">174945</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000254"
      unitRef="USD">242838</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000255"
      unitRef="USD">218874</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000256"
      unitRef="USD">252436</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000257"
      unitRef="USD">178353</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000258"
      unitRef="USD">239666</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000259"
      unitRef="USD">209053</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000260"
      unitRef="USD">240210</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000261"
      unitRef="USD">171272</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000262"
      unitRef="USD">252770</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000263"
      unitRef="USD">223191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000264"
      unitRef="USD">257052</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000265"
      unitRef="USD">181353</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000266"
      unitRef="USD">258491</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000267"
      unitRef="USD">219793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000268"
      unitRef="USD">246191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000269"
      unitRef="USD">176026</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000270"
      unitRef="USD">256228</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000271"
      unitRef="USD">228449</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000272"
      unitRef="USD">247055</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000273"
      unitRef="USD">184966</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000274"
      unitRef="USD">223652</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000275"
      unitRef="USD">215008</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000276"
      unitRef="USD">215174</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000277"
      unitRef="USD">171630</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000278"
      unitRef="USD">218346</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000279"
      unitRef="USD">209592</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000280"
      unitRef="USD">212562</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000281"
      unitRef="USD">173542</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000282"
      unitRef="USD">220498</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000283"
      unitRef="USD">216390</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000284"
      unitRef="USD">215975</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000285"
      unitRef="USD">175945</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000286"
      unitRef="USD">189147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000287"
      unitRef="USD">196971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000288"
      unitRef="USD">191656</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000289"
      unitRef="USD">163440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000290"
      unitRef="USD">193562</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000291"
      unitRef="USD">196707</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000292"
      unitRef="USD">184237</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000293"
      unitRef="USD">164663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000294"
      unitRef="USD">171449</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000295"
      unitRef="USD">180250</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000296"
      unitRef="USD">170465</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000297"
      unitRef="USD">148822</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000298"
      unitRef="USD">194378</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000299"
      unitRef="USD">197161</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000300"
      unitRef="USD">191326</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000301"
      unitRef="USD">164969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000302"
      unitRef="USD">187663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000303"
      unitRef="USD">189803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000304"
      unitRef="USD">185059</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000305"
      unitRef="USD">159852</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000306"
      unitRef="USD">164140</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000307"
      unitRef="USD">172203</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000308"
      unitRef="USD">169352</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000309"
      unitRef="USD">145155</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000310"
      unitRef="USD">170039</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000311"
      unitRef="USD">186325</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000312"
      unitRef="USD">182662</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000313"
      unitRef="USD">160424</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000314"
      unitRef="USD">181590</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000315"
      unitRef="USD">196050</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000316"
      unitRef="USD">192599</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000317"
      unitRef="USD">170240</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000318"
      unitRef="USD">170799</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000319"
      unitRef="USD">184571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000320"
      unitRef="USD">181039</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000321"
      unitRef="USD">160808</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000322"
      unitRef="USD">185061</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000323"
      unitRef="USD">197282</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000324"
      unitRef="USD">196837</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000325"
      unitRef="USD">175648</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000326"
      unitRef="USD">183288</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000327"
      unitRef="USD">192671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000328"
      unitRef="USD">194894</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000329"
      unitRef="USD">172465</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000330"
      unitRef="USD">186193</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000331"
      unitRef="USD">197823</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000332"
      unitRef="USD">197579</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000333"
      unitRef="USD">166929</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000334"
      unitRef="USD">173025</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000335"
      unitRef="USD">199931</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000336"
      unitRef="USD">194717</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000337"
      unitRef="USD">165622</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000338"
      unitRef="USD">197172</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000339"
      unitRef="USD">200709</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000340"
      unitRef="USD">194837</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000341"
      unitRef="USD">160339</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000342"
      unitRef="USD">211547</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000343"
      unitRef="USD">214414</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000344"
      unitRef="USD">209897</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000345"
      unitRef="USD">175027</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000346"
      unitRef="USD">227581</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000347"
      unitRef="USD">222100</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000348"
      unitRef="USD">216248</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000349"
      unitRef="USD">182248</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000350"
      unitRef="USD">206868</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000351"
      unitRef="USD">217813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000352"
      unitRef="USD">209118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000353"
      unitRef="USD">176977</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000354"
      unitRef="USD">194795</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000355"
      unitRef="USD">207438</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000356"
      unitRef="USD">198932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000357"
      unitRef="USD">167674</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000358"
      unitRef="USD">174648</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000359"
      unitRef="USD">201939</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000360"
      unitRef="USD">188781</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000361"
      unitRef="USD">158724</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000362"
      unitRef="USD">196040</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000363"
      unitRef="USD">220769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000364"
      unitRef="USD">211811</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000365"
      unitRef="USD">172227</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000366"
      unitRef="USD">217432</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000367"
      unitRef="USD">232479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000368"
      unitRef="USD">227869</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000369"
      unitRef="USD">187240</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000370"
      unitRef="USD">229657</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000371"
      unitRef="USD">235056</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000372"
      unitRef="USD">226641</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000373"
      unitRef="USD">184036</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_C000176575Member"
      decimals="0"
      id="Fact000374"
      unitRef="USD">267121</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000375"
      unitRef="USD">247779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000376"
      unitRef="USD">243681</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000377"
      unitRef="USD">194966</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000378"
      unitRef="USD">280176</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000379"
      unitRef="USD">255772</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000380"
      unitRef="USD">249508</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000381"
      unitRef="USD">205877</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000382"
      unitRef="USD">260481</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000383"
      unitRef="USD">244518</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000384"
      unitRef="USD">235018</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000385"
      unitRef="USD">193484</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000386"
      unitRef="USD">275309</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000387"
      unitRef="USD">256071</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000388"
      unitRef="USD">237523</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000389"
      unitRef="USD">201976</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000390"
      unitRef="USD">278516</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000391"
      unitRef="USD">263998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000392"
      unitRef="USD">241491</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000393"
      unitRef="USD">198784</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000394"
      unitRef="USD">273573</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000395"
      unitRef="USD">268905</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000396"
      unitRef="USD">242954</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000397"
      unitRef="USD">210324</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000398"
      unitRef="USD">268442</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000399"
      unitRef="USD">274759</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000400"
      unitRef="USD">248991</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000401"
      unitRef="USD">210159</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000402"
      unitRef="USD">268367</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000403"
      unitRef="USD">280443</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000404"
      unitRef="USD">257287</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000405"
      unitRef="USD">212588</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000406"
      unitRef="USD">251011</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000407"
      unitRef="USD">278383</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000408"
      unitRef="USD">261782</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000409"
      unitRef="USD">211087</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000410"
      unitRef="USD">260791</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000411"
      unitRef="USD">296902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000412"
      unitRef="USD">296674</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000413"
      unitRef="USD">229684</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000414"
      unitRef="USD">250074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000415"
      unitRef="USD">287827</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000416"
      unitRef="USD">278235</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000417"
      unitRef="USD">213320</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000418"
      unitRef="USD">255785</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000419"
      unitRef="USD">296914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000420"
      unitRef="USD">295986</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000421"
      unitRef="USD">221532</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000422"
      unitRef="USD">236464</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000423"
      unitRef="USD">291224</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000424"
      unitRef="USD">279120</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000425"
      unitRef="USD">211903</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000426"
      unitRef="USD">209908</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000427"
      unitRef="USD">274236</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000428"
      unitRef="USD">258424</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000429"
      unitRef="USD">200308</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000430"
      unitRef="USD">202437</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000431"
      unitRef="USD">272397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000432"
      unitRef="USD">267104</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000433"
      unitRef="USD">195796</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000434"
      unitRef="USD">214640</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000435"
      unitRef="USD">289663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000436"
      unitRef="USD">292711</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000437"
      unitRef="USD">206364</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000438"
      unitRef="USD">237794</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000439"
      unitRef="USD">304378</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000440"
      unitRef="USD">305462</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000441"
      unitRef="USD">213750</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_C000176575Member"
      decimals="0"
      id="Fact000442"
      unitRef="USD">246398</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000443"
      unitRef="USD">311082</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000444"
      unitRef="USD">311667</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000445"
      unitRef="USD">217212</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_C000176575Member"
      decimals="0"
      id="Fact000446"
      unitRef="USD">240844</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000447"
      unitRef="USD">318281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000448"
      unitRef="USD">314785</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000449"
      unitRef="USD">224584</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_C000176575Member"
      decimals="0"
      id="Fact000450"
      unitRef="USD">260478</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000451"
      unitRef="USD">329265</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000452"
      unitRef="USD">313951</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000453"
      unitRef="USD">225612</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_C000176575Member"
      decimals="0"
      id="Fact000454"
      unitRef="USD">286526</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000455"
      unitRef="USD">336322</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000456"
      unitRef="USD">313074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000457"
      unitRef="USD">224557</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_C000176575Member"
      decimals="0"
      id="Fact000458"
      unitRef="USD">271696</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000459"
      unitRef="USD">337245</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000460"
      unitRef="USD">306432</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000461"
      unitRef="USD">229157</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_C000176575Member"
      decimals="0"
      id="Fact000462"
      unitRef="USD">274049</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000463"
      unitRef="USD">337177</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000464"
      unitRef="USD">302321</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000465"
      unitRef="USD">229322</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_C000176575Member"
      decimals="0"
      id="Fact000466"
      unitRef="USD">314856</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000467"
      unitRef="USD">342408</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000468"
      unitRef="USD">299696</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000469"
      unitRef="USD">238611</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_C000176575Member"
      decimals="0"
      id="Fact000470"
      unitRef="USD">336962</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000471"
      unitRef="USD">340779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000472"
      unitRef="USD">302062</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000473"
      unitRef="USD">248442</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_C000176575Member"
      decimals="0"
      id="Fact000474"
      unitRef="USD">317378</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000475"
      unitRef="USD">323833</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000476"
      unitRef="USD">283127</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000477"
      unitRef="USD">235060</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_C000176575Member"
      decimals="0"
      id="Fact000478"
      unitRef="USD">373524</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000479"
      unitRef="USD">356873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000480"
      unitRef="USD">301443</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000481"
      unitRef="USD">253540</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_C000176575Member"
      decimals="0"
      id="Fact000482"
      unitRef="USD">415928</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000483"
      unitRef="USD">374955</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000484"
      unitRef="USD">315775</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000485"
      unitRef="USD">259760</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000486"
      unitRef="USD">454003</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact000487"
      unitRef="USD">373848</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000488"
      unitRef="USD">324315</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000489"
      unitRef="USD">269079</oef:AccmVal>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000490">&lt;img alt="Ad2 Performance Graph" src="fp0099608-6_sa91.jpg" style="width: 348px; height: 200px"/&gt;</oef:LineGraphTableTextBlock>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000491">        &lt;div class="section-header"&gt;&lt;strong&gt;Annual Average Total Return %&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;                            &lt;tr class="header-row" style="background-color: Gainsboro"&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;1 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;5 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;Since Inception&lt;br/&gt;                            (&lt;span id="xdx_901_eoef--PerfInceptionDate_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zVx5wHuEafth"&gt;12/30/2016&lt;/span&gt;)                           &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_904_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--ClassAxis__custom--C000176575Member_z38SVd8GAXen"&gt;Institutional Class&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--ClassAxis__custom--C000176575Member_zK0EMhJgIr85"&gt;90.95&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--ClassAxis__custom--C000176575Member_zfs4CMg0nJED"&gt;14.51&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--ClassAxis__custom--C000176575Member_zm2cDJNVsaay"&gt;17.27&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90A_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussell3000IndexMember_zzXBYDB7YYnS"&gt;Russell 3000&lt;sup&gt;&#xae;&lt;/sup&gt; Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussell3000IndexMember_zKN4osnplWn1"&gt;22.82&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussell3000IndexMember_zThY2A7yDEEo"&gt;12.31&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussell3000IndexMember_zWgK4jwRgMBR"&gt;14.89&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90B_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember_zeEBeEp2HW7t"&gt;Russell Midcap&lt;sup&gt;&#xae;&lt;/sup&gt; Growth Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_907_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember_zT9JRBt2xU5t"&gt;6.17&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember_zRURfHMmpqb6"&gt;6.03&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember_zt0sQ1a8i0fO"&gt;13.19&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_905_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember_zQQkA3tYS6yO"&gt;S&amp;amp;P MidCap 400&lt;sup&gt;&#xae;&lt;/sup&gt; Growth&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember_zMuP6oE0mpv2"&gt;25.89&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember_zZbj4WJrjHWz"&gt;9.07&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember_zgyCNIBFsULd"&gt;10.98&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:AvgAnnlRtrTableTextBlock>
    <oef:PerfInceptionDate
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000492">2016-12-30</oef:PerfInceptionDate>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_C000176575Member"
      id="Fact000493">Institutional Class</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000176575Member"
      decimals="INF"
      id="Fact000494"
      unitRef="Ratio">0.9095</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000176575Member"
      decimals="INF"
      id="Fact000495"
      unitRef="Ratio">0.1451</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_C000176575Member"
      decimals="INF"
      id="Fact000496"
      unitRef="Ratio">0.1727</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      id="Fact000497">Russell 3000&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact000498"
      unitRef="Ratio">0.2282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact000499"
      unitRef="Ratio">0.1231</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact000500"
      unitRef="Ratio">0.1489</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      id="Fact000501">Russell Midcap&#xae; Growth Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="INF"
      id="Fact000502"
      unitRef="Ratio">0.0617</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="INF"
      id="Fact000503"
      unitRef="Ratio">0.0603</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassRussellMidcapGrowthIndexMember"
      decimals="INF"
      id="Fact000504"
      unitRef="Ratio">0.1319</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      id="Fact000505">S&amp;P MidCap 400&#xae; Growth</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="INF"
      id="Fact000506"
      unitRef="Ratio">0.2589</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="INF"
      id="Fact000507"
      unitRef="Ratio">0.0907</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamGrowthFundInstitutionalClassSampPMidCap400GrowthMember"
      decimals="INF"
      id="Fact000508"
      unitRef="Ratio">0.1098</oef:AvgAnnlRtrPct>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000509">The Fund's past performance is not a good predictor of the Fund's future performance.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:NoDeductionOfTaxesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000510">The returns do not reflect the deduction of taxes that a shareholder would pay on Fund distributions or redemption of Fund shares.</oef:NoDeductionOfTaxesTextBlock>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000511">
        &lt;div class="section-header" style="font-size: 11pt"&gt;&lt;strong&gt;Key Fund Statistics&lt;/strong&gt; &lt;span style="font-size: 10pt"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;
          &lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
            &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Net Assets&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eus-gaap--AssetsNet_iI_uUSD_c20260630__oef--ClassAxis__custom--C000176575Member_zC7qL08qCmBR"&gt;$292,571,662&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Number of Holdings&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--HoldingsCount_iI_uShares_c20260630__oef--ClassAxis__custom--C000176575Member_zzas2xcGUVmW"&gt;79&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;            
                        &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Portfolio Turnover&lt;/th&gt; 
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eus-gaap--InvestmentCompanyPortfolioTurnover_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zFGUUOOXGIwL"&gt;24%&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt; 
          &lt;/table&gt;
        &lt;/div&gt;
      </oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000176575Member"
      decimals="0"
      id="Fact000512"
      unitRef="USD">292571662</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000176575Member"
      decimals="INF"
      id="Fact000513"
      unitRef="Shares">79</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      decimals="INF"
      id="Fact000514"
      unitRef="Ratio">0.24</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:HoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000515">
    &lt;div class="columns-2" style="columns: 2; column-gap: 16px; column-fill: balance"&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 0.16in"&gt;
        &lt;div class="section-header"&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;What Sectors Did the Fund Invest In?&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as of June 30, 2026) (as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Information Technology
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--InformationTechnologyMember_zlKKN1Qo8TL6"&gt;52.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Industrials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--IndustrialsMember_zB6vV95eJYl4"&gt;24.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Health Care
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--HealthCareMember_z4tIshtCdH0z"&gt;5.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Communication Services
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--CommunicationServicesMember_z8X7jNEhHJ5z"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Discretionary
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--ConsumerDiscretionaryMember_zXQgZxoBBczR"&gt;1.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Financials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--FinancialsMember_zvZcmxVXLIzb"&gt;1.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Materials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--MaterialsMember_z6IcKkp3Pz3l"&gt;1.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Real Estate
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--RealEstateMember_zvvdqYiq4Ebb"&gt;0.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Energy
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--EnergyMember_zGJxK4VH0Zl9"&gt;0.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Cash &amp;amp; Other
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__oef--IndustrySectorAxis__custom--CashampOtherMember_zt7DFdD4x6dF"&gt;10.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;img alt="Af Image" src="fp0099608-6_sa92.jpg" style="width: 348px; height: 500px"/&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div id="xdx_986_eoef--LargestHoldingsTableTextBlock_c20260101__20260630__oef--ClassAxis__custom--C000176575Member_zIgMa5GLFXRs"&gt;
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_ztY6Qll2wGGI"&gt;10.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zaIVEvvulsIW"&gt;5.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Corning, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--CorningIncMember_zOqvXZVEHJgA"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Lam Research Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--LamResearchCorpMember_zazQp4U2x8u1"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_zesEShQHRMn0"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zHi9aCGuVcSb"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    FormFactor, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--FormFactorIncMember_z6RfNJtv384a"&gt;3.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Marvell Technology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--MarvellTechnologyIncMember_zCyP1l4FxM7f"&gt;3.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    MKS, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--MKSIncMember_zYffvJ4nfHno"&gt;3.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zVXm6C3FITwe"&gt;2.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_InformationTechnologyMember"
      decimals="INF"
      id="Fact000516"
      unitRef="Ratio">0.521</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_IndustrialsMember"
      decimals="INF"
      id="Fact000517"
      unitRef="Ratio">0.246</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_us-gaap_HealthCareMember"
      decimals="INF"
      id="Fact000518"
      unitRef="Ratio">0.058</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_CommunicationServicesMember"
      decimals="INF"
      id="Fact000519"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_ConsumerDiscretionaryMember"
      decimals="INF"
      id="Fact000520"
      unitRef="Ratio">0.014</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_FinancialsMember"
      decimals="INF"
      id="Fact000521"
      unitRef="Ratio">0.011</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_MaterialsMember"
      decimals="INF"
      id="Fact000522"
      unitRef="Ratio">0.011</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_us-gaap_RealEstateMember"
      decimals="INF"
      id="Fact000523"
      unitRef="Ratio">0.007</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_EnergyMember"
      decimals="INF"
      id="Fact000524"
      unitRef="Ratio">0.003</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_CashampOtherMember"
      decimals="INF"
      id="Fact000525"
      unitRef="Ratio">0.105</oef:PctOfNav>
    <oef:LargestHoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176575Member"
      id="Fact000526">
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_ztY6Qll2wGGI"&gt;10.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zaIVEvvulsIW"&gt;5.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Corning, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--CorningIncMember_zOqvXZVEHJgA"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Lam Research Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--LamResearchCorpMember_zazQp4U2x8u1"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_zesEShQHRMn0"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zHi9aCGuVcSb"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    FormFactor, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--FormFactorIncMember_z6RfNJtv384a"&gt;3.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Marvell Technology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--MarvellTechnologyIncMember_zCyP1l4FxM7f"&gt;3.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    MKS, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--MKSIncMember_zYffvJ4nfHno"&gt;3.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176575Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zVXm6C3FITwe"&gt;2.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        </oef:LargestHoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_DreyfusTreasurySecuritiesCashManagementMember"
      decimals="INF"
      id="Fact000527"
      unitRef="Ratio">0.103</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_PDFSolutionsIncMember"
      decimals="INF"
      id="Fact000528"
      unitRef="Ratio">0.053</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_CorningIncMember"
      decimals="INF"
      id="Fact000529"
      unitRef="Ratio">0.037</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_LamResearchCorpMember"
      decimals="INF"
      id="Fact000530"
      unitRef="Ratio">0.037</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_VicorCorpMember"
      decimals="INF"
      id="Fact000531"
      unitRef="Ratio">0.035</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_VishayIntertechnologyIncMember"
      decimals="INF"
      id="Fact000532"
      unitRef="Ratio">0.035</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_FormFactorIncMember"
      decimals="INF"
      id="Fact000533"
      unitRef="Ratio">0.034</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_MarvellTechnologyIncMember"
      decimals="INF"
      id="Fact000534"
      unitRef="Ratio">0.031</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_MKSIncMember"
      decimals="INF"
      id="Fact000535"
      unitRef="Ratio">0.030</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176575Member_custom_VertivHoldingsCoMember"
      decimals="INF"
      id="Fact000536"
      unitRef="Ratio">0.029</oef:PctOfNav>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000537">Needham Growth Fund</oef:FundName>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000538">Retail Class</oef:ClassName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000539">NEEGX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000540">This semi-annual shareholder report contains important information about the Needham Growth Fund ("the Fund") for the period of &lt;span style="white-space: nowrap"&gt;January 1, 2026&lt;/span&gt; to &lt;span style="white-space: nowrap"&gt;June 30, 2026&lt;/span&gt;.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000541">You can find additional information about the Fund at &lt;span id="xdx_900_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000010138Member_zQYd5ZzWl8ts"&gt;www.needhamfunds.com/resources-forms&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_90F_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000010138Member_zeLkMc7c4jZS"&gt;1-800-625-7071&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000542">www.needhamfunds.com/resources-forms</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000543">1-800-625-7071</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000544">
        &lt;div class="section-header"&gt;&lt;strong&gt;What Were the Fund Costs for the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt;?&lt;/strong&gt;&lt;/div&gt;
        &lt;div style="font-size: 10pt"&gt;(Based on a hypothetical $10,000 investment)&lt;/div&gt;
        &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                    &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;Class Name&lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs of a $10,000 investment
                    &lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs paid as a percentage of a $10,000 investment*
                    &lt;/th&gt;
                    &lt;/tr&gt;
                                        &lt;tr&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;Retail Class&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000010138Member_zttfzFABvGsi"&gt;$107&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--ExpenseRatioPct_c20260101__20260630__oef--ClassAxis__custom--C000010138Member_zQRE2NXkZDFP"&gt;1.62%&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                    &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      decimals="2"
      id="Fact000545"
      unitRef="USD">107</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      decimals="INF"
      id="Fact000546"
      unitRef="Ratio">0.0162</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact000547">
        &lt;div class="section-header"&gt;&lt;strong&gt;How Did the Fund Perform Over the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt; and What Affected its Performance?&lt;/strong&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;For the six-month period ended June 30, 2026, the Needham Growth Fund's Retail Class returned 65.33%, significantly outperforming the Russell 3000 Index's 10.88% and the Russell Midcap Growth Index's 7.27%.&lt;/p&gt;&lt;p style="text-align: left"&gt;Equity markets were volatile in the first quarter as war, tariff uncertainty, and a 2025 government-shutdown-related slowdown weighed on many industries, including software, autos, and health care equipment. Volatility continued into April as the closing of the Strait of Hormuz pushed oil above $126 per barrel, but markets rallied sharply after a June memorandum of understanding between the United States and Iran eased tensions, oil prices normalized, and the Information Technology sector led a broad-based recovery.&lt;/p&gt;&lt;p style="text-align: left"&gt;The key factor affecting the Fund's performance was stock selection, particularly among holdings tied to semiconductor manufacturing, data center infrastructure, and defense. Leading contributors for the period included Vicor Corporation (VICR), PDF Solutions, Inc. (PDFS), FormFactor, Inc. (FORM), and Vishay Intertechnology, Inc. (VSH). The Fund's detractors were small relative to its contributors and included Super Micro Computer, Inc. (SMCI), Thermo Fisher Scientific, Inc. (TMO), and Huntington Ingalls Industries, Inc. (HII).&lt;/p&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Investment Themes&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;The Fund's major investment theme remains the importance of U.S. infrastructure. The Fund invests in lesser-known "pick and shovel" providers behind engineering, manufacturing, and technology development. Portfolio companies sell into data centers, life sciences laboratories, semiconductor and other manufacturing facilities, transportation infrastructure, energy systems, and defense-related markets. The U.S. has underinvested in many of these areas, which may create long-term opportunities.&lt;/p&gt;&lt;p style="text-align: left"&gt;Four areas present throughout the portfolio are: Semiconductor manufacturing, data centers and artificial intelligence (AI) processing, U.S. manufacturing, and defense technology.&lt;/p&gt;&lt;p style="text-align: left"&gt;Needham Investment Management LLC, the Fund's adviser, believes the AI buildout remains in an early stage. The Fund's strategy is to invest in companies developing new products and services and to hold those that execute successfully over time.&lt;/p&gt;&lt;/div&gt;
      </oef:FactorsAffectingPerfTextBlock>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000548"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000549"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000550"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000551"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000552"
      unitRef="USD">10356</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000553"
      unitRef="USD">10397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000554"
      unitRef="USD">10495</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000555"
      unitRef="USD">10429</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000556"
      unitRef="USD">10440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000557"
      unitRef="USD">10423</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000558"
      unitRef="USD">10464</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000559"
      unitRef="USD">10481</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000560"
      unitRef="USD">10598</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000561"
      unitRef="USD">10440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000562"
      unitRef="USD">10459</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000563"
      unitRef="USD">10414</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000564"
      unitRef="USD">10182</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000565"
      unitRef="USD">10214</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000566"
      unitRef="USD">10034</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000567"
      unitRef="USD">10136</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000568"
      unitRef="USD">11039</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000569"
      unitRef="USD">10671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000570"
      unitRef="USD">10470</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000571"
      unitRef="USD">10947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000572"
      unitRef="USD">10961</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000573"
      unitRef="USD">10879</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000574"
      unitRef="USD">10507</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000575"
      unitRef="USD">11187</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000576"
      unitRef="USD">11140</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000577"
      unitRef="USD">11084</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000578"
      unitRef="USD">10857</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000579"
      unitRef="USD">11374</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000580"
      unitRef="USD">11282</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000581"
      unitRef="USD">11496</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000582"
      unitRef="USD">11169</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000583"
      unitRef="USD">11673</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000584"
      unitRef="USD">11153</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000585"
      unitRef="USD">11504</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000586"
      unitRef="USD">11231</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000587"
      unitRef="USD">11628</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000588"
      unitRef="USD">11216</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000589"
      unitRef="USD">11626</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000590"
      unitRef="USD">11398</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000591"
      unitRef="USD">11725</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000592"
      unitRef="USD">11410</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000593"
      unitRef="USD">11745</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000594"
      unitRef="USD">11670</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000595"
      unitRef="USD">11668</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000596"
      unitRef="USD">11403</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000597"
      unitRef="USD">11851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000598"
      unitRef="USD">11705</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000599"
      unitRef="USD">11857</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000600"
      unitRef="USD">11835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000601"
      unitRef="USD">12074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000602"
      unitRef="USD">11900</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000603"
      unitRef="USD">11961</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000604"
      unitRef="USD">11719</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000605"
      unitRef="USD">12098</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000606"
      unitRef="USD">11984</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000607"
      unitRef="USD">11778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000608"
      unitRef="USD">12183</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000609"
      unitRef="USD">12393</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000610"
      unitRef="USD">12323</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000611"
      unitRef="USD">12239</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000612"
      unitRef="USD">12198</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000613"
      unitRef="USD">12663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000614"
      unitRef="USD">12668</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000615"
      unitRef="USD">12516</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000616"
      unitRef="USD">12291</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000617"
      unitRef="USD">13048</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000618"
      unitRef="USD">13091</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000619"
      unitRef="USD">12976</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000620"
      unitRef="USD">11873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000621"
      unitRef="USD">13178</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000622"
      unitRef="USD">13162</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000623"
      unitRef="USD">13004</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000624"
      unitRef="USD">12415</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000625"
      unitRef="USD">13873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000626"
      unitRef="USD">13906</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000627"
      unitRef="USD">13378</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000628"
      unitRef="USD">11840</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000629"
      unitRef="USD">13361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000630"
      unitRef="USD">13470</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000631"
      unitRef="USD">12785</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000632"
      unitRef="USD">11754</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000633"
      unitRef="USD">13093</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000634"
      unitRef="USD">13448</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000635"
      unitRef="USD">12904</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000636"
      unitRef="USD">11488</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000637"
      unitRef="USD">13143</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000638"
      unitRef="USD">13321</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000639"
      unitRef="USD">12870</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000640"
      unitRef="USD">12144</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000641"
      unitRef="USD">13514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000642"
      unitRef="USD">13819</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000643"
      unitRef="USD">13401</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000644"
      unitRef="USD">12288</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000645"
      unitRef="USD">13602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000646"
      unitRef="USD">13873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000647"
      unitRef="USD">13458</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000648"
      unitRef="USD">12507</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000649"
      unitRef="USD">14054</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000650"
      unitRef="USD">14170</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000651"
      unitRef="USD">13695</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000652"
      unitRef="USD">12687</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000653"
      unitRef="USD">14547</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000654"
      unitRef="USD">14987</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000655"
      unitRef="USD">14133</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000656"
      unitRef="USD">12421</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000657"
      unitRef="USD">14571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000658"
      unitRef="USD">14923</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000659"
      unitRef="USD">13978</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000660"
      unitRef="USD">11334</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000661"
      unitRef="USD">13498</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000662"
      unitRef="USD">13446</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000663"
      unitRef="USD">12643</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000664"
      unitRef="USD">11754</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000665"
      unitRef="USD">13769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000666"
      unitRef="USD">13788</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000667"
      unitRef="USD">13038</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000668"
      unitRef="USD">10654</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000669"
      unitRef="USD">12487</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000670"
      unitRef="USD">12536</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000671"
      unitRef="USD">11563</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000672"
      unitRef="USD">11664</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000673"
      unitRef="USD">13559</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000674"
      unitRef="USD">13977</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000675"
      unitRef="USD">12772</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000676"
      unitRef="USD">12112</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000677"
      unitRef="USD">14036</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000678"
      unitRef="USD">14797</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000679"
      unitRef="USD">13314</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000680"
      unitRef="USD">12176</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000681"
      unitRef="USD">14241</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000682"
      unitRef="USD">14996</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000683"
      unitRef="USD">13238</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000684"
      unitRef="USD">12930</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000685"
      unitRef="USD">14810</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000686"
      unitRef="USD">15671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000687"
      unitRef="USD">13770</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000688"
      unitRef="USD">12353</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000689"
      unitRef="USD">13851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000690"
      unitRef="USD">14769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000691"
      unitRef="USD">12673</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000692"
      unitRef="USD">13366</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000693"
      unitRef="USD">14824</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000694"
      unitRef="USD">15806</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000695"
      unitRef="USD">13641</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000696"
      unitRef="USD">13537</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000697"
      unitRef="USD">15044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000698"
      unitRef="USD">16175</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000699"
      unitRef="USD">13803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000700"
      unitRef="USD">13292</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000701"
      unitRef="USD">14738</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000702"
      unitRef="USD">15881</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000703"
      unitRef="USD">13224</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000704"
      unitRef="USD">13640</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000705"
      unitRef="USD">14996</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000706"
      unitRef="USD">15700</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000707"
      unitRef="USD">13629</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000708"
      unitRef="USD">14188</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000709"
      unitRef="USD">15319</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000710"
      unitRef="USD">15991</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000711"
      unitRef="USD">13783</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000712"
      unitRef="USD">14701</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000713"
      unitRef="USD">15902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000714"
      unitRef="USD">16786</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000715"
      unitRef="USD">14193</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000716"
      unitRef="USD">15163</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000717"
      unitRef="USD">16361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000718"
      unitRef="USD">16983</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000719"
      unitRef="USD">14592</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000720"
      unitRef="USD">15123</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000721"
      unitRef="USD">16343</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000722"
      unitRef="USD">17142</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000723"
      unitRef="USD">14211</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_C000010138Member"
      decimals="0"
      id="Fact000724"
      unitRef="USD">14253</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000725"
      unitRef="USD">15005</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000726"
      unitRef="USD">15960</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000727"
      unitRef="USD">12862</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000728"
      unitRef="USD">12321</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000729"
      unitRef="USD">12941</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000730"
      unitRef="USD">13580</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000731"
      unitRef="USD">10258</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000732"
      unitRef="USD">14390</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000733"
      unitRef="USD">14655</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000734"
      unitRef="USD">15706</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000735"
      unitRef="USD">11713</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000736"
      unitRef="USD">15434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000737"
      unitRef="USD">15439</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000738"
      unitRef="USD">17284</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000739"
      unitRef="USD">12570</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000740"
      unitRef="USD">16102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000741"
      unitRef="USD">15792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000742"
      unitRef="USD">17689</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000743"
      unitRef="USD">12728</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000744"
      unitRef="USD">17597</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000745"
      unitRef="USD">16689</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000746"
      unitRef="USD">19102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000747"
      unitRef="USD">13315</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000748"
      unitRef="USD">17846</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000749"
      unitRef="USD">17898</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000750"
      unitRef="USD">19622</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000751"
      unitRef="USD">13782</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000752"
      unitRef="USD">17553</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000753"
      unitRef="USD">17246</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000754"
      unitRef="USD">19347</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000755"
      unitRef="USD">13335</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000756"
      unitRef="USD">17412</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000757"
      unitRef="USD">16874</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000758"
      unitRef="USD">19371</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000759"
      unitRef="USD">13625</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000760"
      unitRef="USD">20408</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000761"
      unitRef="USD">18927</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000762"
      unitRef="USD">21973</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000763"
      unitRef="USD">15570</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000764"
      unitRef="USD">21468</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000765"
      unitRef="USD">19778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000766"
      unitRef="USD">23027</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000767"
      unitRef="USD">16585</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000768"
      unitRef="USD">22601</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000769"
      unitRef="USD">19690</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000770"
      unitRef="USD">22950</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000771"
      unitRef="USD">16835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000772"
      unitRef="USD">23143</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000773"
      unitRef="USD">20306</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000774"
      unitRef="USD">23342</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000775"
      unitRef="USD">17980</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000776"
      unitRef="USD">23035</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000777"
      unitRef="USD">21033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000778"
      unitRef="USD">22897</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000779"
      unitRef="USD">18819</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000780"
      unitRef="USD">23197</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000781"
      unitRef="USD">22118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000782"
      unitRef="USD">24183</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000783"
      unitRef="USD">19667</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000784"
      unitRef="USD">23139</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000785"
      unitRef="USD">22219</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000786"
      unitRef="USD">23814</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000787"
      unitRef="USD">19705</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000788"
      unitRef="USD">24722</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000789"
      unitRef="USD">22767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000790"
      unitRef="USD">25432</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000791"
      unitRef="USD">19503</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000792"
      unitRef="USD">25336</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000793"
      unitRef="USD">23152</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000794"
      unitRef="USD">25694</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000795"
      unitRef="USD">19571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000796"
      unitRef="USD">26012</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000797"
      unitRef="USD">23812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000798"
      unitRef="USD">26523</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000799"
      unitRef="USD">19952</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000800"
      unitRef="USD">25663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000801"
      unitRef="USD">22743</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000802"
      unitRef="USD">25239</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000803"
      unitRef="USD">19160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000804"
      unitRef="USD">27061</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000805"
      unitRef="USD">24281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000806"
      unitRef="USD">27008</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000807"
      unitRef="USD">20288</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000808"
      unitRef="USD">27664</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000809"
      unitRef="USD">23912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000810"
      unitRef="USD">25867</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000811"
      unitRef="USD">19692</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000812"
      unitRef="USD">27410</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000813"
      unitRef="USD">24853</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000814"
      unitRef="USD">25958</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000815"
      unitRef="USD">20692</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000816"
      unitRef="USD">23915</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000817"
      unitRef="USD">23391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000818"
      unitRef="USD">22608</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000819"
      unitRef="USD">19200</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000820"
      unitRef="USD">23346</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000821"
      unitRef="USD">22802</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000822"
      unitRef="USD">22334</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000823"
      unitRef="USD">19414</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000824"
      unitRef="USD">23563</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000825"
      unitRef="USD">23542</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000826"
      unitRef="USD">22692</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000827"
      unitRef="USD">19683</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000828"
      unitRef="USD">20203</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000829"
      unitRef="USD">21429</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000830"
      unitRef="USD">20137</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000831"
      unitRef="USD">18284</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000832"
      unitRef="USD">20666</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000833"
      unitRef="USD">21400</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000834"
      unitRef="USD">19358</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000835"
      unitRef="USD">18421</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000836"
      unitRef="USD">18298</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000837"
      unitRef="USD">19610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000838"
      unitRef="USD">17911</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000839"
      unitRef="USD">16648</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000840"
      unitRef="USD">20736</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000841"
      unitRef="USD">21450</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000842"
      unitRef="USD">20102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000843"
      unitRef="USD">18455</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000844"
      unitRef="USD">20011</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000845"
      unitRef="USD">20649</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000846"
      unitRef="USD">19444</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000847"
      unitRef="USD">17882</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000848"
      unitRef="USD">17491</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000849"
      unitRef="USD">18734</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000850"
      unitRef="USD">17794</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000851"
      unitRef="USD">16238</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000852"
      unitRef="USD">18118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000853"
      unitRef="USD">20271</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000854"
      unitRef="USD">19192</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000855"
      unitRef="USD">17946</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000856"
      unitRef="USD">19340</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000857"
      unitRef="USD">21329</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000858"
      unitRef="USD">20236</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000859"
      unitRef="USD">19044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000860"
      unitRef="USD">18185</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000861"
      unitRef="USD">20080</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000862"
      unitRef="USD">19022</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000863"
      unitRef="USD">17989</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000864"
      unitRef="USD">19703</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000865"
      unitRef="USD">21463</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000866"
      unitRef="USD">20681</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000867"
      unitRef="USD">19649</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000868"
      unitRef="USD">19507</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000869"
      unitRef="USD">20961</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000870"
      unitRef="USD">20477</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000871"
      unitRef="USD">19293</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000872"
      unitRef="USD">19807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000873"
      unitRef="USD">21522</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000874"
      unitRef="USD">20759</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000875"
      unitRef="USD">18674</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000876"
      unitRef="USD">18402</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000877"
      unitRef="USD">21751</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000878"
      unitRef="USD">20459</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000879"
      unitRef="USD">18528</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000880"
      unitRef="USD">20962</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000881"
      unitRef="USD">21836</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000882"
      unitRef="USD">20471</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000883"
      unitRef="USD">17937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000884"
      unitRef="USD">22479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000885"
      unitRef="USD">23327</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000886"
      unitRef="USD">22054</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000887"
      unitRef="USD">19580</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000888"
      unitRef="USD">24176</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000889"
      unitRef="USD">24163</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000890"
      unitRef="USD">22721</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000891"
      unitRef="USD">20388</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000892"
      unitRef="USD">21971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000893"
      unitRef="USD">23696</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000894"
      unitRef="USD">21972</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000895"
      unitRef="USD">19798</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000896"
      unitRef="USD">20683</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000897"
      unitRef="USD">22568</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000898"
      unitRef="USD">20901</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000899"
      unitRef="USD">18757</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000900"
      unitRef="USD">18535</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000901"
      unitRef="USD">21969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000902"
      unitRef="USD">19835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000903"
      unitRef="USD">17756</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000904"
      unitRef="USD">20803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000905"
      unitRef="USD">24018</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000906"
      unitRef="USD">22255</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000907"
      unitRef="USD">19267</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000908"
      unitRef="USD">23067</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000909"
      unitRef="USD">25292</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000910"
      unitRef="USD">23942</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000911"
      unitRef="USD">20946</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000912"
      unitRef="USD">24355</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000913"
      unitRef="USD">25572</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000914"
      unitRef="USD">23813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000915"
      unitRef="USD">20588</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_C000010138Member"
      decimals="0"
      id="Fact000916"
      unitRef="USD">28324</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000917"
      unitRef="USD">26956</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000918"
      unitRef="USD">25603</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000919"
      unitRef="USD">21811</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000920"
      unitRef="USD">29700</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000921"
      unitRef="USD">27826</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000922"
      unitRef="USD">26216</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000923"
      unitRef="USD">23031</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000924"
      unitRef="USD">27607</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000925"
      unitRef="USD">26602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000926"
      unitRef="USD">24693</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000927"
      unitRef="USD">21645</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000928"
      unitRef="USD">29171</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000929"
      unitRef="USD">27858</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000930"
      unitRef="USD">24956</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000931"
      unitRef="USD">22595</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000932"
      unitRef="USD">29496</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000933"
      unitRef="USD">28721</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000934"
      unitRef="USD">25373</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000935"
      unitRef="USD">22238</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000936"
      unitRef="USD">28962</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000937"
      unitRef="USD">29255</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000938"
      unitRef="USD">25527</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000939"
      unitRef="USD">23529</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000940"
      unitRef="USD">28408</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000941"
      unitRef="USD">29892</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000942"
      unitRef="USD">26161</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000943"
      unitRef="USD">23510</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000944"
      unitRef="USD">28387</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000945"
      unitRef="USD">30510</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000946"
      unitRef="USD">27033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000947"
      unitRef="USD">23782</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000948"
      unitRef="USD">26544</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000949"
      unitRef="USD">30286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000950"
      unitRef="USD">27505</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000951"
      unitRef="USD">23614</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact000952"
      unitRef="USD">27562</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000953"
      unitRef="USD">32301</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000954"
      unitRef="USD">31171</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000955"
      unitRef="USD">25694</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact000956"
      unitRef="USD">26415</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000957"
      unitRef="USD">31313</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000958"
      unitRef="USD">29234</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000959"
      unitRef="USD">23864</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact000960"
      unitRef="USD">27012</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000961"
      unitRef="USD">32302</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000962"
      unitRef="USD">31099</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000963"
      unitRef="USD">24782</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact000964"
      unitRef="USD">24956</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000965"
      unitRef="USD">31683</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000966"
      unitRef="USD">29327</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000967"
      unitRef="USD">23705</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact000968"
      unitRef="USD">22147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000969"
      unitRef="USD">29835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000970"
      unitRef="USD">27152</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000971"
      unitRef="USD">22408</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact000972"
      unitRef="USD">21346</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000973"
      unitRef="USD">29635</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000974"
      unitRef="USD">28064</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000975"
      unitRef="USD">21903</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact000976"
      unitRef="USD">22623</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000977"
      unitRef="USD">31513</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000978"
      unitRef="USD">30755</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000979"
      unitRef="USD">23086</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact000980"
      unitRef="USD">25051</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000981"
      unitRef="USD">33114</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000982"
      unitRef="USD">32094</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000983"
      unitRef="USD">23912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_C000010138Member"
      decimals="0"
      id="Fact000984"
      unitRef="USD">25947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000985"
      unitRef="USD">33843</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000986"
      unitRef="USD">32746</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000987"
      unitRef="USD">24299</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_C000010138Member"
      decimals="0"
      id="Fact000988"
      unitRef="USD">25354</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000989"
      unitRef="USD">34626</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000990"
      unitRef="USD">33074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000991"
      unitRef="USD">25124</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_C000010138Member"
      decimals="0"
      id="Fact000992"
      unitRef="USD">27410</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000993"
      unitRef="USD">35821</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000994"
      unitRef="USD">32986</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000995"
      unitRef="USD">25239</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_C000010138Member"
      decimals="0"
      id="Fact000996"
      unitRef="USD">30142</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact000997"
      unitRef="USD">36589</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact000998"
      unitRef="USD">32894</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact000999"
      unitRef="USD">25121</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_C000010138Member"
      decimals="0"
      id="Fact001000"
      unitRef="USD">28569</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001001"
      unitRef="USD">36690</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001002"
      unitRef="USD">32196</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001003"
      unitRef="USD">25635</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_C000010138Member"
      decimals="0"
      id="Fact001004"
      unitRef="USD">28808</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001005"
      unitRef="USD">36682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001006"
      unitRef="USD">31765</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001007"
      unitRef="USD">25654</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_C000010138Member"
      decimals="0"
      id="Fact001008"
      unitRef="USD">33080</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001009"
      unitRef="USD">37251</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001010"
      unitRef="USD">31489</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001011"
      unitRef="USD">26693</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_C000010138Member"
      decimals="0"
      id="Fact001012"
      unitRef="USD">35392</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001013"
      unitRef="USD">37074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001014"
      unitRef="USD">31737</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001015"
      unitRef="USD">27793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_C000010138Member"
      decimals="0"
      id="Fact001016"
      unitRef="USD">33323</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001017"
      unitRef="USD">35231</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001018"
      unitRef="USD">29748</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001019"
      unitRef="USD">26296</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_C000010138Member"
      decimals="0"
      id="Fact001020"
      unitRef="USD">39207</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001021"
      unitRef="USD">38825</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001022"
      unitRef="USD">31672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001023"
      unitRef="USD">28363</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_C000010138Member"
      decimals="0"
      id="Fact001024"
      unitRef="USD">43643</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001025"
      unitRef="USD">40792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001026"
      unitRef="USD">33178</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001027"
      unitRef="USD">29059</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact001028"
      unitRef="USD">47627</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001029"
      unitRef="USD">40672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="0"
      id="Fact001030"
      unitRef="USD">34075</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="0"
      id="Fact001031"
      unitRef="USD">30101</oef:AccmVal>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001032">&lt;img alt="Ad2 Performance Graph" src="fp0099608-5_sa91.jpg" style="width: 348px; height: 200px"/&gt;</oef:LineGraphTableTextBlock>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001033">        &lt;div class="section-header"&gt;&lt;strong&gt;Annual Average Total Return %&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;                            &lt;tr class="header-row" style="background-color: Gainsboro"&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;1 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;5 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;10 Year&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;                            &lt;span id="xdx_908_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--ClassAxis__custom--C000010138Member_zdadhxj1kvqB"&gt;Retail Class&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--ClassAxis__custom--C000010138Member_zeM4yy4xouij"&gt;90.12&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--ClassAxis__custom--C000010138Member_zLcSnVMJERiC"&gt;14.01&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--ClassAxis__custom--C000010138Member_zhthRkLNhcNZ"&gt;16.89&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_908_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundRetailClassRussell3000IndexMember_zrU4FStKo5Hv"&gt;Russell 3000&lt;sup&gt;&#xae;&lt;/sup&gt; Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundRetailClassRussell3000IndexMember_zWuQSn04mZb7"&gt;22.82&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundRetailClassRussell3000IndexMember_zQjn9aSMEZ0c"&gt;12.31&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamGrowthFundRetailClassRussell3000IndexMember_zeETaH3kpvgt"&gt;15.06&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_907_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember_zsVrgbfIyNuz"&gt;Russell Midcap&lt;sup&gt;&#xae;&lt;/sup&gt; Growth Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember_zEdwEXYBt0Na"&gt;6.17&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_907_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember_zkjtircpqS0r"&gt;6.03&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember_z4xsTT9bnh6f"&gt;13.04&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_902_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember_zK8TTIZcxgHI"&gt;S&amp;amp;P MidCap 400&lt;sup&gt;&#xae;&lt;/sup&gt; Growth&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember_zKn0oiuht7Mw"&gt;25.89&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember_z76NYJ0i3SJ5"&gt;9.07&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--AdditionalIndexAxis__custom--NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember_zqAErLg0qyRM"&gt;11.65&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:AvgAnnlRtrTableTextBlock>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_C000010138Member"
      id="Fact001034">Retail Class</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000010138Member"
      decimals="INF"
      id="Fact001035"
      unitRef="Ratio">0.9012</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000010138Member"
      decimals="INF"
      id="Fact001036"
      unitRef="Ratio">0.1401</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_C000010138Member"
      decimals="INF"
      id="Fact001037"
      unitRef="Ratio">0.1689</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      id="Fact001038">Russell 3000&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001039"
      unitRef="Ratio">0.2282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001040"
      unitRef="Ratio">0.1231</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001041"
      unitRef="Ratio">0.1506</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      id="Fact001042">Russell Midcap&#xae; Growth Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="INF"
      id="Fact001043"
      unitRef="Ratio">0.0617</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="INF"
      id="Fact001044"
      unitRef="Ratio">0.0603</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassRussellMidcapGrowthIndexMember"
      decimals="INF"
      id="Fact001045"
      unitRef="Ratio">0.1304</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      id="Fact001046">S&amp;P MidCap 400&#xae; Growth</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="INF"
      id="Fact001047"
      unitRef="Ratio">0.2589</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="INF"
      id="Fact001048"
      unitRef="Ratio">0.0907</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamGrowthFundRetailClassSampPMidCap400GrowthMember"
      decimals="INF"
      id="Fact001049"
      unitRef="Ratio">0.1165</oef:AvgAnnlRtrPct>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001050">The Fund's past performance is not a good predictor of the Fund's future performance.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:NoDeductionOfTaxesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001051">The returns do not reflect the deduction of taxes that a shareholder would pay on Fund distributions or redemption of Fund shares.</oef:NoDeductionOfTaxesTextBlock>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001052">
        &lt;div class="section-header" style="font-size: 11pt"&gt;&lt;strong&gt;Key Fund Statistics&lt;/strong&gt; &lt;span style="font-size: 10pt"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;
          &lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
            &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Net Assets&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eus-gaap--AssetsNet_iI_uUSD_c20260630__oef--ClassAxis__custom--C000010138Member_znXBkChxpOm7"&gt;$292,571,662&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Number of Holdings&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--HoldingsCount_iI_uShares_c20260630__oef--ClassAxis__custom--C000010138Member_zumz2jabMt33"&gt;79&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;            
                        &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Portfolio Turnover&lt;/th&gt; 
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eus-gaap--InvestmentCompanyPortfolioTurnover_c20260101__20260630__oef--ClassAxis__custom--C000010138Member_zZrRAkgeMBHK"&gt;24%&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt; 
          &lt;/table&gt;
        &lt;/div&gt;
      </oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000010138Member"
      decimals="0"
      id="Fact001053"
      unitRef="USD">292571662</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000010138Member"
      decimals="INF"
      id="Fact001054"
      unitRef="Shares">79</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      decimals="INF"
      id="Fact001055"
      unitRef="Ratio">0.24</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:HoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001056">
    &lt;div class="columns-2" style="columns: 2; column-gap: 16px; column-fill: balance"&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 0.16in"&gt;
        &lt;div class="section-header"&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;What Sectors Did the Fund Invest In?&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as of June 30, 2026) (as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Information Technology
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--InformationTechnologyMember_z9tS7zpizgkk"&gt;52.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Industrials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--IndustrialsMember_zm5KpR52ymqQ"&gt;24.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Health Care
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--HealthCareMember_zdohbvwLXPYg"&gt;5.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Communication Services
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--CommunicationServicesMember_z2CuHG2ZEQI1"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Discretionary
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--ConsumerDiscretionaryMember_zJeTKdJVsPjn"&gt;1.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Financials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--FinancialsMember_zrulrE7RERXJ"&gt;1.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Materials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--MaterialsMember_zjYl4lm4bxFS"&gt;1.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Real Estate
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--RealEstateMember_zZcE4gQGFio5"&gt;0.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Energy
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--EnergyMember_zdDxmvMklsda"&gt;0.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Cash &amp;amp; Other
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__oef--IndustrySectorAxis__custom--CashampOtherMember_zPO4nrDUxHpc"&gt;10.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;img alt="Af Image" src="fp0099608-5_sa92.jpg" style="width: 348px; height: 500px"/&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div id="xdx_98A_eoef--LargestHoldingsTableTextBlock_c20260101__20260630__oef--ClassAxis__custom--C000010138Member_zITg8LMYkx3u"&gt;
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zwUvaOf5ujpn"&gt;10.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zTsaUuDqGT1K"&gt;5.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Corning, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--CorningIncMember_z3lcXAqe0ZZU"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Lam Research Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--LamResearchCorpMember_zVttnPgGefoN"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_z3foiWWueTvT"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zTrsddEf73PM"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    FormFactor, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--FormFactorIncMember_zLXsRSKhOUit"&gt;3.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Marvell Technology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--MarvellTechnologyIncMember_zupdhm3B7RUy"&gt;3.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    MKS, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--MKSIncMember_z0mdvAxR053O"&gt;3.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zoY86tQf1d5L"&gt;2.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_InformationTechnologyMember"
      decimals="INF"
      id="Fact001057"
      unitRef="Ratio">0.521</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_IndustrialsMember"
      decimals="INF"
      id="Fact001058"
      unitRef="Ratio">0.246</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_us-gaap_HealthCareMember"
      decimals="INF"
      id="Fact001059"
      unitRef="Ratio">0.058</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_CommunicationServicesMember"
      decimals="INF"
      id="Fact001060"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_ConsumerDiscretionaryMember"
      decimals="INF"
      id="Fact001061"
      unitRef="Ratio">0.014</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_FinancialsMember"
      decimals="INF"
      id="Fact001062"
      unitRef="Ratio">0.011</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_MaterialsMember"
      decimals="INF"
      id="Fact001063"
      unitRef="Ratio">0.011</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_us-gaap_RealEstateMember"
      decimals="INF"
      id="Fact001064"
      unitRef="Ratio">0.007</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_EnergyMember"
      decimals="INF"
      id="Fact001065"
      unitRef="Ratio">0.003</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_CashampOtherMember"
      decimals="INF"
      id="Fact001066"
      unitRef="Ratio">0.105</oef:PctOfNav>
    <oef:LargestHoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010138Member"
      id="Fact001067">
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zwUvaOf5ujpn"&gt;10.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zTsaUuDqGT1K"&gt;5.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Corning, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--CorningIncMember_z3lcXAqe0ZZU"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Lam Research Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--LamResearchCorpMember_zVttnPgGefoN"&gt;3.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_z3foiWWueTvT"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zTrsddEf73PM"&gt;3.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    FormFactor, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--FormFactorIncMember_zLXsRSKhOUit"&gt;3.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Marvell Technology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--MarvellTechnologyIncMember_zupdhm3B7RUy"&gt;3.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    MKS, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--MKSIncMember_z0mdvAxR053O"&gt;3.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010138Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zoY86tQf1d5L"&gt;2.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        </oef:LargestHoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_DreyfusTreasurySecuritiesCashManagementMember"
      decimals="INF"
      id="Fact001068"
      unitRef="Ratio">0.103</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_PDFSolutionsIncMember"
      decimals="INF"
      id="Fact001069"
      unitRef="Ratio">0.053</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_CorningIncMember"
      decimals="INF"
      id="Fact001070"
      unitRef="Ratio">0.037</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_LamResearchCorpMember"
      decimals="INF"
      id="Fact001071"
      unitRef="Ratio">0.037</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_VicorCorpMember"
      decimals="INF"
      id="Fact001072"
      unitRef="Ratio">0.035</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_VishayIntertechnologyIncMember"
      decimals="INF"
      id="Fact001073"
      unitRef="Ratio">0.035</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_FormFactorIncMember"
      decimals="INF"
      id="Fact001074"
      unitRef="Ratio">0.034</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_MarvellTechnologyIncMember"
      decimals="INF"
      id="Fact001075"
      unitRef="Ratio">0.031</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_MKSIncMember"
      decimals="INF"
      id="Fact001076"
      unitRef="Ratio">0.030</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010138Member_custom_VertivHoldingsCoMember"
      decimals="INF"
      id="Fact001077"
      unitRef="Ratio">0.029</oef:PctOfNav>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001078">Needham Aggressive Growth Fund</oef:FundName>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001079">Institutional Class</oef:ClassName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001080">NEAIX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001081">This semi-annual shareholder report contains important information about the Needham Aggressive Growth Fund ("the Fund") for the period of &lt;span style="white-space: nowrap"&gt;January 1, 2026&lt;/span&gt; to &lt;span style="white-space: nowrap"&gt;June 30, 2026&lt;/span&gt;.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001082">You can find additional information about the Fund at &lt;span id="xdx_90E_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_zXaFcKweQ86F"&gt;www.needhamfunds.com/resources-forms&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_900_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_zXvOcSpjzC44"&gt;1-800-625-7071&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001083">www.needhamfunds.com/resources-forms</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001084">1-800-625-7071</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001085">
        &lt;div class="section-header"&gt;&lt;strong&gt;What Were the Fund Costs for the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt;?&lt;/strong&gt;&lt;/div&gt;
        &lt;div style="font-size: 10pt"&gt;(Based on a hypothetical $10,000 investment)&lt;/div&gt;
        &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                    &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;Class Name&lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs of a $10,000 investment
                    &lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs paid as a percentage of a $10,000 investment*
                    &lt;/th&gt;
                    &lt;/tr&gt;
                                        &lt;tr&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;Institutional Class&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_zUBZSTGlWzwZ"&gt;$78&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_907_eoef--ExpenseRatioPct_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_zrvH8nCoJa26"&gt;1.18%&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                    &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      decimals="2"
      id="Fact001086"
      unitRef="USD">78</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      decimals="INF"
      id="Fact001087"
      unitRef="Ratio">0.0118</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001088">
        &lt;div class="section-header"&gt;&lt;strong&gt;How Did the Fund Perform Over the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt; and What Affected its Performance?&lt;/strong&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;For the six-month period ended June 30, 2026, the Needham Aggressive Growth Fund's Institutional Class returned 66.22%, significantly outperforming the Russell 2000 Growth Index's 22.18% and the Russell 3000 Index's 10.88%.&lt;/p&gt;&lt;p style="text-align: left"&gt;Equity markets were volatile in the first quarter as war, tariff uncertainty, and a 2025 government-shutdown-related slowdown weighed on many industries, including software, autos, and health care equipment. Volatility continued into April as the closing of the Strait of Hormuz pushed oil above $126 per barrel, but markets rallied sharply after a June memorandum of understanding between the United States and Iran eased tensions, oil prices normalized, and the Information Technology sector led a broad-based recovery.&lt;/p&gt;&lt;p style="text-align: left"&gt;The key factor affecting the Fund's performance was stock selection, particularly among holdings tied to semiconductor manufacturing, data center infrastructure, and defense. Leading contributors included nLIGHT, Inc. (LASR), which continued to benefit from strength in its laser-based defense business; Vicor Corporation (VICR), which reported strong results tied to AI-related power delivery demand; Arteris, Inc. (AIP), which raised guidance following expanded hyperscaler adoption of its technology; and Vishay Intertechnology, Inc. (VSH), which advanced its capacity expansion plans and raised $750 million to fund growth and reduce debt. The Fund's detractors were small relative to its contributors and included Vital Farms, Inc. (VITL) and Huntington Ingalls Industries, Inc. (HII).&lt;/p&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Investment Themes&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;Needham Investment Management LLC (the "Adviser") looks to invest in companies when they are investing in something new that is supported by an established business. The Fund's major investment theme remains the importance of U.S. infrastructure. The Fund invests in lesser-known "pick and shovel" providers behind engineering, manufacturing, and technology development. Portfolio companies sell into data centers, life sciences laboratories, semiconductor and other manufacturing facilities, transportation infrastructure, energy systems, and defense-related markets. The U.S. has underinvested in many of these areas, which may create long-term opportunities.&lt;/p&gt;&lt;p style="text-align: left"&gt;Four areas present throughout the portfolio are: Semiconductor manufacturing, data centers and artificial intelligence (AI) processing, U.S. manufacturing, and defense technology.&lt;/p&gt;&lt;p style="text-align: left"&gt;The Adviser believes the AI buildout remains in an early stage. The Fund's strategy is to invest in companies developing new products and services and to hold those that are successful over time.&lt;/p&gt;&lt;/div&gt;
      </oef:FactorsAffectingPerfTextBlock>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_C000176576Member"
      decimals="0"
      id="Fact001089"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001090"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001091"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001092"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001093"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001094"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001095"
      unitRef="USD">99507</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001096"
      unitRef="USD">101882</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001097"
      unitRef="USD">101624</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001098"
      unitRef="USD">100897</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001099"
      unitRef="USD">105671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001100"
      unitRef="USD">104116</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001101"
      unitRef="USD">101750</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001102"
      unitRef="USD">105743</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001103"
      unitRef="USD">105349</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001104"
      unitRef="USD">102692</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001105"
      unitRef="USD">106864</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001106"
      unitRef="USD">107289</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001107"
      unitRef="USD">102512</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001108"
      unitRef="USD">107958</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001109"
      unitRef="USD">106313</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001110"
      unitRef="USD">101480</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001111"
      unitRef="USD">108932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001112"
      unitRef="USD">109972</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001113"
      unitRef="USD">105967</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001114"
      unitRef="USD">110986</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001115"
      unitRef="USD">110908</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001116"
      unitRef="USD">104756</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001117"
      unitRef="USD">111200</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001118"
      unitRef="USD">110779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001119"
      unitRef="USD">112562</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001120"
      unitRef="USD">113912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001121"
      unitRef="USD">116811</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001122"
      unitRef="USD">113504</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001123"
      unitRef="USD">116397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001124"
      unitRef="USD">118621</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001125"
      unitRef="USD">113792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001126"
      unitRef="USD">119932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001127"
      unitRef="USD">122026</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001128"
      unitRef="USD">109363</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001129"
      unitRef="USD">121131</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001130"
      unitRef="USD">122167</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001131"
      unitRef="USD">109975</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001132"
      unitRef="USD">127515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001133"
      unitRef="USD">126929</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001134"
      unitRef="USD">107996</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001135"
      unitRef="USD">122815</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001136"
      unitRef="USD">123315</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001137"
      unitRef="USD">108703</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001138"
      unitRef="USD">120350</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001139"
      unitRef="USD">124976</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001140"
      unitRef="USD">106253</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001141"
      unitRef="USD">120807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001142"
      unitRef="USD">125098</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001143"
      unitRef="USD">115771</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001144"
      unitRef="USD">124218</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001145"
      unitRef="USD">132974</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001146"
      unitRef="USD">116619</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001147"
      unitRef="USD">125030</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001148"
      unitRef="USD">134015</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001149"
      unitRef="USD">116007</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001150"
      unitRef="USD">129179</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001151"
      unitRef="USD">136319</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001152"
      unitRef="USD">119399</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001153"
      unitRef="USD">133716</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001154"
      unitRef="USD">144806</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001155"
      unitRef="USD">113462</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001156"
      unitRef="USD">133937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001157"
      unitRef="USD">141417</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001158"
      unitRef="USD">101777</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001159"
      unitRef="USD">124075</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001160"
      unitRef="USD">123522</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001161"
      unitRef="USD">101621</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001162"
      unitRef="USD">126560</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001163"
      unitRef="USD">125455</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001164"
      unitRef="USD">92570</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001165"
      unitRef="USD">114781</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001166"
      unitRef="USD">110795</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001167"
      unitRef="USD">103464</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001168"
      unitRef="USD">124633</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001169"
      unitRef="USD">123590</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001170"
      unitRef="USD">107637</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001171"
      unitRef="USD">129017</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001172"
      unitRef="USD">131572</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001173"
      unitRef="USD">108287</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001174"
      unitRef="USD">130900</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001175"
      unitRef="USD">129791</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001176"
      unitRef="USD">114466</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001177"
      unitRef="USD">136128</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001178"
      unitRef="USD">133744</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001179"
      unitRef="USD">104602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001180"
      unitRef="USD">127318</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001181"
      unitRef="USD">123821</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001182"
      unitRef="USD">113544</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001183"
      unitRef="USD">136261</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001184"
      unitRef="USD">133358</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001185"
      unitRef="USD">117447</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001186"
      unitRef="USD">138286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001187"
      unitRef="USD">134661</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001188"
      unitRef="USD">112515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001189"
      unitRef="USD">135467</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001190"
      unitRef="USD">128850</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001191"
      unitRef="USD">117718</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001192"
      unitRef="USD">137845</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001193"
      unitRef="USD">127793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001194"
      unitRef="USD">123625</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001195"
      unitRef="USD">140812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001196"
      unitRef="USD">131429</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001197"
      unitRef="USD">127456</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001198"
      unitRef="USD">146165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001199"
      unitRef="USD">139165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001200"
      unitRef="USD">134028</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001201"
      unitRef="USD">150385</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001202"
      unitRef="USD">142354</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001203"
      unitRef="USD">134571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001204"
      unitRef="USD">150221</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001205"
      unitRef="USD">140786</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_C000176576Member"
      decimals="0"
      id="Fact001206"
      unitRef="USD">129808</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001207"
      unitRef="USD">137922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001208"
      unitRef="USD">130622</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001209"
      unitRef="USD">112082</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001210"
      unitRef="USD">118955</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001211"
      unitRef="USD">105676</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001212"
      unitRef="USD">130833</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001213"
      unitRef="USD">134710</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001214"
      unitRef="USD">121416</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001215"
      unitRef="USD">141142</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001216"
      unitRef="USD">141914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001217"
      unitRef="USD">132890</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001218"
      unitRef="USD">151392</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001219"
      unitRef="USD">145158</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001220"
      unitRef="USD">137997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001221"
      unitRef="USD">169600</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001222"
      unitRef="USD">153401</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001223"
      unitRef="USD">142739</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001224"
      unitRef="USD">172434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001225"
      unitRef="USD">164514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001226"
      unitRef="USD">151112</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001227"
      unitRef="USD">166947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001228"
      unitRef="USD">158524</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001229"
      unitRef="USD">147875</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001230"
      unitRef="USD">165078</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001231"
      unitRef="USD">155102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001232"
      unitRef="USD">148998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001233"
      unitRef="USD">191506</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001234"
      unitRef="USD">173971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001235"
      unitRef="USD">175272</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001236"
      unitRef="USD">204202</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001237"
      unitRef="USD">181797</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001238"
      unitRef="USD">191654</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001239"
      unitRef="USD">213567</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001240"
      unitRef="USD">180989</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001241"
      unitRef="USD">200895</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001242"
      unitRef="USD">220418</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001243"
      unitRef="USD">186646</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001244"
      unitRef="USD">207528</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001245"
      unitRef="USD">218972</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001246"
      unitRef="USD">193336</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001247"
      unitRef="USD">200998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001248"
      unitRef="USD">222806</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001249"
      unitRef="USD">203302</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001250"
      unitRef="USD">205380</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001251"
      unitRef="USD">226263</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001252"
      unitRef="USD">204230</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001253"
      unitRef="USD">199515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001254"
      unitRef="USD">242164</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001255"
      unitRef="USD">209266</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001256"
      unitRef="USD">208872</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001257"
      unitRef="USD">243044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001258"
      unitRef="USD">212805</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001259"
      unitRef="USD">201264</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001260"
      unitRef="USD">248763</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001261"
      unitRef="USD">218874</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001262"
      unitRef="USD">204922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001263"
      unitRef="USD">247066</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001264"
      unitRef="USD">209053</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001265"
      unitRef="USD">197065</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001266"
      unitRef="USD">265859</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001267"
      unitRef="USD">223191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001268"
      unitRef="USD">206293</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001269"
      unitRef="USD">280937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001270"
      unitRef="USD">219793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001271"
      unitRef="USD">196218</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001272"
      unitRef="USD">282683</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001273"
      unitRef="USD">228449</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001274"
      unitRef="USD">197087</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001275"
      unitRef="USD">245694</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001276"
      unitRef="USD">215008</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001277"
      unitRef="USD">170672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001278"
      unitRef="USD">239451</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001279"
      unitRef="USD">209592</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001280"
      unitRef="USD">171417</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001281"
      unitRef="USD">241532</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001282"
      unitRef="USD">216390</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001283"
      unitRef="USD">172200</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001284"
      unitRef="USD">214076</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001285"
      unitRef="USD">196971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001286"
      unitRef="USD">151073</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001287"
      unitRef="USD">211995</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001288"
      unitRef="USD">196707</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001289"
      unitRef="USD">148220</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001290"
      unitRef="USD">194139</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001291"
      unitRef="USD">180250</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001292"
      unitRef="USD">139044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001293"
      unitRef="USD">220856</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001294"
      unitRef="USD">197161</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001295"
      unitRef="USD">154612</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001296"
      unitRef="USD">217500</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001297"
      unitRef="USD">189803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001298"
      unitRef="USD">153159</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001299"
      unitRef="USD">197159</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001300"
      unitRef="USD">172203</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001301"
      unitRef="USD">139381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001302"
      unitRef="USD">206289</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001303"
      unitRef="USD">186325</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001304"
      unitRef="USD">152611</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001305"
      unitRef="USD">216694</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001306"
      unitRef="USD">196050</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001307"
      unitRef="USD">155096</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001308"
      unitRef="USD">206289</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001309"
      unitRef="USD">184571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001310"
      unitRef="USD">145140</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001311"
      unitRef="USD">226831</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001312"
      unitRef="USD">197282</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001313"
      unitRef="USD">159577</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001314"
      unitRef="USD">228979</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001315"
      unitRef="USD">192671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001316"
      unitRef="USD">157849</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001317"
      unitRef="USD">225287</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001318"
      unitRef="USD">197823</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001319"
      unitRef="USD">153954</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001320"
      unitRef="USD">209981</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001321"
      unitRef="USD">199931</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001322"
      unitRef="USD">152165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001323"
      unitRef="USD">240055</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001324"
      unitRef="USD">200709</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001325"
      unitRef="USD">152193</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001326"
      unitRef="USD">263215</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001327"
      unitRef="USD">214414</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001328"
      unitRef="USD">164812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001329"
      unitRef="USD">282347</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001330"
      unitRef="USD">222100</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001331"
      unitRef="USD">172517</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001332"
      unitRef="USD">267310</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001333"
      unitRef="USD">217813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001334"
      unitRef="USD">163537</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001335"
      unitRef="USD">258382</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001336"
      unitRef="USD">207438</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001337"
      unitRef="USD">152750</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001338"
      unitRef="USD">240525</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001339"
      unitRef="USD">201939</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001340"
      unitRef="USD">140969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001341"
      unitRef="USD">261335</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001342"
      unitRef="USD">220769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001343"
      unitRef="USD">153803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001344"
      unitRef="USD">285435</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001345"
      unitRef="USD">232479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001346"
      unitRef="USD">172221</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001347"
      unitRef="USD">292685</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001348"
      unitRef="USD">235056</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001349"
      unitRef="USD">166698</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_C000176576Member"
      decimals="0"
      id="Fact001350"
      unitRef="USD">325914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001351"
      unitRef="USD">247779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001352"
      unitRef="USD">180238</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001353"
      unitRef="USD">338937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001354"
      unitRef="USD">255772</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001355"
      unitRef="USD">185278</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001356"
      unitRef="USD">318463</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001357"
      unitRef="USD">244518</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001358"
      unitRef="USD">171012</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001359"
      unitRef="USD">341555</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001360"
      unitRef="USD">256071</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001361"
      unitRef="USD">180170</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001362"
      unitRef="USD">332761</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001363"
      unitRef="USD">263998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001364"
      unitRef="USD">179870</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001365"
      unitRef="USD">339273</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001366"
      unitRef="USD">268905</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001367"
      unitRef="USD">194594</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001368"
      unitRef="USD">328465</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001369"
      unitRef="USD">274759</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001370"
      unitRef="USD">192440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001371"
      unitRef="USD">330613</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001372"
      unitRef="USD">280443</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001373"
      unitRef="USD">194997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001374"
      unitRef="USD">311548</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001375"
      unitRef="USD">278383</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001376"
      unitRef="USD">192410</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001377"
      unitRef="USD">341958</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001378"
      unitRef="USD">296902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001379"
      unitRef="USD">216002</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001380"
      unitRef="USD">327861</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001381"
      unitRef="USD">287827</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001382"
      unitRef="USD">198320</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001383"
      unitRef="USD">338467</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001384"
      unitRef="USD">296914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001385"
      unitRef="USD">204590</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001386"
      unitRef="USD">317120</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001387"
      unitRef="USD">291224</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001388"
      unitRef="USD">190740</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001389"
      unitRef="USD">287247</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001390"
      unitRef="USD">274236</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001391"
      unitRef="USD">176275</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001392"
      unitRef="USD">289865</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001393"
      unitRef="USD">272397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001394"
      unitRef="USD">175147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001395"
      unitRef="USD">331284</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001396"
      unitRef="USD">289663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001397"
      unitRef="USD">186391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001398"
      unitRef="USD">364581</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001399"
      unitRef="USD">304378</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001400"
      unitRef="USD">197367</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_C000176576Member"
      decimals="0"
      id="Fact001401"
      unitRef="USD">374851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001402"
      unitRef="USD">311082</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001403"
      unitRef="USD">200729</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_C000176576Member"
      decimals="0"
      id="Fact001404"
      unitRef="USD">386196</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001405"
      unitRef="USD">318281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001406"
      unitRef="USD">212601</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_C000176576Member"
      decimals="0"
      id="Fact001407"
      unitRef="USD">403717</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001408"
      unitRef="USD">329265</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001409"
      unitRef="USD">221434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_C000176576Member"
      decimals="0"
      id="Fact001410"
      unitRef="USD">429092</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001411"
      unitRef="USD">336322</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001412"
      unitRef="USD">228598</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_C000176576Member"
      decimals="0"
      id="Fact001413"
      unitRef="USD">402983</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001414"
      unitRef="USD">337245</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001415"
      unitRef="USD">227034</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_C000176576Member"
      decimals="0"
      id="Fact001416"
      unitRef="USD">416694</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001417"
      unitRef="USD">337177</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001418"
      unitRef="USD">224127</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_C000176576Member"
      decimals="0"
      id="Fact001419"
      unitRef="USD">461120</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001420"
      unitRef="USD">342408</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001421"
      unitRef="USD">233039</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_C000176576Member"
      decimals="0"
      id="Fact001422"
      unitRef="USD">494233</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001423"
      unitRef="USD">340779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001424"
      unitRef="USD">232475</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_C000176576Member"
      decimals="0"
      id="Fact001425"
      unitRef="USD">466810</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001426"
      unitRef="USD">323833</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001427"
      unitRef="USD">217834</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_C000176576Member"
      decimals="0"
      id="Fact001428"
      unitRef="USD">566699</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001429"
      unitRef="USD">356873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001430"
      unitRef="USD">249835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_C000176576Member"
      decimals="0"
      id="Fact001431"
      unitRef="USD">638205</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001432"
      unitRef="USD">374955</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001433"
      unitRef="USD">264431</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001434"
      unitRef="USD">692708</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001435"
      unitRef="USD">373848</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001436"
      unitRef="USD">273831</oef:AccmVal>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001437">&lt;img alt="Ad2 Performance Graph" src="fp0099608-8_sa91.jpg" style="width: 348px; height: 200px"/&gt;</oef:LineGraphTableTextBlock>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001438">        &lt;div class="section-header"&gt;&lt;strong&gt;Annual Average Total Return %&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;                            &lt;tr class="header-row" style="background-color: Gainsboro"&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;1 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;5 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;Since Inception&lt;br/&gt;
                            (&lt;span id="xdx_900_eoef--PerfInceptionDate_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_z58jW6pgUyu0"&gt;12/30/2016&lt;/span&gt;)
                           &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90D_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--ClassAxis__custom--C000176576Member_zhpo6XFbLOkV"&gt;Institutional Class&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--ClassAxis__custom--C000176576Member_zYd9jyRwPjrn"&gt;89.98&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_907_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--ClassAxis__custom--C000176576Member_zfos0bWtt8EF"&gt;23.39&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--ClassAxis__custom--C000176576Member_z0z45rlZ86ov"&gt;22.60&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90C_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember_zao0XmToWF39"&gt;Russell 3000&lt;sup&gt;&#xae;&lt;/sup&gt; Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember_zMvDD21FIDJo"&gt;22.82&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember_zVPAIBmrBX7l"&gt;12.31&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember_zANqg2p58JZi"&gt;14.89&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90C_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember_ztxpUTpML4nx"&gt;Russell 2000&lt;sup&gt;&#xae;&lt;/sup&gt; Growth Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember_z2zqL9a7ujB9"&gt;38.74&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember_ziMKvGomTKYZ"&gt;5.57&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember_znNA6ODScjpE"&gt;11.19&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:AvgAnnlRtrTableTextBlock>
    <oef:PerfInceptionDate
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001439">2016-12-30</oef:PerfInceptionDate>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_C000176576Member"
      id="Fact001440">Institutional Class</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000176576Member"
      decimals="INF"
      id="Fact001441"
      unitRef="Ratio">0.8998</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000176576Member"
      decimals="INF"
      id="Fact001442"
      unitRef="Ratio">0.2339</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_C000176576Member"
      decimals="INF"
      id="Fact001443"
      unitRef="Ratio">0.2260</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      id="Fact001444">Russell 3000&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001445"
      unitRef="Ratio">0.2282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001446"
      unitRef="Ratio">0.1231</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001447"
      unitRef="Ratio">0.1489</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      id="Fact001448">Russell 2000&#xae; Growth Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact001449"
      unitRef="Ratio">0.3874</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact001450"
      unitRef="Ratio">0.0557</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamAggressiveGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact001451"
      unitRef="Ratio">0.1119</oef:AvgAnnlRtrPct>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001452">The Fund's past performance is not a good predictor of the Fund's future performance.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:NoDeductionOfTaxesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001453">The returns do not reflect the deduction of taxes that a shareholder would pay on Fund distributions or redemption of Fund shares.</oef:NoDeductionOfTaxesTextBlock>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001454">
        &lt;div class="section-header" style="font-size: 11pt"&gt;&lt;strong&gt;Key Fund Statistics&lt;/strong&gt; &lt;span style="font-size: 10pt"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;
          &lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
            &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Net Assets&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eus-gaap--AssetsNet_iI_uUSD_c20260630__oef--ClassAxis__custom--C000176576Member_zYeFupbSF20s"&gt;$2,611,604,938&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Number of Holdings&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--HoldingsCount_iI_uShares_c20260630__oef--ClassAxis__custom--C000176576Member_zFGbtIIpO1w3"&gt;110&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;            
                        &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Portfolio Turnover&lt;/th&gt; 
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eus-gaap--InvestmentCompanyPortfolioTurnover_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_zHile8j3prEJ"&gt;7%&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt; 
          &lt;/table&gt;
        &lt;/div&gt;
      </oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000176576Member"
      decimals="0"
      id="Fact001455"
      unitRef="USD">2611604938</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000176576Member"
      decimals="INF"
      id="Fact001456"
      unitRef="Shares">110</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      decimals="INF"
      id="Fact001457"
      unitRef="Ratio">0.07</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:HoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001458">
    &lt;div class="columns-2" style="columns: 2; column-gap: 16px; column-fill: balance"&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 0.16in"&gt;
        &lt;div class="section-header"&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;What Sectors Did the Fund Invest In?&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as of June 30, 2026) (as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Information Technology
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--InformationTechnologyMember_zUfnAE4dwgi8"&gt;40.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Industrials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--IndustrialsMember_zrruNpRhihtV"&gt;32.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Discretionary
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--ConsumerDiscretionaryMember_zmKSSxV7HQhq"&gt;9.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Energy
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--EnergyMember_z2S7Zdvw7bdZ"&gt;4.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Staples
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--ConsumerStaplesMember_zaXjbdewkM1L"&gt;3.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Materials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--MaterialsMember_z5J1wYJoPmwj"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Health Care
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--HealthCareMember_zMkHkxqQx2u3"&gt;1.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Real Estate
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--RealEstateMember_zlUAq2mrFG8k"&gt;0.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Communication Services
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--CommunicationServicesMember_zZjbJp5EAe8l"&gt;0.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Cash &amp;amp; Other
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__oef--IndustrySectorAxis__custom--CashampOtherMember_z2HSMlDjFRMj"&gt;5.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;img alt="Af Image" src="fp0099608-8_sa92.jpg" style="width: 348px; height: 500px"/&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div id="xdx_982_eoef--LargestHoldingsTableTextBlock_c20260101__20260630__oef--ClassAxis__custom--C000176576Member_zhntfilKj0pF"&gt;
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_zO92Uau7wpuV"&gt;6.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zYoAuvseOTPn"&gt;5.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zfx1BEhJ9WGc"&gt;4.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zi6X1lrXULTZ"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zRPImBWmxXpi"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    nLight, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--NLightIncMember_zqHGjKKlaRVY"&gt;4.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zxEvOFCmelYf"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Precision Group, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VishayPrecisionGroupIncMember_zJIIxYn2Do43"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CECO Environmental Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--CECOEnvironmentalCorpMember_zJJejrthbrjV"&gt;3.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Oil-Dri Corp. of America
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--OilDriCorpofAmericaMember_zVTercFv7Fmr"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_InformationTechnologyMember"
      decimals="INF"
      id="Fact001459"
      unitRef="Ratio">0.406</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_IndustrialsMember"
      decimals="INF"
      id="Fact001460"
      unitRef="Ratio">0.329</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_ConsumerDiscretionaryMember"
      decimals="INF"
      id="Fact001461"
      unitRef="Ratio">0.090</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_EnergyMember"
      decimals="INF"
      id="Fact001462"
      unitRef="Ratio">0.041</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_ConsumerStaplesMember"
      decimals="INF"
      id="Fact001463"
      unitRef="Ratio">0.032</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_MaterialsMember"
      decimals="INF"
      id="Fact001464"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_us-gaap_HealthCareMember"
      decimals="INF"
      id="Fact001465"
      unitRef="Ratio">0.016</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_us-gaap_RealEstateMember"
      decimals="INF"
      id="Fact001466"
      unitRef="Ratio">0.005</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_CommunicationServicesMember"
      decimals="INF"
      id="Fact001467"
      unitRef="Ratio">0.004</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_CashampOtherMember"
      decimals="INF"
      id="Fact001468"
      unitRef="Ratio">0.053</oef:PctOfNav>
    <oef:LargestHoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176576Member"
      id="Fact001469">
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_zO92Uau7wpuV"&gt;6.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zYoAuvseOTPn"&gt;5.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zfx1BEhJ9WGc"&gt;4.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zi6X1lrXULTZ"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zRPImBWmxXpi"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    nLight, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--NLightIncMember_zqHGjKKlaRVY"&gt;4.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zxEvOFCmelYf"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Precision Group, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--VishayPrecisionGroupIncMember_zJIIxYn2Do43"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CECO Environmental Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--CECOEnvironmentalCorpMember_zJJejrthbrjV"&gt;3.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Oil-Dri Corp. of America
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176576Member__us-gaap--InvestmentTypeAxis__custom--OilDriCorpofAmericaMember_zVTercFv7Fmr"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        </oef:LargestHoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_VicorCorpMember"
      decimals="INF"
      id="Fact001470"
      unitRef="Ratio">0.069</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_ArterisIncMember"
      decimals="INF"
      id="Fact001471"
      unitRef="Ratio">0.059</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_VishayIntertechnologyIncMember"
      decimals="INF"
      id="Fact001472"
      unitRef="Ratio">0.048</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_DreyfusTreasurySecuritiesCashManagementMember"
      decimals="INF"
      id="Fact001473"
      unitRef="Ratio">0.046</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_PDFSolutionsIncMember"
      decimals="INF"
      id="Fact001474"
      unitRef="Ratio">0.046</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_NLightIncMember"
      decimals="INF"
      id="Fact001475"
      unitRef="Ratio">0.045</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_VertivHoldingsCoMember"
      decimals="INF"
      id="Fact001476"
      unitRef="Ratio">0.033</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_VishayPrecisionGroupIncMember"
      decimals="INF"
      id="Fact001477"
      unitRef="Ratio">0.033</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_CECOEnvironmentalCorpMember"
      decimals="INF"
      id="Fact001478"
      unitRef="Ratio">0.032</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176576Member_custom_OilDriCorpofAmericaMember"
      decimals="INF"
      id="Fact001479"
      unitRef="Ratio">0.027</oef:PctOfNav>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001480">Needham Aggressive Growth Fund</oef:FundName>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001481">Retail Class</oef:ClassName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001482">NEAGX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001483">This semi-annual shareholder report contains important information about the Needham Aggressive Growth Fund ("the Fund") for the period of &lt;span style="white-space: nowrap"&gt;January 1, 2026&lt;/span&gt; to &lt;span style="white-space: nowrap"&gt;June 30, 2026&lt;/span&gt;.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001484">You can find additional information about the Fund at &lt;span id="xdx_909_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000010644Member_zcgGdKscywRG"&gt;www.needhamfunds.com/resources-forms&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_903_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000010644Member_zsFJTjTibQlN"&gt;1-800-625-7071&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001485">www.needhamfunds.com/resources-forms</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001486">1-800-625-7071</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001487">
        &lt;div class="section-header"&gt;&lt;strong&gt;What Were the Fund Costs for the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt;?&lt;/strong&gt;&lt;/div&gt;
        &lt;div style="font-size: 10pt"&gt;(Based on a hypothetical $10,000 investment)&lt;/div&gt;
        &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                    &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;Class Name&lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs of a $10,000 investment
                    &lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs paid as a percentage of a $10,000 investment*
                    &lt;/th&gt;
                    &lt;/tr&gt;
                                        &lt;tr&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;Retail Class&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000010644Member_zfsDAojtOMrC"&gt;$102&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--ExpenseRatioPct_c20260101__20260630__oef--ClassAxis__custom--C000010644Member_zEJpfv8D8Efm"&gt;1.55%&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                    &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      decimals="2"
      id="Fact001488"
      unitRef="USD">102</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      decimals="INF"
      id="Fact001489"
      unitRef="Ratio">0.0155</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001490">
        &lt;div class="section-header"&gt;&lt;strong&gt;How Did the Fund Perform Over the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt; and What Affected its Performance?&lt;/strong&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;For the six-month period ended June 30, 2026, the Needham Aggressive Growth Fund's Retail Class returned 65.91%, significantly outperforming the Russell 2000 Growth Index's 22.18% and the Russell 3000 Index's 10.88%.&lt;/p&gt;&lt;p style="text-align: left"&gt;Equity markets were volatile in the first quarter as war, tariff uncertainty, and a 2025 government-shutdown-related slowdown weighed on many industries, including software, autos, and health care equipment. Volatility continued into April as the closing of the Strait of Hormuz pushed oil above $126 per barrel, but markets rallied sharply after a June memorandum of understanding between the United States and Iran eased tensions, oil prices normalized, and the Information Technology sector led a broad-based recovery.&lt;/p&gt;&lt;p style="text-align: left"&gt;The key factor affecting the Fund's performance was stock selection, particularly among holdings tied to semiconductor manufacturing, data center infrastructure, and defense. Leading contributors included nLIGHT, Inc. (LASR), which continued to benefit from strength in its laser-based defense business; Vicor Corporation (VICR), which reported strong results tied to AI-related power delivery demand; Arteris, Inc. (AIP), which raised guidance following expanded hyperscaler adoption of its technology; and Vishay Intertechnology, Inc. (VSH), which advanced its capacity expansion plans and raised $750 million to fund growth and reduce debt. The Fund's detractors were small relative to its contributors and included Vital Farms, Inc. (VITL) and Huntington Ingalls Industries, Inc. (HII).&lt;/p&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Investment Themes&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;Needham Investment Management LLC (the "Adviser") looks to invest in companies when they are investing in something new that is supported by an established business. The Fund's major investment theme remains the importance of U.S. infrastructure. The Fund invests in lesser-known "pick and shovel" providers behind engineering, manufacturing, and technology development. Portfolio companies sell into data centers, life sciences laboratories, semiconductor and other manufacturing facilities, transportation infrastructure, energy systems, and defense-related markets. The U.S. has underinvested in many of these areas, which may create long-term opportunities.&lt;/p&gt;&lt;p style="text-align: left"&gt;Four areas present throughout the portfolio are: Semiconductor manufacturing, data centers and artificial intelligence (AI) processing, U.S. manufacturing, and defense technology.&lt;/p&gt;&lt;p style="text-align: left"&gt;The Adviser believes the AI buildout remains in an early stage. The Fund's strategy is to invest in companies developing new products and services and to hold those that are successful over time.&lt;/p&gt;&lt;/div&gt;
      </oef:FactorsAffectingPerfTextBlock>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001491"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001492"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001493"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001494"
      unitRef="USD">10393</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001495"
      unitRef="USD">10397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001496"
      unitRef="USD">10654</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001497"
      unitRef="USD">10580</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001498"
      unitRef="USD">10423</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001499"
      unitRef="USD">10767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001500"
      unitRef="USD">10932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001501"
      unitRef="USD">10440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001502"
      unitRef="USD">10922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001503"
      unitRef="USD">10917</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001504"
      unitRef="USD">10214</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001505"
      unitRef="USD">10243</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001506"
      unitRef="USD">11938</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001507"
      unitRef="USD">10671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001508"
      unitRef="USD">11160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001509"
      unitRef="USD">12046</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001510"
      unitRef="USD">10879</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001511"
      unitRef="USD">11312</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001512"
      unitRef="USD">11976</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001513"
      unitRef="USD">11084</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001514"
      unitRef="USD">11496</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001515"
      unitRef="USD">12138</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001516"
      unitRef="USD">11496</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001517"
      unitRef="USD">11778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001518"
      unitRef="USD">12240</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001519"
      unitRef="USD">11504</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001520"
      unitRef="USD">11917</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001521"
      unitRef="USD">12343</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001522"
      unitRef="USD">11626</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001523"
      unitRef="USD">12137</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001524"
      unitRef="USD">12316</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001525"
      unitRef="USD">11745</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001526"
      unitRef="USD">12026</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001527"
      unitRef="USD">12186</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001528"
      unitRef="USD">11851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001529"
      unitRef="USD">12440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001530"
      unitRef="USD">12721</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001531"
      unitRef="USD">12074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001532"
      unitRef="USD">12546</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001533"
      unitRef="USD">12570</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001534"
      unitRef="USD">12098</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001535"
      unitRef="USD">12531</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001536"
      unitRef="USD">13500</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001537"
      unitRef="USD">12393</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001538"
      unitRef="USD">13214</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001539"
      unitRef="USD">13602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001540"
      unitRef="USD">12663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001541"
      unitRef="USD">13418</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001542"
      unitRef="USD">13631</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001543"
      unitRef="USD">13048</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001544"
      unitRef="USD">13804</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001545"
      unitRef="USD">13097</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001546"
      unitRef="USD">13178</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001547"
      unitRef="USD">13820</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001548"
      unitRef="USD">13160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001549"
      unitRef="USD">13873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001550"
      unitRef="USD">14358</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001551"
      unitRef="USD">12921</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001552"
      unitRef="USD">13361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001553"
      unitRef="USD">13950</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001554"
      unitRef="USD">13001</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001555"
      unitRef="USD">13093</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001556"
      unitRef="USD">14137</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001557"
      unitRef="USD">12700</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001558"
      unitRef="USD">13143</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001559"
      unitRef="USD">14151</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001560"
      unitRef="USD">13836</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001561"
      unitRef="USD">13514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001562"
      unitRef="USD">15042</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001563"
      unitRef="USD">13926</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001564"
      unitRef="USD">13602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001565"
      unitRef="USD">15160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001566"
      unitRef="USD">13847</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001567"
      unitRef="USD">14054</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001568"
      unitRef="USD">15421</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001569"
      unitRef="USD">14244</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001570"
      unitRef="USD">14547</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001571"
      unitRef="USD">16381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001572"
      unitRef="USD">13529</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001573"
      unitRef="USD">14571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001574"
      unitRef="USD">15997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001575"
      unitRef="USD">12132</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001576"
      unitRef="USD">13498</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001577"
      unitRef="USD">13973</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001578"
      unitRef="USD">12107</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001579"
      unitRef="USD">13769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001580"
      unitRef="USD">14192</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001581"
      unitRef="USD">11028</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001582"
      unitRef="USD">12487</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001583"
      unitRef="USD">12533</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001584"
      unitRef="USD">12317</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001585"
      unitRef="USD">13559</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001586"
      unitRef="USD">13981</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001587"
      unitRef="USD">12807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001588"
      unitRef="USD">14036</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001589"
      unitRef="USD">14884</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001590"
      unitRef="USD">12879</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001591"
      unitRef="USD">14241</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001592"
      unitRef="USD">14682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001593"
      unitRef="USD">13605</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001594"
      unitRef="USD">14810</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001595"
      unitRef="USD">15129</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001596"
      unitRef="USD">12428</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001597"
      unitRef="USD">13851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001598"
      unitRef="USD">14007</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001599"
      unitRef="USD">13487</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001600"
      unitRef="USD">14824</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001601"
      unitRef="USD">15086</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001602"
      unitRef="USD">13945</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001603"
      unitRef="USD">15044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001604"
      unitRef="USD">15233</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001605"
      unitRef="USD">13350</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001606"
      unitRef="USD">14738</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001607"
      unitRef="USD">14576</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001608"
      unitRef="USD">13965</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001609"
      unitRef="USD">14996</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001610"
      unitRef="USD">14456</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001611"
      unitRef="USD">14658</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001612"
      unitRef="USD">15319</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001613"
      unitRef="USD">14867</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001614"
      unitRef="USD">15100</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001615"
      unitRef="USD">15902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001616"
      unitRef="USD">15742</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001617"
      unitRef="USD">15873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001618"
      unitRef="USD">16361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001619"
      unitRef="USD">16103</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001620"
      unitRef="USD">15931</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001621"
      unitRef="USD">16343</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001622"
      unitRef="USD">15926</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_C000010644Member"
      decimals="0"
      id="Fact001623"
      unitRef="USD">15355</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001624"
      unitRef="USD">15005</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001625"
      unitRef="USD">14776</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001626"
      unitRef="USD">13263</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001627"
      unitRef="USD">12941</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001628"
      unitRef="USD">11954</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001629"
      unitRef="USD">15465</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001630"
      unitRef="USD">14655</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001631"
      unitRef="USD">13735</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001632"
      unitRef="USD">16675</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001633"
      unitRef="USD">15439</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001634"
      unitRef="USD">15033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001635"
      unitRef="USD">17885</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001636"
      unitRef="USD">15792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001637"
      unitRef="USD">15610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001638"
      unitRef="USD">20022</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001639"
      unitRef="USD">16689</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001640"
      unitRef="USD">16147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001641"
      unitRef="USD">20335</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001642"
      unitRef="USD">17898</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001643"
      unitRef="USD">17094</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001644"
      unitRef="USD">19686</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001645"
      unitRef="USD">17246</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001646"
      unitRef="USD">16728</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001647"
      unitRef="USD">19453</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001648"
      unitRef="USD">16874</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001649"
      unitRef="USD">16855</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001650"
      unitRef="USD">22546</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001651"
      unitRef="USD">18927</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001652"
      unitRef="USD">19827</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001653"
      unitRef="USD">24030</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001654"
      unitRef="USD">19778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001655"
      unitRef="USD">21680</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001656"
      unitRef="USD">25118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001657"
      unitRef="USD">19690</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001658"
      unitRef="USD">22725</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001659"
      unitRef="USD">25917</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001660"
      unitRef="USD">20306</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001661"
      unitRef="USD">23476</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001662"
      unitRef="USD">25727</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001663"
      unitRef="USD">21033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001664"
      unitRef="USD">22737</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001665"
      unitRef="USD">26161</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001666"
      unitRef="USD">22118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001667"
      unitRef="USD">23233</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001668"
      unitRef="USD">26556</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001669"
      unitRef="USD">22219</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001670"
      unitRef="USD">22569</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001671"
      unitRef="USD">28405</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001672"
      unitRef="USD">22767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001673"
      unitRef="USD">23628</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001674"
      unitRef="USD">28489</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001675"
      unitRef="USD">23152</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001676"
      unitRef="USD">22767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001677"
      unitRef="USD">29151</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001678"
      unitRef="USD">23812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001679"
      unitRef="USD">23181</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001680"
      unitRef="USD">28930</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001681"
      unitRef="USD">22743</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001682"
      unitRef="USD">22292</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001683"
      unitRef="USD">31114</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001684"
      unitRef="USD">24281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001685"
      unitRef="USD">23336</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001686"
      unitRef="USD">32863</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001687"
      unitRef="USD">23912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001688"
      unitRef="USD">22196</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001689"
      unitRef="USD">33051</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001690"
      unitRef="USD">24853</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001691"
      unitRef="USD">22295</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001692"
      unitRef="USD">28701</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001693"
      unitRef="USD">23391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001694"
      unitRef="USD">19307</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001695"
      unitRef="USD">27959</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001696"
      unitRef="USD">22802</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001697"
      unitRef="USD">19391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001698"
      unitRef="USD">28179</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001699"
      unitRef="USD">23542</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001700"
      unitRef="USD">19479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001701"
      unitRef="USD">24969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001702"
      unitRef="USD">21429</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001703"
      unitRef="USD">17089</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001704"
      unitRef="USD">24717</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001705"
      unitRef="USD">21400</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001706"
      unitRef="USD">16767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001707"
      unitRef="USD">22623</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001708"
      unitRef="USD">19610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001709"
      unitRef="USD">15729</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001710"
      unitRef="USD">25711</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001711"
      unitRef="USD">21450</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001712"
      unitRef="USD">17490</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001713"
      unitRef="USD">25312</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001714"
      unitRef="USD">20649</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001715"
      unitRef="USD">17325</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001716"
      unitRef="USD">22933</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001717"
      unitRef="USD">18734</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001718"
      unitRef="USD">15767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001719"
      unitRef="USD">23984</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001720"
      unitRef="USD">20271</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001721"
      unitRef="USD">17263</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001722"
      unitRef="USD">25173</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001723"
      unitRef="USD">21329</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001724"
      unitRef="USD">17545</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001725"
      unitRef="USD">23951</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001726"
      unitRef="USD">20080</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001727"
      unitRef="USD">16418</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001728"
      unitRef="USD">26330</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001729"
      unitRef="USD">21463</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001730"
      unitRef="USD">18052</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001731"
      unitRef="USD">26558</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001732"
      unitRef="USD">20961</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001733"
      unitRef="USD">17856</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001734"
      unitRef="USD">26118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001735"
      unitRef="USD">21522</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001736"
      unitRef="USD">17415</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001737"
      unitRef="USD">24326</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001738"
      unitRef="USD">21751</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001739"
      unitRef="USD">17213</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001740"
      unitRef="USD">27796</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001741"
      unitRef="USD">21836</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001742"
      unitRef="USD">17216</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001743"
      unitRef="USD">30493</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001744"
      unitRef="USD">23327</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001745"
      unitRef="USD">18644</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001746"
      unitRef="USD">32700</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001747"
      unitRef="USD">24163</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001748"
      unitRef="USD">19515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001749"
      unitRef="USD">30941</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001750"
      unitRef="USD">23696</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001751"
      unitRef="USD">18499</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001752"
      unitRef="USD">29898</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001753"
      unitRef="USD">22568</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001754"
      unitRef="USD">17279</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001755"
      unitRef="USD">27813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001756"
      unitRef="USD">21969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001757"
      unitRef="USD">15947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001758"
      unitRef="USD">30199</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001759"
      unitRef="USD">24018</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001760"
      unitRef="USD">17398</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001761"
      unitRef="USD">32969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001762"
      unitRef="USD">25292</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001763"
      unitRef="USD">19482</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001764"
      unitRef="USD">33792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001765"
      unitRef="USD">25572</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001766"
      unitRef="USD">18857</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_C000010644Member"
      decimals="0"
      id="Fact001767"
      unitRef="USD">37613</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001768"
      unitRef="USD">26956</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001769"
      unitRef="USD">20389</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001770"
      unitRef="USD">39096</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001771"
      unitRef="USD">27826</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001772"
      unitRef="USD">20959</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001773"
      unitRef="USD">36717</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001774"
      unitRef="USD">26602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001775"
      unitRef="USD">19345</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001776"
      unitRef="USD">39373</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001777"
      unitRef="USD">27858</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001778"
      unitRef="USD">20381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001779"
      unitRef="USD">38338</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001780"
      unitRef="USD">28721</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001781"
      unitRef="USD">20347</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001782"
      unitRef="USD">39071</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001783"
      unitRef="USD">29255</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001784"
      unitRef="USD">22013</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001785"
      unitRef="USD">37817</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001786"
      unitRef="USD">29892</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001787"
      unitRef="USD">21769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001788"
      unitRef="USD">38053</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001789"
      unitRef="USD">30510</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001790"
      unitRef="USD">22058</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001791"
      unitRef="USD">35837</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001792"
      unitRef="USD">30286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001793"
      unitRef="USD">21766</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001794"
      unitRef="USD">39324</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001795"
      unitRef="USD">32301</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001796"
      unitRef="USD">24434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001797"
      unitRef="USD">37686</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001798"
      unitRef="USD">31313</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001799"
      unitRef="USD">22434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001800"
      unitRef="USD">38884</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001801"
      unitRef="USD">32302</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001802"
      unitRef="USD">23143</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001803"
      unitRef="USD">36423</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001804"
      unitRef="USD">31683</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001805"
      unitRef="USD">21577</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001806"
      unitRef="USD">32977</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001807"
      unitRef="USD">29835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001808"
      unitRef="USD">19940</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001809"
      unitRef="USD">33254</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001810"
      unitRef="USD">29635</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001811"
      unitRef="USD">19813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001812"
      unitRef="USD">38004</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001813"
      unitRef="USD">31513</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001814"
      unitRef="USD">21085</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001815"
      unitRef="USD">41800</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001816"
      unitRef="USD">33114</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001817"
      unitRef="USD">22326</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_C000010644Member"
      decimals="0"
      id="Fact001818"
      unitRef="USD">42965</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001819"
      unitRef="USD">33843</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001820"
      unitRef="USD">22707</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_C000010644Member"
      decimals="0"
      id="Fact001821"
      unitRef="USD">44244</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001822"
      unitRef="USD">34626</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001823"
      unitRef="USD">24050</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_C000010644Member"
      decimals="0"
      id="Fact001824"
      unitRef="USD">46240</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001825"
      unitRef="USD">35821</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001826"
      unitRef="USD">25049</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_C000010644Member"
      decimals="0"
      id="Fact001827"
      unitRef="USD">49124</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001828"
      unitRef="USD">36589</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001829"
      unitRef="USD">25859</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_C000010644Member"
      decimals="0"
      id="Fact001830"
      unitRef="USD">46126</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001831"
      unitRef="USD">36690</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001832"
      unitRef="USD">25682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_C000010644Member"
      decimals="0"
      id="Fact001833"
      unitRef="USD">47676</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001834"
      unitRef="USD">36682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001835"
      unitRef="USD">25353</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_C000010644Member"
      decimals="0"
      id="Fact001836"
      unitRef="USD">52741</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001837"
      unitRef="USD">37251</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001838"
      unitRef="USD">26362</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_C000010644Member"
      decimals="0"
      id="Fact001839"
      unitRef="USD">56515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001840"
      unitRef="USD">37074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001841"
      unitRef="USD">26298</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_C000010644Member"
      decimals="0"
      id="Fact001842"
      unitRef="USD">53357</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001843"
      unitRef="USD">35231</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001844"
      unitRef="USD">24642</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_C000010644Member"
      decimals="0"
      id="Fact001845"
      unitRef="USD">64754</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001846"
      unitRef="USD">38825</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001847"
      unitRef="USD">28262</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_C000010644Member"
      decimals="0"
      id="Fact001848"
      unitRef="USD">72901</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001849"
      unitRef="USD">40792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001850"
      unitRef="USD">29913</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001851"
      unitRef="USD">79107</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact001852"
      unitRef="USD">40672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001853"
      unitRef="USD">30976</oef:AccmVal>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001854">&lt;img alt="Ad2 Performance Graph" src="fp0099608-7_sa91.jpg" style="width: 348px; height: 200px"/&gt;</oef:LineGraphTableTextBlock>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001855">        &lt;div class="section-header"&gt;&lt;strong&gt;Annual Average Total Return %&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;                            &lt;tr class="header-row" style="background-color: Gainsboro"&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;1 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;5 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;10 Year&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;                            &lt;span id="xdx_900_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--ClassAxis__custom--C000010644Member_zGycEOCwZddO"&gt;Retail Class&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--ClassAxis__custom--C000010644Member_zOtTdCueNXP3"&gt;89.23&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--ClassAxis__custom--C000010644Member_zLPvZssCgL6h"&gt;22.73&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--ClassAxis__custom--C000010644Member_zYzGzyyNYiyI"&gt;22.98&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_904_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember_zWx2zSyHIiTQ"&gt;Russell 3000&lt;sup&gt;&#xae;&lt;/sup&gt; Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember_zKf7WkcTsMoK"&gt;22.82&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember_zvlkKTzJO0Kr"&gt;12.31&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember_zFeMP28rCaKX"&gt;15.06&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90C_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember_zfxyj4fLPCCf"&gt;Russell 2000&lt;sup&gt;&#xae;&lt;/sup&gt; Growth Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_907_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember_z2lQqZmfwvYa"&gt;38.74&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember_z76HRQgKL9ts"&gt;5.57&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--AdditionalIndexAxis__custom--NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember_z0mu7AdXu2T4"&gt;11.97&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:AvgAnnlRtrTableTextBlock>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_C000010644Member"
      id="Fact001856">Retail Class</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000010644Member"
      decimals="INF"
      id="Fact001857"
      unitRef="Ratio">0.8923</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000010644Member"
      decimals="INF"
      id="Fact001858"
      unitRef="Ratio">0.2273</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_C000010644Member"
      decimals="INF"
      id="Fact001859"
      unitRef="Ratio">0.2298</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      id="Fact001860">Russell 3000&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001861"
      unitRef="Ratio">0.2282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001862"
      unitRef="Ratio">0.1231</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact001863"
      unitRef="Ratio">0.1506</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      id="Fact001864">Russell 2000&#xae; Growth Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact001865"
      unitRef="Ratio">0.3874</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact001866"
      unitRef="Ratio">0.0557</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamAggressiveGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact001867"
      unitRef="Ratio">0.1197</oef:AvgAnnlRtrPct>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001868">The Fund's past performance is not a good predictor of the Fund's future performance.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:NoDeductionOfTaxesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001869">The returns do not reflect the deduction of taxes that a shareholder would pay on Fund distributions or redemption of Fund shares.</oef:NoDeductionOfTaxesTextBlock>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001870">
        &lt;div class="section-header" style="font-size: 11pt"&gt;&lt;strong&gt;Key Fund Statistics&lt;/strong&gt; &lt;span style="font-size: 10pt"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;
          &lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
            &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Net Assets&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eus-gaap--AssetsNet_iI_uUSD_c20260630__oef--ClassAxis__custom--C000010644Member_zAqg1JTTzk9X"&gt;$2,611,604,938&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Number of Holdings&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--HoldingsCount_iI_uShares_c20260630__oef--ClassAxis__custom--C000010644Member_zFKOv2r5kI9K"&gt;110&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;            
                        &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Portfolio Turnover&lt;/th&gt; 
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eus-gaap--InvestmentCompanyPortfolioTurnover_c20260101__20260630__oef--ClassAxis__custom--C000010644Member_z1pNeBshOHHO"&gt;7%&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt; 
          &lt;/table&gt;
        &lt;/div&gt;
      </oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000010644Member"
      decimals="0"
      id="Fact001871"
      unitRef="USD">2611604938</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000010644Member"
      decimals="INF"
      id="Fact001872"
      unitRef="Shares">110</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      decimals="INF"
      id="Fact001873"
      unitRef="Ratio">0.07</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:HoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001874">
    &lt;div class="columns-2" style="columns: 2; column-gap: 16px; column-fill: balance"&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 0.16in"&gt;
        &lt;div class="section-header"&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;What Sectors Did the Fund Invest In?&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as of June 30, 2026) (as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Information Technology
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--InformationTechnologyMember_zxViqFtp4TRf"&gt;40.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Industrials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--IndustrialsMember_znRLxGgnYW2l"&gt;32.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Discretionary
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--ConsumerDiscretionaryMember_ze3Kx5EIkqcJ"&gt;9.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Energy
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--EnergyMember_zpPCEAi8mpsn"&gt;4.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Staples
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--ConsumerStaplesMember_zGWWyPwkjlbx"&gt;3.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Materials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--MaterialsMember_z4pyZGoREyyR"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Health Care
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--HealthCareMember_zknCjXFwlVGE"&gt;1.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Real Estate
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--RealEstateMember_zMhQfoueL8AU"&gt;0.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Communication Services
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--CommunicationServicesMember_zWzrqOCgbcol"&gt;0.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Cash &amp;amp; Other
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__oef--IndustrySectorAxis__custom--CashampOtherMember_zsIpAVEh552d"&gt;5.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;img alt="Af Image" src="fp0099608-7_sa92.jpg" style="width: 348px; height: 500px"/&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div id="xdx_986_eoef--LargestHoldingsTableTextBlock_c20260101__20260630__oef--ClassAxis__custom--C000010644Member_zHXay3JPtsE8"&gt;
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_z8gos8CITKsB"&gt;6.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zDfi1SzsBze8"&gt;5.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zYYiUmVMg9im"&gt;4.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_ziosIVRZrc8L"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zivYIq2cx3yF"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    nLight, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--NLightIncMember_z8MbJZKXfLx9"&gt;4.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zTQaAEF3ZSHS"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Precision Group, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VishayPrecisionGroupIncMember_zS7PzXdiNTny"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CECO Environmental Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--CECOEnvironmentalCorpMember_z4Fars1pPPsr"&gt;3.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Oil-Dri Corp. of America
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--OilDriCorpofAmericaMember_zVd7KOuaNMSp"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_InformationTechnologyMember"
      decimals="INF"
      id="Fact001875"
      unitRef="Ratio">0.406</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_IndustrialsMember"
      decimals="INF"
      id="Fact001876"
      unitRef="Ratio">0.329</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_ConsumerDiscretionaryMember"
      decimals="INF"
      id="Fact001877"
      unitRef="Ratio">0.090</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_EnergyMember"
      decimals="INF"
      id="Fact001878"
      unitRef="Ratio">0.041</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_ConsumerStaplesMember"
      decimals="INF"
      id="Fact001879"
      unitRef="Ratio">0.032</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_MaterialsMember"
      decimals="INF"
      id="Fact001880"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_us-gaap_HealthCareMember"
      decimals="INF"
      id="Fact001881"
      unitRef="Ratio">0.016</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_us-gaap_RealEstateMember"
      decimals="INF"
      id="Fact001882"
      unitRef="Ratio">0.005</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_CommunicationServicesMember"
      decimals="INF"
      id="Fact001883"
      unitRef="Ratio">0.004</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_CashampOtherMember"
      decimals="INF"
      id="Fact001884"
      unitRef="Ratio">0.053</oef:PctOfNav>
    <oef:LargestHoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010644Member"
      id="Fact001885">
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vicor Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VicorCorpMember_z8gos8CITKsB"&gt;6.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zDfi1SzsBze8"&gt;5.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zYYiUmVMg9im"&gt;4.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_ziosIVRZrc8L"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zivYIq2cx3yF"&gt;4.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    nLight, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--NLightIncMember_z8MbJZKXfLx9"&gt;4.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vertiv Holdings Co.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VertivHoldingsCoMember_zTQaAEF3ZSHS"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Precision Group, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--VishayPrecisionGroupIncMember_zS7PzXdiNTny"&gt;3.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CECO Environmental Corp.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--CECOEnvironmentalCorpMember_z4Fars1pPPsr"&gt;3.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Oil-Dri Corp. of America
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010644Member__us-gaap--InvestmentTypeAxis__custom--OilDriCorpofAmericaMember_zVd7KOuaNMSp"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        </oef:LargestHoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_VicorCorpMember"
      decimals="INF"
      id="Fact001886"
      unitRef="Ratio">0.069</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_ArterisIncMember"
      decimals="INF"
      id="Fact001887"
      unitRef="Ratio">0.059</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_VishayIntertechnologyIncMember"
      decimals="INF"
      id="Fact001888"
      unitRef="Ratio">0.048</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_DreyfusTreasurySecuritiesCashManagementMember"
      decimals="INF"
      id="Fact001889"
      unitRef="Ratio">0.046</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_PDFSolutionsIncMember"
      decimals="INF"
      id="Fact001890"
      unitRef="Ratio">0.046</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_NLightIncMember"
      decimals="INF"
      id="Fact001891"
      unitRef="Ratio">0.045</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_VertivHoldingsCoMember"
      decimals="INF"
      id="Fact001892"
      unitRef="Ratio">0.033</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_VishayPrecisionGroupIncMember"
      decimals="INF"
      id="Fact001893"
      unitRef="Ratio">0.033</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_CECOEnvironmentalCorpMember"
      decimals="INF"
      id="Fact001894"
      unitRef="Ratio">0.032</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010644Member_custom_OilDriCorpofAmericaMember"
      decimals="INF"
      id="Fact001895"
      unitRef="Ratio">0.027</oef:PctOfNav>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001896">Needham Small Cap Growth Fund</oef:FundName>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001897">Institutional Class</oef:ClassName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001898">NESIX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001899">This semi-annual shareholder report contains important information about the Needham Small Cap Growth Fund ("the Fund") for the period of &lt;span style="white-space: nowrap"&gt;January 1, 2026&lt;/span&gt; to &lt;span style="white-space: nowrap"&gt;June 30, 2026&lt;/span&gt;.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001900">You can find additional information about the Fund at &lt;span id="xdx_90A_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_zVcY5LVkBMr2"&gt;www.needhamfunds.com/resources-forms&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_902_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_zUNB57aiOLDK"&gt;1-800-625-7071&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001901">www.needhamfunds.com/resources-forms</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001902">1-800-625-7071</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001903">
        &lt;div class="section-header"&gt;&lt;strong&gt;What Were the Fund Costs for the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt;?&lt;/strong&gt;&lt;/div&gt;
        &lt;div style="font-size: 10pt"&gt;(Based on a hypothetical $10,000 investment)&lt;/div&gt;
        &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                    &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;Class Name&lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs of a $10,000 investment
                    &lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs paid as a percentage of a $10,000 investment*
                    &lt;/th&gt;
                    &lt;/tr&gt;
                                        &lt;tr&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;Institutional Class&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_z5OQVN4YFTXX"&gt;$84&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--ExpenseRatioPct_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_zshnb7YdFSRr"&gt;1.18%&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                    &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      decimals="2"
      id="Fact001904"
      unitRef="USD">84</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      decimals="INF"
      id="Fact001905"
      unitRef="Ratio">0.0118</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact001906">
        &lt;div class="section-header"&gt;&lt;strong&gt;How Did the Fund Perform Over the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt; and What Affected its Performance?&lt;/strong&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;For the six-month period ended June 30, 2026, the Needham Small Cap Growth Fund's Institutional Class returned 87.13%, significantly outperforming the Russell 2000 Growth Index's 22.18% and the Russell 3000 Index's 10.88%.&lt;/p&gt;&lt;p style="text-align: left"&gt;Small-cap equities were volatile early in 2026 as the U.S.-Iran war drove oil prices above $100 per barrel and introduced broad market uncertainty. Volatility continued into April with the closing of the Strait of Hormuz, which pushed oil to a peak of $126 per barrel, before a June memorandum of understanding between the United States and Iran eased tensions. Small-cap stocks staged a significant recovery in the second quarter as investor interest in the asset class accelerated, merger and acquisition activity picked up, and Information Technology led market gains.&lt;/p&gt;&lt;p style="text-align: left"&gt;The key factor affecting the Fund's performance was stock selection, particularly among semiconductor, communications infrastructure, and specialty materials holdings. Leading contributors for the period included Arteris, Inc. (AIP), which reported strong bookings and raised guidance; Vishay Intertechnology, Inc. (VSH), which advanced its capacity expansion strategy; and TTM Technologies, Inc. (TTMI) and nLIGHT, Inc. (LASR), which benefited from improving fundamentals and renewed investor confidence earlier in the period. The Fund's detractors were small relative to its contributors and included CoStar Group, Inc. (CSGP), Harmonic, Inc. (HLIT), and Lantronix, Inc. (LTRX).&lt;/p&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Investment Themes&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;The Fund's major investment theme remains the importance of technology-driven infrastructure and industrial innovation. Portfolio companies sell products and services into data centers, communications infrastructure, semiconductor and advanced manufacturing facilities, defense systems, and specialty material markets. Needham Investment Management LLC, the Fund's investment adviser, believes that many of these industries continue to benefit from long-term capital spending trends and ongoing technological innovation.&lt;/p&gt;&lt;/div&gt;
      </oef:FactorsAffectingPerfTextBlock>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_C000176577Member"
      decimals="0"
      id="Fact001907"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001908"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001909"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact001910"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001911"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302016-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001912"
      unitRef="USD">100000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact001913"
      unitRef="USD">100787</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001914"
      unitRef="USD">101882</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001915"
      unitRef="USD">101624</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact001916"
      unitRef="USD">100262</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001917"
      unitRef="USD">105671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001918"
      unitRef="USD">104116</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact001919"
      unitRef="USD">101639</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001920"
      unitRef="USD">105743</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001921"
      unitRef="USD">105349</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact001922"
      unitRef="USD">102033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001923"
      unitRef="USD">106864</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001924"
      unitRef="USD">107289</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact001925"
      unitRef="USD">103541</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001926"
      unitRef="USD">107958</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001927"
      unitRef="USD">106313</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact001928"
      unitRef="USD">107279</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001929"
      unitRef="USD">108932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001930"
      unitRef="USD">109972</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact001931"
      unitRef="USD">109377</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001932"
      unitRef="USD">110986</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001933"
      unitRef="USD">110908</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact001934"
      unitRef="USD">107672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001935"
      unitRef="USD">111200</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001936"
      unitRef="USD">110779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact001937"
      unitRef="USD">113770</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001938"
      unitRef="USD">113912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001939"
      unitRef="USD">116811</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact001940"
      unitRef="USD">114164</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001941"
      unitRef="USD">116397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001942"
      unitRef="USD">118621</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact001943"
      unitRef="USD">120397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001944"
      unitRef="USD">119932</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001945"
      unitRef="USD">122026</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact001946"
      unitRef="USD">112480</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001947"
      unitRef="USD">121131</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302017-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001948"
      unitRef="USD">122167</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact001949"
      unitRef="USD">114191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001950"
      unitRef="USD">127515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001951"
      unitRef="USD">126929</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact001952"
      unitRef="USD">112266</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001953"
      unitRef="USD">122815</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001954"
      unitRef="USD">123315</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact001955"
      unitRef="USD">113264</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001956"
      unitRef="USD">120350</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001957"
      unitRef="USD">124976</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact001958"
      unitRef="USD">110982</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001959"
      unitRef="USD">120807</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001960"
      unitRef="USD">125098</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact001961"
      unitRef="USD">118043</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001962"
      unitRef="USD">124218</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001963"
      unitRef="USD">132974</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact001964"
      unitRef="USD">118257</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001965"
      unitRef="USD">125030</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001966"
      unitRef="USD">134015</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact001967"
      unitRef="USD">117187</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001968"
      unitRef="USD">129179</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001969"
      unitRef="USD">136319</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact001970"
      unitRef="USD">125889</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001971"
      unitRef="USD">133716</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001972"
      unitRef="USD">144806</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact001973"
      unitRef="USD">127886</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001974"
      unitRef="USD">133937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001975"
      unitRef="USD">141417</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact001976"
      unitRef="USD">117472</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001977"
      unitRef="USD">124075</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001978"
      unitRef="USD">123522</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact001979"
      unitRef="USD">119629</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001980"
      unitRef="USD">126560</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001981"
      unitRef="USD">125455</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact001982"
      unitRef="USD">107333</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001983"
      unitRef="USD">114781</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302018-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001984"
      unitRef="USD">110795</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact001985"
      unitRef="USD">123813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001986"
      unitRef="USD">124633</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001987"
      unitRef="USD">123590</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact001988"
      unitRef="USD">129107</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001989"
      unitRef="USD">129017</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001990"
      unitRef="USD">131572</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact001991"
      unitRef="USD">125008</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001992"
      unitRef="USD">130900</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001993"
      unitRef="USD">129791</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact001994"
      unitRef="USD">134401</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001995"
      unitRef="USD">136128</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001996"
      unitRef="USD">133744</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact001997"
      unitRef="USD">130900</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact001998"
      unitRef="USD">127318</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact001999"
      unitRef="USD">123821</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002000"
      unitRef="USD">138841</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002001"
      unitRef="USD">136261</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002002"
      unitRef="USD">133358</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002003"
      unitRef="USD">139695</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002004"
      unitRef="USD">138286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002005"
      unitRef="USD">134661</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002006"
      unitRef="USD">136877</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002007"
      unitRef="USD">135467</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002008"
      unitRef="USD">128850</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002009"
      unitRef="USD">143367</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002010"
      unitRef="USD">137845</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002011"
      unitRef="USD">127793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002012"
      unitRef="USD">153613</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002013"
      unitRef="USD">140812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002014"
      unitRef="USD">131429</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002015"
      unitRef="USD">158995</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002016"
      unitRef="USD">146165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002017"
      unitRef="USD">139165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002018"
      unitRef="USD">166699</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002019"
      unitRef="USD">150385</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302019-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002020"
      unitRef="USD">142354</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002021"
      unitRef="USD">167163</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002022"
      unitRef="USD">150221</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002023"
      unitRef="USD">140786</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_C000176577Member"
      decimals="0"
      id="Fact002024"
      unitRef="USD">159181</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002025"
      unitRef="USD">137922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002026"
      unitRef="USD">130622</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002027"
      unitRef="USD">141917</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002028"
      unitRef="USD">118955</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002029"
      unitRef="USD">105676</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002030"
      unitRef="USD">172361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002031"
      unitRef="USD">134710</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002032"
      unitRef="USD">121416</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002033"
      unitRef="USD">179786</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002034"
      unitRef="USD">141914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002035"
      unitRef="USD">132890</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002036"
      unitRef="USD">191481</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002037"
      unitRef="USD">145158</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002038"
      unitRef="USD">137997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002039"
      unitRef="USD">208838</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002040"
      unitRef="USD">153401</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002041"
      unitRef="USD">142739</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002042"
      unitRef="USD">210323</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002043"
      unitRef="USD">164514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002044"
      unitRef="USD">151112</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002045"
      unitRef="USD">210601</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002046"
      unitRef="USD">158524</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002047"
      unitRef="USD">147875</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002048"
      unitRef="USD">211065</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002049"
      unitRef="USD">155102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002050"
      unitRef="USD">148998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002051"
      unitRef="USD">257782</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002052"
      unitRef="USD">173971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002053"
      unitRef="USD">175272</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002054"
      unitRef="USD">287576</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002055"
      unitRef="USD">181797</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302020-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002056"
      unitRef="USD">191654</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002057"
      unitRef="USD">311973</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002058"
      unitRef="USD">180989</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002059"
      unitRef="USD">200895</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact002060"
      unitRef="USD">323631</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002061"
      unitRef="USD">186646</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002062"
      unitRef="USD">207528</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002063"
      unitRef="USD">309490</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002064"
      unitRef="USD">193336</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002065"
      unitRef="USD">200998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002066"
      unitRef="USD">313376</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002067"
      unitRef="USD">203302</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002068"
      unitRef="USD">205380</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002069"
      unitRef="USD">327733</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002070"
      unitRef="USD">204230</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002071"
      unitRef="USD">199515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002072"
      unitRef="USD">345653</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002073"
      unitRef="USD">209266</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002074"
      unitRef="USD">208872</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002075"
      unitRef="USD">347920</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002076"
      unitRef="USD">212805</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002077"
      unitRef="USD">201264</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002078"
      unitRef="USD">346516</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002079"
      unitRef="USD">218874</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002080"
      unitRef="USD">204922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002081"
      unitRef="USD">333454</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002082"
      unitRef="USD">209053</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002083"
      unitRef="USD">197065</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002084"
      unitRef="USD">333778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002085"
      unitRef="USD">223191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002086"
      unitRef="USD">206293</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002087"
      unitRef="USD">317514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002088"
      unitRef="USD">219793</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002089"
      unitRef="USD">196218</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002090"
      unitRef="USD">321346</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002091"
      unitRef="USD">228449</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302021-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002092"
      unitRef="USD">197087</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002093"
      unitRef="USD">290691</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002094"
      unitRef="USD">215008</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002095"
      unitRef="USD">170672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact002096"
      unitRef="USD">285406</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002097"
      unitRef="USD">209592</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002098"
      unitRef="USD">171417</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002099"
      unitRef="USD">284745</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002100"
      unitRef="USD">216390</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002101"
      unitRef="USD">172200</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002102"
      unitRef="USD">238499</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002103"
      unitRef="USD">196971</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002104"
      unitRef="USD">151073</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002105"
      unitRef="USD">231232</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002106"
      unitRef="USD">196707</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002107"
      unitRef="USD">148220</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002108"
      unitRef="USD">210619</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002109"
      unitRef="USD">180250</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002110"
      unitRef="USD">139044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002111"
      unitRef="USD">225946</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002112"
      unitRef="USD">197161</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002113"
      unitRef="USD">154612</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002114"
      unitRef="USD">230835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002115"
      unitRef="USD">189803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002116"
      unitRef="USD">153159</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002117"
      unitRef="USD">205202</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002118"
      unitRef="USD">172203</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002119"
      unitRef="USD">139381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002120"
      unitRef="USD">217358</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002121"
      unitRef="USD">186325</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002122"
      unitRef="USD">152611</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002123"
      unitRef="USD">226885</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002124"
      unitRef="USD">196050</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002125"
      unitRef="USD">155096</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002126"
      unitRef="USD">225510</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002127"
      unitRef="USD">184571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302022-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002128"
      unitRef="USD">145140</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002129"
      unitRef="USD">254507</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002130"
      unitRef="USD">197282</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002131"
      unitRef="USD">159577</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact002132"
      unitRef="USD">248597</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002133"
      unitRef="USD">192671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002134"
      unitRef="USD">157849</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002135"
      unitRef="USD">238291</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002136"
      unitRef="USD">197823</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002137"
      unitRef="USD">153954</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002138"
      unitRef="USD">203385</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002139"
      unitRef="USD">199931</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002140"
      unitRef="USD">152165</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002141"
      unitRef="USD">225236</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002142"
      unitRef="USD">200709</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002143"
      unitRef="USD">152193</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002144"
      unitRef="USD">231557</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002145"
      unitRef="USD">214414</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002146"
      unitRef="USD">164812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002147"
      unitRef="USD">240627</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002148"
      unitRef="USD">222100</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002149"
      unitRef="USD">172517</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002150"
      unitRef="USD">214242</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002151"
      unitRef="USD">217813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002152"
      unitRef="USD">163537</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002153"
      unitRef="USD">208058</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002154"
      unitRef="USD">207438</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002155"
      unitRef="USD">152750</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002156"
      unitRef="USD">179474</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002157"
      unitRef="USD">201939</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002158"
      unitRef="USD">140969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002159"
      unitRef="USD">204760</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002160"
      unitRef="USD">220769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002161"
      unitRef="USD">153803</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002162"
      unitRef="USD">238703</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002163"
      unitRef="USD">232479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302023-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002164"
      unitRef="USD">172221</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002165"
      unitRef="USD">218639</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002166"
      unitRef="USD">235056</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002167"
      unitRef="USD">166698</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_C000176577Member"
      decimals="0"
      id="Fact002168"
      unitRef="USD">241177</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002169"
      unitRef="USD">247779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-02-29_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002170"
      unitRef="USD">180238</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002171"
      unitRef="USD">247361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002172"
      unitRef="USD">255772</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002173"
      unitRef="USD">185278</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002174"
      unitRef="USD">227297</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002175"
      unitRef="USD">244518</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002176"
      unitRef="USD">171012</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002177"
      unitRef="USD">270173</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002178"
      unitRef="USD">256071</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002179"
      unitRef="USD">180170</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002180"
      unitRef="USD">260828</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002181"
      unitRef="USD">263998</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002182"
      unitRef="USD">179870</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002183"
      unitRef="USD">276219</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002184"
      unitRef="USD">268905</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002185"
      unitRef="USD">194594</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002186"
      unitRef="USD">270585</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002187"
      unitRef="USD">274759</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002188"
      unitRef="USD">192440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002189"
      unitRef="USD">270035</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002190"
      unitRef="USD">280443</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002191"
      unitRef="USD">194997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002192"
      unitRef="USD">256568</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002193"
      unitRef="USD">278383</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002194"
      unitRef="USD">192410</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002195"
      unitRef="USD">278006</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002196"
      unitRef="USD">296902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002197"
      unitRef="USD">216002</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002198"
      unitRef="USD">270860</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002199"
      unitRef="USD">287827</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302024-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002200"
      unitRef="USD">198320</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002201"
      unitRef="USD">276219</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002202"
      unitRef="USD">296914</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002203"
      unitRef="USD">204590</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact002204"
      unitRef="USD">254232</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002205"
      unitRef="USD">291224</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002206"
      unitRef="USD">190740</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002207"
      unitRef="USD">221937</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002208"
      unitRef="USD">274236</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002209"
      unitRef="USD">176275</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002210"
      unitRef="USD">212043</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002211"
      unitRef="USD">272397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002212"
      unitRef="USD">175147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002213"
      unitRef="USD">235405</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002214"
      unitRef="USD">289663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002215"
      unitRef="USD">186391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002216"
      unitRef="USD">263164</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002217"
      unitRef="USD">304378</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002218"
      unitRef="USD">197367</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_C000176577Member"
      decimals="0"
      id="Fact002219"
      unitRef="USD">270173</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002220"
      unitRef="USD">311082</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-07-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002221"
      unitRef="USD">200729</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_C000176577Member"
      decimals="0"
      id="Fact002222"
      unitRef="USD">274708</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002223"
      unitRef="USD">318281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-08-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002224"
      unitRef="USD">212601</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_C000176577Member"
      decimals="0"
      id="Fact002225"
      unitRef="USD">293672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002226"
      unitRef="USD">329265</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-09-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002227"
      unitRef="USD">221434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_C000176577Member"
      decimals="0"
      id="Fact002228"
      unitRef="USD">317996</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002229"
      unitRef="USD">336322</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-10-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002230"
      unitRef="USD">228598</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_C000176577Member"
      decimals="0"
      id="Fact002231"
      unitRef="USD">293947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002232"
      unitRef="USD">337245</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-11-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002233"
      unitRef="USD">227034</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_C000176577Member"
      decimals="0"
      id="Fact002234"
      unitRef="USD">301093</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002235"
      unitRef="USD">337177</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302025-12-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002236"
      unitRef="USD">224127</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_C000176577Member"
      decimals="0"
      id="Fact002237"
      unitRef="USD">335449</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002238"
      unitRef="USD">342408</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-01-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002239"
      unitRef="USD">233039</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_C000176577Member"
      decimals="0"
      id="Fact002240"
      unitRef="USD">355237</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002241"
      unitRef="USD">340779</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-02-28_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002242"
      unitRef="USD">232475</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_C000176577Member"
      decimals="0"
      id="Fact002243"
      unitRef="USD">347817</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002244"
      unitRef="USD">323833</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-03-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002245"
      unitRef="USD">217834</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_C000176577Member"
      decimals="0"
      id="Fact002246"
      unitRef="USD">443600</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002247"
      unitRef="USD">356873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-04-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002248"
      unitRef="USD">249835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_C000176577Member"
      decimals="0"
      id="Fact002249"
      unitRef="USD">519732</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002250"
      unitRef="USD">374955</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-05-31_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002251"
      unitRef="USD">264431</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002252"
      unitRef="USD">563707</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="0"
      id="Fact002253"
      unitRef="USD">373848</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002254"
      unitRef="USD">273831</oef:AccmVal>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002255">&lt;img alt="Ad2 Performance Graph" src="fp0099608-10_sa91.jpg" style="width: 348px; height: 200px"/&gt;</oef:LineGraphTableTextBlock>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002256">        &lt;div class="section-header"&gt;&lt;strong&gt;Annual Average Total Return %&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;                            &lt;tr class="header-row" style="background-color: Gainsboro"&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;1 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;5 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;Since Inception&lt;br/&gt;                            (&lt;span id="xdx_907_eoef--PerfInceptionDate_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_zyhqGA1kAbtZ"&gt;12/30/2016&lt;/span&gt;)                           &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_904_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--ClassAxis__custom--C000176577Member_zogGkGjit1ay"&gt;Institutional Class&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--ClassAxis__custom--C000176577Member_zPW2ohsx6ztf"&gt;114.10&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--ClassAxis__custom--C000176577Member_zSYR9awNXxfH"&gt;10.27&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--ClassAxis__custom--C000176577Member_zRiQnfuoNvay"&gt;19.96&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90D_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember_zZfINaaLXrV2"&gt;Russell 3000&lt;sup&gt;&#xae;&lt;/sup&gt; Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember_zPaSlw8oeJk8"&gt;22.82&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember_zHrSBGpLJdic"&gt;12.31&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember_zy9brcGsr02F"&gt;14.89&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_902_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember_z9Z5xnhwWyD1"&gt;Russell 2000&lt;sup&gt;&#xae;&lt;/sup&gt; Growth Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember_zVRqQaYbuG1A"&gt;38.74&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember_zWxGOBgUXFAy"&gt;5.57&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--AvgAnnlRtrPct_dp_c20161230__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember_zhOHRTag3KWy"&gt;11.19&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:AvgAnnlRtrTableTextBlock>
    <oef:PerfInceptionDate
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002257">2016-12-30</oef:PerfInceptionDate>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_C000176577Member"
      id="Fact002258">Institutional Class</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000176577Member"
      decimals="INF"
      id="Fact002259"
      unitRef="Ratio">1.1410</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000176577Member"
      decimals="INF"
      id="Fact002260"
      unitRef="Ratio">0.1027</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_C000176577Member"
      decimals="INF"
      id="Fact002261"
      unitRef="Ratio">0.1996</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      id="Fact002262">Russell 3000&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact002263"
      unitRef="Ratio">0.2282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact002264"
      unitRef="Ratio">0.1231</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell3000IndexMember"
      decimals="INF"
      id="Fact002265"
      unitRef="Ratio">0.1489</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      id="Fact002266">Russell 2000&#xae; Growth Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact002267"
      unitRef="Ratio">0.3874</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact002268"
      unitRef="Ratio">0.0557</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-12-302026-06-30_custom_NeedhamSmallCapGrowthFundInstitutionalClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact002269"
      unitRef="Ratio">0.1119</oef:AvgAnnlRtrPct>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002270">The Fund's past performance is not a good predictor of the Fund's future performance.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:NoDeductionOfTaxesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002271">The returns do not reflect the deduction of taxes that a shareholder would pay on Fund distributions or redemption of Fund shares.</oef:NoDeductionOfTaxesTextBlock>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002272">
        &lt;div class="section-header" style="font-size: 11pt"&gt;&lt;strong&gt;Key Fund Statistics&lt;/strong&gt; &lt;span style="font-size: 10pt"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;
          &lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
            &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Net Assets&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_904_eus-gaap--AssetsNet_iI_uUSD_c20260630__oef--ClassAxis__custom--C000176577Member_zYvHituYkPTO"&gt;$419,641,238&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Number of Holdings&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--HoldingsCount_iI_uShares_c20260630__oef--ClassAxis__custom--C000176577Member_zwpm6z6DDDwt"&gt;70&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;            
                        &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Portfolio Turnover&lt;/th&gt; 
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eus-gaap--InvestmentCompanyPortfolioTurnover_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_zdEMyuOOYa0o"&gt;80%&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt; 
          &lt;/table&gt;
        &lt;/div&gt;
      </oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000176577Member"
      decimals="0"
      id="Fact002273"
      unitRef="USD">419641238</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000176577Member"
      decimals="INF"
      id="Fact002274"
      unitRef="Shares">70</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      decimals="INF"
      id="Fact002275"
      unitRef="Ratio">0.80</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:HoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002276">
    &lt;div class="columns-2" style="columns: 2; column-gap: 16px; column-fill: balance"&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 0.16in"&gt;
        &lt;div class="section-header"&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;What Sectors Did the Fund Invest In?&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as of June 30, 2026) (as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Information Technology
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--InformationTechnologyMember_zfwlMCZSynfb"&gt;59.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Industrials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--IndustrialsMember_zrwaXQLHhjgW"&gt;16.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Discretionary
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--ConsumerDiscretionaryMember_zTqWiH4Y8IM1"&gt;4.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Health Care
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--HealthCareMember_zEXygAm4QbOX"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Materials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--MaterialsMember_zI9v9OjJ5LCs"&gt;1.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Energy
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90D_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--EnergyMember_zgxbYfhEIizY"&gt;1.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Utilities
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--UtilitiesMember_zcDrxClYCngC"&gt;0.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Real Estate
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--RealEstateMember_zg6YUX6pyZox"&gt;0.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Cash &amp;amp; Other
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__oef--IndustrySectorAxis__custom--CashampOtherMember_zM0Xt8bis5s4"&gt;12.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;img alt="Af Image" src="fp0099608-10_sa92.jpg" style="width: 348px; height: 400px"/&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div id="xdx_981_eoef--LargestHoldingsTableTextBlock_c20260101__20260630__oef--ClassAxis__custom--C000176577Member_zt6f5RXzTXfl"&gt;
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zGPBcRHlidqk"&gt;14.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zzxBlPX6UR71"&gt;8.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Badger Meter, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--BadgerMeterIncMember_z1jRDcdSteax"&gt;5.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zdME4GKWScbk"&gt;5.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Ambarella, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--AmbarellaIncMember_zxQ1QG6EdULV"&gt;2.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Harmonic, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--HarmonicIncMember_zMCfVZmOGqPD"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Veeco Instruments, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--VeecoInstrumentsIncMember_zoQHruK6LCJM"&gt;2.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Calix, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--CalixIncMember_zfDj5amjtWZy"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zMX6k2usgORp"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CEVA, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--CEVAIncMember_zpYARIbVyvRl"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_InformationTechnologyMember"
      decimals="INF"
      id="Fact002277"
      unitRef="Ratio">0.594</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_IndustrialsMember"
      decimals="INF"
      id="Fact002278"
      unitRef="Ratio">0.166</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_ConsumerDiscretionaryMember"
      decimals="INF"
      id="Fact002279"
      unitRef="Ratio">0.044</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_us-gaap_HealthCareMember"
      decimals="INF"
      id="Fact002280"
      unitRef="Ratio">0.027</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_MaterialsMember"
      decimals="INF"
      id="Fact002281"
      unitRef="Ratio">0.019</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_EnergyMember"
      decimals="INF"
      id="Fact002282"
      unitRef="Ratio">0.015</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_UtilitiesMember"
      decimals="INF"
      id="Fact002283"
      unitRef="Ratio">0.008</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_us-gaap_RealEstateMember"
      decimals="INF"
      id="Fact002284"
      unitRef="Ratio">0.002</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_CashampOtherMember"
      decimals="INF"
      id="Fact002285"
      unitRef="Ratio">0.125</oef:PctOfNav>
    <oef:LargestHoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000176577Member"
      id="Fact002286">
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zGPBcRHlidqk"&gt;14.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zzxBlPX6UR71"&gt;8.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Badger Meter, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--BadgerMeterIncMember_z1jRDcdSteax"&gt;5.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_zdME4GKWScbk"&gt;5.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Ambarella, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--AmbarellaIncMember_zxQ1QG6EdULV"&gt;2.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Harmonic, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--HarmonicIncMember_zMCfVZmOGqPD"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Veeco Instruments, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--VeecoInstrumentsIncMember_zoQHruK6LCJM"&gt;2.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Calix, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_905_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--CalixIncMember_zfDj5amjtWZy"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90A_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zMX6k2usgORp"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CEVA, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000176577Member__us-gaap--InvestmentTypeAxis__custom--CEVAIncMember_zpYARIbVyvRl"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        </oef:LargestHoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_DreyfusTreasurySecuritiesCashManagementMember"
      decimals="INF"
      id="Fact002287"
      unitRef="Ratio">0.143</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_ArterisIncMember"
      decimals="INF"
      id="Fact002288"
      unitRef="Ratio">0.087</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_BadgerMeterIncMember"
      decimals="INF"
      id="Fact002289"
      unitRef="Ratio">0.051</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_VishayIntertechnologyIncMember"
      decimals="INF"
      id="Fact002290"
      unitRef="Ratio">0.050</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_AmbarellaIncMember"
      decimals="INF"
      id="Fact002291"
      unitRef="Ratio">0.028</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_HarmonicIncMember"
      decimals="INF"
      id="Fact002292"
      unitRef="Ratio">0.027</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_VeecoInstrumentsIncMember"
      decimals="INF"
      id="Fact002293"
      unitRef="Ratio">0.026</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_CalixIncMember"
      decimals="INF"
      id="Fact002294"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_PDFSolutionsIncMember"
      decimals="INF"
      id="Fact002295"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000176577Member_custom_CEVAIncMember"
      decimals="INF"
      id="Fact002296"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:FundName
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002297">Needham Small Cap Growth Fund</oef:FundName>
    <oef:ClassName
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002298">Retail Class</oef:ClassName>
    <dei:TradingSymbol
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002299">NESGX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002300">This semi-annual shareholder report contains important information about the Needham Small Cap Growth Fund ("the Fund") for the period of &lt;span style="white-space: nowrap"&gt;January 1, 2026&lt;/span&gt; to &lt;span style="white-space: nowrap"&gt;June 30, 2026&lt;/span&gt;.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:AddlInfoTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002301">You can find additional information about the Fund at &lt;span id="xdx_900_eoef--AddlInfoWebsite_c20260101__20260630__oef--ClassAxis__custom--C000010645Member_ztCYDxkPc0iO"&gt;www.needhamfunds.com/resources-forms&lt;/span&gt;. You can also request this information by contacting us at &lt;span id="xdx_907_eoef--AddlInfoPhoneNumber_c20260101__20260630__oef--ClassAxis__custom--C000010645Member_zfkG5pkprbVR"&gt;1-800-625-7071&lt;/span&gt;.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002302">www.needhamfunds.com/resources-forms</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002303">1-800-625-7071</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002304">
        &lt;div class="section-header"&gt;&lt;strong&gt;What Were the Fund Costs for the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt;?&lt;/strong&gt;&lt;/div&gt;
        &lt;div style="font-size: 10pt"&gt;(Based on a hypothetical $10,000 investment)&lt;/div&gt;
        &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                    &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;Class Name&lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs of a $10,000 investment
                    &lt;/th&gt;
                    &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;
                        Costs paid as a percentage of a $10,000 investment*
                    &lt;/th&gt;
                    &lt;/tr&gt;
                                        &lt;tr&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;Retail Class&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--ExpensesPaidAmt_pp2d_c20260101__20260630__oef--ClassAxis__custom--C000010645Member_zm8DuxKhOECD"&gt;$127&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                        &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--ExpenseRatioPct_c20260101__20260630__oef--ClassAxis__custom--C000010645Member_ztON9MWXIYny"&gt;1.78%&lt;sup&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt;
                    &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      decimals="2"
      id="Fact002305"
      unitRef="USD">127</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      decimals="INF"
      id="Fact002306"
      unitRef="Ratio">0.0178</oef:ExpenseRatioPct>
    <oef:FactorsAffectingPerfTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002307">
        &lt;div class="section-header"&gt;&lt;strong&gt;How Did the Fund Perform Over the Last &lt;span style="text-transform: capitalize"&gt;six months&lt;/span&gt; and What Affected its Performance?&lt;/strong&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Performance&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;For the six-month period ended June 30, 2026, the Needham Small Cap Growth Fund's Retail Class returned 86.58%, significantly outperforming the Russell 2000 Growth Index's 22.18% and the Russell 3000 Index's 10.88%.&lt;/p&gt;&lt;p style="text-align: left"&gt;Small-cap equities were volatile early in 2026 as the U.S.-Iran war drove oil prices above $100 per barrel and introduced broad market uncertainty. Volatility continued into April with the closing of the Strait of Hormuz, which pushed oil to a peak of $126 per barrel, before a June memorandum of understanding between the United States and Iran eased tensions. Small-cap stocks staged a significant recovery in the second quarter as investor interest in the asset class accelerated, merger and acquisition activity picked up, and Information Technology led market gains.&lt;/p&gt;&lt;p style="text-align: left"&gt;The key factor affecting the Fund's performance was stock selection, particularly among semiconductor, communications infrastructure, and specialty materials holdings. Leading contributors for the period included Arteris, Inc. (AIP), which reported strong bookings and raised guidance; Vishay Intertechnology, Inc. (VSH), which advanced its capacity expansion strategy; and TTM Technologies, Inc. (TTMI) and nLIGHT, Inc. (LASR), which benefited from improving fundamentals and renewed investor confidence earlier in the period. The Fund's detractors were small relative to its contributors and included CoStar Group, Inc. (CSGP), Harmonic, Inc. (HLIT), and Lantronix, Inc. (LTRX).&lt;/p&gt;&lt;p style="text-align: left"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline"&gt;Investment Themes&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left"&gt;The Fund's major investment theme remains the importance of technology-driven infrastructure and industrial innovation. Portfolio companies sell products and services into data centers, communications infrastructure, semiconductor and advanced manufacturing facilities, defense systems, and specialty material markets. Needham Investment Management LLC, the Fund's investment adviser, believes that many of these industries continue to benefit from long-term capital spending trends and ongoing technological innovation.&lt;/p&gt;&lt;/div&gt;
      </oef:FactorsAffectingPerfTextBlock>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002308"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002309"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-06-302016-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002310"
      unitRef="USD">10000</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002311"
      unitRef="USD">10519</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002312"
      unitRef="USD">10397</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002313"
      unitRef="USD">10654</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002314"
      unitRef="USD">10830</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002315"
      unitRef="USD">10423</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002316"
      unitRef="USD">10767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002317"
      unitRef="USD">11231</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002318"
      unitRef="USD">10440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002319"
      unitRef="USD">10922</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002320"
      unitRef="USD">11067</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002321"
      unitRef="USD">10214</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002322"
      unitRef="USD">10243</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002323"
      unitRef="USD">12191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002324"
      unitRef="USD">10671</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002325"
      unitRef="USD">11160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002326"
      unitRef="USD">12104</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002327"
      unitRef="USD">10879</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012016-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002328"
      unitRef="USD">11312</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002329"
      unitRef="USD">12191</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002330"
      unitRef="USD">11084</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002331"
      unitRef="USD">11496</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002332"
      unitRef="USD">12128</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002333"
      unitRef="USD">11496</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002334"
      unitRef="USD">11778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002335"
      unitRef="USD">12287</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002336"
      unitRef="USD">11504</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002337"
      unitRef="USD">11917</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002338"
      unitRef="USD">12326</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002339"
      unitRef="USD">11626</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002340"
      unitRef="USD">12137</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002341"
      unitRef="USD">12509</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002342"
      unitRef="USD">11745</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002343"
      unitRef="USD">12026</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002344"
      unitRef="USD">12953</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002345"
      unitRef="USD">11851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002346"
      unitRef="USD">12440</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002347"
      unitRef="USD">13199</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002348"
      unitRef="USD">12074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002349"
      unitRef="USD">12546</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002350"
      unitRef="USD">12985</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002351"
      unitRef="USD">12098</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002352"
      unitRef="USD">12531</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002353"
      unitRef="USD">13715</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002354"
      unitRef="USD">12393</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002355"
      unitRef="USD">13214</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002356"
      unitRef="USD">13763</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002357"
      unitRef="USD">12663</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002358"
      unitRef="USD">13418</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002359"
      unitRef="USD">14500</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002360"
      unitRef="USD">13048</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002361"
      unitRef="USD">13804</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002362"
      unitRef="USD">13542</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002363"
      unitRef="USD">13178</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012017-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002364"
      unitRef="USD">13820</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002365"
      unitRef="USD">13740</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002366"
      unitRef="USD">13873</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002367"
      unitRef="USD">14358</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002368"
      unitRef="USD">13507</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002369"
      unitRef="USD">13361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002370"
      unitRef="USD">13950</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002371"
      unitRef="USD">13619</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002372"
      unitRef="USD">13093</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002373"
      unitRef="USD">14137</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002374"
      unitRef="USD">13343</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002375"
      unitRef="USD">13143</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002376"
      unitRef="USD">14151</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002377"
      unitRef="USD">14181</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002378"
      unitRef="USD">13514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002379"
      unitRef="USD">15042</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002380"
      unitRef="USD">14198</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002381"
      unitRef="USD">13602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002382"
      unitRef="USD">15160</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002383"
      unitRef="USD">14068</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002384"
      unitRef="USD">14054</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002385"
      unitRef="USD">15421</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002386"
      unitRef="USD">15105</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002387"
      unitRef="USD">14547</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002388"
      unitRef="USD">16381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002389"
      unitRef="USD">15338</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002390"
      unitRef="USD">14571</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002391"
      unitRef="USD">15997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002392"
      unitRef="USD">14086</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002393"
      unitRef="USD">13498</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002394"
      unitRef="USD">13973</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002395"
      unitRef="USD">14328</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002396"
      unitRef="USD">13769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002397"
      unitRef="USD">14192</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002398"
      unitRef="USD">12846</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002399"
      unitRef="USD">12487</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012018-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002400"
      unitRef="USD">12533</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002401"
      unitRef="USD">14815</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002402"
      unitRef="USD">13559</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002403"
      unitRef="USD">13981</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002404"
      unitRef="USD">15447</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002405"
      unitRef="USD">14036</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002406"
      unitRef="USD">14884</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002407"
      unitRef="USD">14949</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002408"
      unitRef="USD">14241</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002409"
      unitRef="USD">14682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002410"
      unitRef="USD">16058</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002411"
      unitRef="USD">14810</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002412"
      unitRef="USD">15129</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002413"
      unitRef="USD">15633</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002414"
      unitRef="USD">13851</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002415"
      unitRef="USD">14007</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002416"
      unitRef="USD">16576</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002417"
      unitRef="USD">14824</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002418"
      unitRef="USD">15086</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002419"
      unitRef="USD">16669</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002420"
      unitRef="USD">15044</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002421"
      unitRef="USD">15233</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002422"
      unitRef="USD">16317</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002423"
      unitRef="USD">14738</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002424"
      unitRef="USD">14576</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002425"
      unitRef="USD">17094</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002426"
      unitRef="USD">14996</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002427"
      unitRef="USD">14456</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002428"
      unitRef="USD">18306</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002429"
      unitRef="USD">15319</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002430"
      unitRef="USD">14867</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002431"
      unitRef="USD">18927</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002432"
      unitRef="USD">15902</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002433"
      unitRef="USD">15742</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002434"
      unitRef="USD">19841</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002435"
      unitRef="USD">16361</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012019-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002436"
      unitRef="USD">16103</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002437"
      unitRef="USD">19875</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002438"
      unitRef="USD">16343</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002439"
      unitRef="USD">15926</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_C000010645Member"
      decimals="0"
      id="Fact002440"
      unitRef="USD">18916</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002441"
      unitRef="USD">15005</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002442"
      unitRef="USD">14776</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002443"
      unitRef="USD">16863</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002444"
      unitRef="USD">12941</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002445"
      unitRef="USD">11954</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002446"
      unitRef="USD">20473</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002447"
      unitRef="USD">14655</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002448"
      unitRef="USD">13735</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002449"
      unitRef="USD">21330</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002450"
      unitRef="USD">15439</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002451"
      unitRef="USD">15033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002452"
      unitRef="USD">22717</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002453"
      unitRef="USD">15792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002454"
      unitRef="USD">15610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002455"
      unitRef="USD">24759</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002456"
      unitRef="USD">16689</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002457"
      unitRef="USD">16147</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002458"
      unitRef="USD">24917</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002459"
      unitRef="USD">17898</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002460"
      unitRef="USD">17094</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002461"
      unitRef="USD">24939</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002462"
      unitRef="USD">17246</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002463"
      unitRef="USD">16728</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002464"
      unitRef="USD">24973</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002465"
      unitRef="USD">16874</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002466"
      unitRef="USD">16855</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002467"
      unitRef="USD">30479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002468"
      unitRef="USD">18927</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002469"
      unitRef="USD">19827</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002470"
      unitRef="USD">33997</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002471"
      unitRef="USD">19778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012020-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002472"
      unitRef="USD">21680</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002473"
      unitRef="USD">36857</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002474"
      unitRef="USD">19690</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002475"
      unitRef="USD">22725</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002476"
      unitRef="USD">38201</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002477"
      unitRef="USD">20306</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002478"
      unitRef="USD">23476</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002479"
      unitRef="USD">36514</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002480"
      unitRef="USD">21033</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002481"
      unitRef="USD">22737</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002482"
      unitRef="USD">36962</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002483"
      unitRef="USD">22118</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002484"
      unitRef="USD">23233</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002485"
      unitRef="USD">38623</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002486"
      unitRef="USD">22219</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002487"
      unitRef="USD">22569</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002488"
      unitRef="USD">40718</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002489"
      unitRef="USD">22767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002490"
      unitRef="USD">23628</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002491"
      unitRef="USD">40968</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002492"
      unitRef="USD">23152</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002493"
      unitRef="USD">22767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002494"
      unitRef="USD">40771</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002495"
      unitRef="USD">23812</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002496"
      unitRef="USD">23181</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002497"
      unitRef="USD">39216</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002498"
      unitRef="USD">22743</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002499"
      unitRef="USD">22292</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002500"
      unitRef="USD">39229</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002501"
      unitRef="USD">24281</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002502"
      unitRef="USD">23336</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002503"
      unitRef="USD">37307</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002504"
      unitRef="USD">23912</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002505"
      unitRef="USD">22196</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002506"
      unitRef="USD">37730</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002507"
      unitRef="USD">24853</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012021-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002508"
      unitRef="USD">22295</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002509"
      unitRef="USD">34102</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002510"
      unitRef="USD">23391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002511"
      unitRef="USD">19307</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002512"
      unitRef="USD">33467</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002513"
      unitRef="USD">22802</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002514"
      unitRef="USD">19391</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002515"
      unitRef="USD">33369</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002516"
      unitRef="USD">23542</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002517"
      unitRef="USD">19479</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002518"
      unitRef="USD">27952</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002519"
      unitRef="USD">21429</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002520"
      unitRef="USD">17089</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002521"
      unitRef="USD">27073</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002522"
      unitRef="USD">21400</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002523"
      unitRef="USD">16767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002524"
      unitRef="USD">24649</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002525"
      unitRef="USD">19610</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002526"
      unitRef="USD">15729</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002527"
      unitRef="USD">26422</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002528"
      unitRef="USD">21450</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002529"
      unitRef="USD">17490</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002530"
      unitRef="USD">26975</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002531"
      unitRef="USD">20649</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002532"
      unitRef="USD">17325</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002533"
      unitRef="USD">23966</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002534"
      unitRef="USD">18734</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002535"
      unitRef="USD">15767</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002536"
      unitRef="USD">25381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002537"
      unitRef="USD">20271</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002538"
      unitRef="USD">17263</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002539"
      unitRef="USD">26489</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002540"
      unitRef="USD">21329</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002541"
      unitRef="USD">17545</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002542"
      unitRef="USD">26286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002543"
      unitRef="USD">20080</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012022-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002544"
      unitRef="USD">16418</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002545"
      unitRef="USD">29660</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002546"
      unitRef="USD">21463</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002547"
      unitRef="USD">18052</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002548"
      unitRef="USD">28965</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002549"
      unitRef="USD">20961</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002550"
      unitRef="USD">17856</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002551"
      unitRef="USD">27744</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002552"
      unitRef="USD">21522</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002553"
      unitRef="USD">17415</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002554"
      unitRef="USD">23674</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002555"
      unitRef="USD">21751</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002556"
      unitRef="USD">17213</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002557"
      unitRef="USD">26184</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002558"
      unitRef="USD">21836</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002559"
      unitRef="USD">17216</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002560"
      unitRef="USD">27015</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002561"
      unitRef="USD">23327</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002562"
      unitRef="USD">18644</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002563"
      unitRef="USD">28049</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002564"
      unitRef="USD">24163</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002565"
      unitRef="USD">19515</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002566"
      unitRef="USD">24980</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002567"
      unitRef="USD">23696</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002568"
      unitRef="USD">18499</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002569"
      unitRef="USD">24234</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002570"
      unitRef="USD">22568</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002571"
      unitRef="USD">17279</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002572"
      unitRef="USD">20910</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002573"
      unitRef="USD">21969</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002574"
      unitRef="USD">15947</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002575"
      unitRef="USD">23844</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002576"
      unitRef="USD">24018</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002577"
      unitRef="USD">17398</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002578"
      unitRef="USD">27778</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002579"
      unitRef="USD">25292</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012023-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002580"
      unitRef="USD">19482</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002581"
      unitRef="USD">25421</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002582"
      unitRef="USD">25572</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002583"
      unitRef="USD">18857</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_C000010645Member"
      decimals="0"
      id="Fact002584"
      unitRef="USD">28032</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002585"
      unitRef="USD">26956</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-02-29_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002586"
      unitRef="USD">20389</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002587"
      unitRef="USD">28745</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002588"
      unitRef="USD">27826</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002589"
      unitRef="USD">20959</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002590"
      unitRef="USD">26387</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002591"
      unitRef="USD">26602</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002592"
      unitRef="USD">19345</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002593"
      unitRef="USD">31356</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002594"
      unitRef="USD">27858</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002595"
      unitRef="USD">20381</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002596"
      unitRef="USD">30254</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002597"
      unitRef="USD">28721</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002598"
      unitRef="USD">20347</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002599"
      unitRef="USD">32035</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002600"
      unitRef="USD">29255</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002601"
      unitRef="USD">22013</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002602"
      unitRef="USD">31356</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002603"
      unitRef="USD">29892</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002604"
      unitRef="USD">21769</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002605"
      unitRef="USD">31271</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002606"
      unitRef="USD">30510</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002607"
      unitRef="USD">22058</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002608"
      unitRef="USD">29694</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002609"
      unitRef="USD">30286</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002610"
      unitRef="USD">21766</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002611"
      unitRef="USD">32153</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002612"
      unitRef="USD">32301</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002613"
      unitRef="USD">24434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002614"
      unitRef="USD">31322</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002615"
      unitRef="USD">31313</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012024-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002616"
      unitRef="USD">22434</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002617"
      unitRef="USD">31933</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002618"
      unitRef="USD">32302</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002619"
      unitRef="USD">23143</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002620"
      unitRef="USD">29372</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002621"
      unitRef="USD">31683</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002622"
      unitRef="USD">21577</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002623"
      unitRef="USD">25641</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002624"
      unitRef="USD">29835</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002625"
      unitRef="USD">19940</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002626"
      unitRef="USD">24471</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002627"
      unitRef="USD">29635</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002628"
      unitRef="USD">19813</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002629"
      unitRef="USD">27151</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002630"
      unitRef="USD">31513</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002631"
      unitRef="USD">21085</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002632"
      unitRef="USD">30339</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002633"
      unitRef="USD">33114</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002634"
      unitRef="USD">22326</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_C000010645Member"
      decimals="0"
      id="Fact002635"
      unitRef="USD">31136</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002636"
      unitRef="USD">33843</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-07-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002637"
      unitRef="USD">22707</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_C000010645Member"
      decimals="0"
      id="Fact002638"
      unitRef="USD">31645</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002639"
      unitRef="USD">34626</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-08-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002640"
      unitRef="USD">24050</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_C000010645Member"
      decimals="0"
      id="Fact002641"
      unitRef="USD">33798</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002642"
      unitRef="USD">35821</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-09-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002643"
      unitRef="USD">25049</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_C000010645Member"
      decimals="0"
      id="Fact002644"
      unitRef="USD">36579</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002645"
      unitRef="USD">36589</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-10-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002646"
      unitRef="USD">25859</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_C000010645Member"
      decimals="0"
      id="Fact002647"
      unitRef="USD">33798</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002648"
      unitRef="USD">36690</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-11-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002649"
      unitRef="USD">25682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_C000010645Member"
      decimals="0"
      id="Fact002650"
      unitRef="USD">34612</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002651"
      unitRef="USD">36682</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012025-12-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002652"
      unitRef="USD">25353</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_C000010645Member"
      decimals="0"
      id="Fact002653"
      unitRef="USD">38530</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002654"
      unitRef="USD">37251</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-01-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002655"
      unitRef="USD">26362</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_C000010645Member"
      decimals="0"
      id="Fact002656"
      unitRef="USD">40785</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002657"
      unitRef="USD">37074</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-02-28_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002658"
      unitRef="USD">26298</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_C000010645Member"
      decimals="0"
      id="Fact002659"
      unitRef="USD">39920</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002660"
      unitRef="USD">35231</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-03-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002661"
      unitRef="USD">24642</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_C000010645Member"
      decimals="0"
      id="Fact002662"
      unitRef="USD">50892</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002663"
      unitRef="USD">38825</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-04-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002664"
      unitRef="USD">28262</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_C000010645Member"
      decimals="0"
      id="Fact002665"
      unitRef="USD">59609</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002666"
      unitRef="USD">40792</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-05-31_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002667"
      unitRef="USD">29913</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002668"
      unitRef="USD">64612</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="0"
      id="Fact002669"
      unitRef="USD">40672</oef:AccmVal>
    <oef:AccmVal
      contextRef="From2016-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="0"
      id="Fact002670"
      unitRef="USD">30976</oef:AccmVal>
    <oef:LineGraphTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002671">&lt;img alt="Ad2 Performance Graph" src="fp0099608-9_sa91.jpg" style="width: 348px; height: 200px"/&gt;</oef:LineGraphTableTextBlock>
    <oef:AvgAnnlRtrTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002672">        &lt;div class="section-header"&gt;&lt;strong&gt;Annual Average Total Return %&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt;&lt;/div&gt;        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;                            &lt;tr class="header-row" style="background-color: Gainsboro"&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;1 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;5 Year&lt;/th&gt;&lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;10 Year&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;                            &lt;span id="xdx_906_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--ClassAxis__custom--C000010645Member_zlpT7QKBTNxv"&gt;Retail Class&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--ClassAxis__custom--C000010645Member_zGGd1wvGCe2o"&gt;112.86&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--ClassAxis__custom--C000010645Member_zSdoSFFbG5HP"&gt;9.66&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--ClassAxis__custom--C000010645Member_z4YfCrL5jg6Z"&gt;20.51&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color: Gainsboro"&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90C_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember_z6PVvPQAsN80"&gt;Russell 3000&lt;sup&gt;&#xae;&lt;/sup&gt; Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember_zlx8nEFRRa4r"&gt;22.82&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember_zrTOYgAuFu4N"&gt;12.31&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--BroadBasedIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember_zGpBV2TZu50d"&gt;15.06&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
                            &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                            &lt;span id="xdx_90E_eoef--LineGraphAndTableMeasureName_c20251230__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember_zknCWVaM7Ohh"&gt;Russell 2000&lt;sup&gt;&#xae;&lt;/sup&gt; Growth Index&lt;/span&gt;
                            &lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--AvgAnnlRtrPct_dp_c20250701__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember_zOWh6yJpAY3a"&gt;38.74&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--AvgAnnlRtrPct_dp_c20210701__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember_zlXu64t81X7m"&gt;5.57&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_908_eoef--AvgAnnlRtrPct_dp_c20160701__20260630__oef--AdditionalIndexAxis__custom--NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember_zuxEBWAhk8ro"&gt;11.97&lt;/span&gt;&lt;sup&gt;&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
      </oef:AvgAnnlRtrTableTextBlock>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_C000010645Member"
      id="Fact002673">Retail Class</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_C000010645Member"
      decimals="INF"
      id="Fact002674"
      unitRef="Ratio">1.1286</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_C000010645Member"
      decimals="INF"
      id="Fact002675"
      unitRef="Ratio">0.0966</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_C000010645Member"
      decimals="INF"
      id="Fact002676"
      unitRef="Ratio">0.2051</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      id="Fact002677">Russell 3000&#xae; Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact002678"
      unitRef="Ratio">0.2282</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact002679"
      unitRef="Ratio">0.1231</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell3000IndexMember"
      decimals="INF"
      id="Fact002680"
      unitRef="Ratio">0.1506</oef:AvgAnnlRtrPct>
    <oef:LineGraphAndTableMeasureName
      contextRef="From2025-12-302026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      id="Fact002681">Russell 2000&#xae; Growth Index</oef:LineGraphAndTableMeasureName>
    <oef:AvgAnnlRtrPct
      contextRef="From2025-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact002682"
      unitRef="Ratio">0.3874</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2021-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact002683"
      unitRef="Ratio">0.0557</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="From2016-07-012026-06-30_custom_NeedhamSmallCapGrowthFundRetailClassRussell2000GrowthIndexMember"
      decimals="INF"
      id="Fact002684"
      unitRef="Ratio">0.1197</oef:AvgAnnlRtrPct>
    <oef:PerformancePastDoesNotIndicateFuture
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002685">The Fund's past performance is not a good predictor of the Fund's future performance.</oef:PerformancePastDoesNotIndicateFuture>
    <oef:NoDeductionOfTaxesTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002686">The returns do not reflect the deduction of taxes that a shareholder would pay on Fund distributions or redemption of Fund shares.</oef:NoDeductionOfTaxesTextBlock>
    <oef:AddlFundStatisticsTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002687">
        &lt;div class="section-header" style="font-size: 11pt"&gt;&lt;strong&gt;Key Fund Statistics&lt;/strong&gt; &lt;span style="font-size: 10pt"&gt;&lt;strong&gt;(as of June 30, 2026)&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;
          &lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
            &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Net Assets&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eus-gaap--AssetsNet_iI_uUSD_c20260630__oef--ClassAxis__custom--C000010645Member_z21KFBDu3OJy"&gt;$419,641,238&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Number of Holdings&lt;/th&gt;
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--HoldingsCount_iI_uShares_c20260630__oef--ClassAxis__custom--C000010645Member_ztHyt08Fjl19"&gt;70&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt;            
                        &lt;tr style="background-color: Gainsboro"&gt;
                            &lt;th class="table-label" style="text-align: left"&gt;Portfolio Turnover&lt;/th&gt; 
                            &lt;td class="table-value" style="text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eus-gaap--InvestmentCompanyPortfolioTurnover_c20260101__20260630__oef--ClassAxis__custom--C000010645Member_zfahVGopTNyH"&gt;80%&lt;/span&gt;&lt;/td&gt;
                        &lt;/tr&gt; 
          &lt;/table&gt;
        &lt;/div&gt;
      </oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="AsOf2026-06-30_custom_C000010645Member"
      decimals="0"
      id="Fact002688"
      unitRef="USD">419641238</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="AsOf2026-06-30_custom_C000010645Member"
      decimals="INF"
      id="Fact002689"
      unitRef="Shares">70</oef:HoldingsCount>
    <us-gaap:InvestmentCompanyPortfolioTurnover
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      decimals="INF"
      id="Fact002690"
      unitRef="Ratio">0.80</us-gaap:InvestmentCompanyPortfolioTurnover>
    <oef:HoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002691">
    &lt;div class="columns-2" style="columns: 2; column-gap: 16px; column-fill: balance"&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 0.16in"&gt;
        &lt;div class="section-header"&gt;&lt;/div&gt;
        &lt;div class="section-subheader" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;What Sectors Did the Fund Invest In?&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as of June 30, 2026) (as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Information Technology
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_901_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--InformationTechnologyMember_zPlUL7rRyjbp"&gt;59.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Industrials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--IndustrialsMember_zK8GQs2BAJc4"&gt;16.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Consumer Discretionary
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--ConsumerDiscretionaryMember_zV89c0qQHmSV"&gt;4.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Health Care
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_900_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--HealthCareMember_zxokO2yFqSse"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Materials
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--MaterialsMember_zYtH8R9ZoczS"&gt;1.9%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Energy
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_909_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--EnergyMember_zqBzU87ewCcj"&gt;1.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Utilities
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--UtilitiesMember_zLCCEd15C1wJ"&gt;0.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Real Estate
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--RealEstateMember_zFPX8yIaQNYz"&gt;0.2%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Cash &amp;amp; Other
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90E_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__oef--IndustrySectorAxis__custom--CashampOtherMember_zxpLRjGpnXTC"&gt;12.5%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;img alt="Af Image" src="fp0099608-9_sa92.jpg" style="width: 348px; height: 400px"/&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div id="xdx_981_eoef--LargestHoldingsTableTextBlock_c20260101__20260630__oef--ClassAxis__custom--C000010645Member_zFKUQsHW3lMG"&gt;
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zm9RXLAIB3PD"&gt;14.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zKzNPfDtKBlI"&gt;8.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Badger Meter, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--BadgerMeterIncMember_zUdAVjvFcXrq"&gt;5.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_z8zwYWHc17Hk"&gt;5.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Ambarella, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--AmbarellaIncMember_zZZM4AClPMIv"&gt;2.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Harmonic, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--HarmonicIncMember_zZD1g32xLiAR"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Veeco Instruments, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--VeecoInstrumentsIncMember_z53oSAAopGlM"&gt;2.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Calix, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--CalixIncMember_zJM5nbFMkdNo"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zvuDBN4a9Iad"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CEVA, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--CEVAIncMember_zq8QDJCXbx9E"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="section" style="break-inside: avoid; margin-bottom: 8px"&gt;
        &lt;div class="section-header" style="font-size: 10pt"&gt; &lt;span style="font-size: 9pt"&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid; display: none"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
        &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_InformationTechnologyMember"
      decimals="INF"
      id="Fact002692"
      unitRef="Ratio">0.594</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_IndustrialsMember"
      decimals="INF"
      id="Fact002693"
      unitRef="Ratio">0.166</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_ConsumerDiscretionaryMember"
      decimals="INF"
      id="Fact002694"
      unitRef="Ratio">0.044</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_us-gaap_HealthCareMember"
      decimals="INF"
      id="Fact002695"
      unitRef="Ratio">0.027</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_MaterialsMember"
      decimals="INF"
      id="Fact002696"
      unitRef="Ratio">0.019</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_EnergyMember"
      decimals="INF"
      id="Fact002697"
      unitRef="Ratio">0.015</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_UtilitiesMember"
      decimals="INF"
      id="Fact002698"
      unitRef="Ratio">0.008</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_us-gaap_RealEstateMember"
      decimals="INF"
      id="Fact002699"
      unitRef="Ratio">0.002</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_CashampOtherMember"
      decimals="INF"
      id="Fact002700"
      unitRef="Ratio">0.125</oef:PctOfNav>
    <oef:LargestHoldingsTableTextBlock
      contextRef="From2026-01-012026-06-30_custom_C000010645Member"
      id="Fact002701">
          &lt;div class="section-header" style="font-size: 10pt"&gt;&lt;strong&gt;Top Ten Issuers&lt;/strong&gt; &lt;span style="font-size: 9pt"&gt;&lt;strong&gt;(as a percentage of net assets)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;p style="margin: 0"&gt;&#160;&lt;/p&gt;
          &lt;div class="section-body graph" style="margin-bottom: 8px"&gt;&lt;table class="table" style="border: #000000 0px none; width: 100%; border-collapse: collapse; margin-bottom: 0px; margin-top: 0px; font-size: 8pt; break-inside: avoid"&gt;
                        &lt;tr class="header-row" style="background-color: Gainsboro"&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px; text-align: left"&gt;
                &lt;/th&gt;
                            &lt;th class="table-column-header" style="border-bottom: black 1px solid; padding: 4px; font-weight: bold; margin-bottom: 8px"&gt;&lt;/th&gt;
                        &lt;/tr&gt;
                
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Dreyfus Treasury Securities Cash Management
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--DreyfusTreasurySecuritiesCashManagementMember_zm9RXLAIB3PD"&gt;14.3%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Arteris, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90B_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--ArterisIncMember_zKzNPfDtKBlI"&gt;8.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Badger Meter, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--BadgerMeterIncMember_zUdAVjvFcXrq"&gt;5.1%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Vishay Intertechnology, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--VishayIntertechnologyIncMember_z8zwYWHc17Hk"&gt;5.0%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Ambarella, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_903_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--AmbarellaIncMember_zZZM4AClPMIv"&gt;2.8%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Harmonic, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90F_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--HarmonicIncMember_zZD1g32xLiAR"&gt;2.7%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Veeco Instruments, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_902_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--VeecoInstrumentsIncMember_z53oSAAopGlM"&gt;2.6%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    Calix, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--CalixIncMember_zJM5nbFMkdNo"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    PDF Solutions, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_906_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--PDFSolutionsIncMember_zvuDBN4a9Iad"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    
                                        &lt;tr style="background-color: Gainsboro"&gt;
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: left"&gt;
                                                        
                    CEVA, Inc.
                                                &lt;/td&gt;                                           
                                                &lt;td class="table-column-value" style="padding: 4px; text-align: center; width: 15%"&gt;&lt;span id="xdx_90C_eoef--PctOfNav_iI_c20260630__oef--ClassAxis__custom--C000010645Member__us-gaap--InvestmentTypeAxis__custom--CEVAIncMember_zq8QDJCXbx9E"&gt;2.4%&lt;/span&gt;&lt;/td&gt;
                                        &lt;/tr&gt;
                    &lt;/table&gt;&lt;/div&gt;
          &lt;div class="section-body" style="margin-bottom: 8px"&gt;&lt;/div&gt;
        </oef:LargestHoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_DreyfusTreasurySecuritiesCashManagementMember"
      decimals="INF"
      id="Fact002702"
      unitRef="Ratio">0.143</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_ArterisIncMember"
      decimals="INF"
      id="Fact002703"
      unitRef="Ratio">0.087</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_BadgerMeterIncMember"
      decimals="INF"
      id="Fact002704"
      unitRef="Ratio">0.051</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_VishayIntertechnologyIncMember"
      decimals="INF"
      id="Fact002705"
      unitRef="Ratio">0.050</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_AmbarellaIncMember"
      decimals="INF"
      id="Fact002706"
      unitRef="Ratio">0.028</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_HarmonicIncMember"
      decimals="INF"
      id="Fact002707"
      unitRef="Ratio">0.027</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_VeecoInstrumentsIncMember"
      decimals="INF"
      id="Fact002708"
      unitRef="Ratio">0.026</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_CalixIncMember"
      decimals="INF"
      id="Fact002709"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_PDFSolutionsIncMember"
      decimals="INF"
      id="Fact002710"
      unitRef="Ratio">0.024</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="AsOf2026-06-30_custom_C000010645Member_custom_CEVAIncMember"
      decimals="INF"
      id="Fact002711"
      unitRef="Ratio">0.024</oef:PctOfNav>
</xbrl>
