<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:fmr="http://www.fidelity.com/20240402"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:rr="http://xbrl.sec.gov/rr/2022"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmr-20240402.xsd" xlink:type="simple"/>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
        </entity>
        <period>
            <startDate>2024-04-02</startDate>
            <endDate>2024-04-02</endDate>
        </period>
    </context>
    <context id="S000007506NCX-PSTK">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-04-02</startDate>
            <endDate>2024-04-02</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:DocumentType contextRef="Trust" id="ixv-53">497</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="Trust" id="ixv-54">2023-06-30</dei:DocumentPeriodEndDate>
    <dei:AmendmentFlag contextRef="Trust" id="ixv-55">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust" id="ixv-56">0000702149</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust" id="ixv-57">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust" id="ixv-58">The North Carolina Capital Management Trust</dei:EntityRegistrantName>
    <rr:SupplementToProspectusTextBlock contextRef="S000007506NCX-PSTK" id="ixv-9">Supplement to the
The North Carolina Capital Management Trust:
Government Portfolio
August 29, 2023
Prospectus
</rr:SupplementToProspectusTextBlock>
    <rr:RiskLoseMoney contextRef="S000007506NCX-PSTK" id="ixv-19">You could lose money by investing in the fund.</rr:RiskLoseMoney>
    <rr:RiskMoneyMarketFundMayNotPreserveDollar contextRef="S000007506NCX-PSTK" id="ixv-23">Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.</rr:RiskMoneyMarketFundMayNotPreserveDollar>
    <rr:RiskNotInsuredDepositoryInstitution contextRef="S000007506NCX-PSTK" id="ixv-27">An investment in the fund is not a bank account and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.</rr:RiskNotInsuredDepositoryInstitution>
    <rr:RiskMoneyMarketFundSponsorMayNotProvideSupport contextRef="S000007506NCX-PSTK" id="ixv-30">&#160;Fidelity Investments and its affiliates, the fund's sponsor, is not required to reimburse the fund for losses, and you should not expect that the sponsor will provide financial support to the fund at any time, including during periods of market stress.</rr:RiskMoneyMarketFundSponsorMayNotProvideSupport>
</xbrl>
