<?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/20230829"
  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:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmr-20230829.xsd" xlink:type="simple"/>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
        </entity>
        <period>
            <startDate>2023-08-29</startDate>
            <endDate>2023-08-29</endDate>
        </period>
    </context>
    <context id="S000007506NCX-PRO">
        <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>2023-08-29</startDate>
            <endDate>2023-08-29</endDate>
        </period>
    </context>
    <context id="S000007506C000020486">
        <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>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-08-29</startDate>
            <endDate>2023-08-29</endDate>
        </period>
    </context>
    <context id="S000007506C000020486ReturnBeforeTaxes">
        <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>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:ReturnBeforeTaxesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-08-29</startDate>
            <endDate>2023-08-29</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:DocumentType contextRef="Trust">485BPOS</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="Trust">2023-06-30</dei:DocumentPeriodEndDate>
    <dei:AmendmentFlag contextRef="Trust">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust">0000702149</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust">The North Carolina Capital Management Trust</dei:EntityRegistrantName>
    <rr:RiskReturnHeading contextRef="S000007506NCX-PRO">Fund Summary
Fund:
Government Portfolio
</rr:RiskReturnHeading>
    <rr:ObjectiveHeading contextRef="S000007506NCX-PRO">Investment Objective</rr:ObjectiveHeading>
    <rr:ObjectivePrimaryTextBlock contextRef="S000007506NCX-PRO">Government Portfolio seeks to obtain as high a level of current income as is consistent with the preservation of capital and liquidity and to maintain a constant net asset value of $1.00 per share.</rr:ObjectivePrimaryTextBlock>
    <rr:ExpenseHeading contextRef="S000007506NCX-PRO">Fee Table</rr:ExpenseHeading>
    <rr:ExpenseNarrativeTextBlock contextRef="S000007506NCX-PRO">
The following table describes the fees and expenses that may be incurred when you buy, hold, and sell shares of the fund. In addition to the fees and expenses described below, you may pay other fees, such as fees to financial intermediaries.
</rr:ExpenseNarrativeTextBlock>
    <rr:ShareholderFeesCaption contextRef="S000007506NCX-PRO">Shareholder fees</rr:ShareholderFeesCaption>
    <rr:ShareholderFeeOther contextRef="S000007506NCX-PRO" decimals="0" unitRef="usd">0</rr:ShareholderFeeOther>
    <rr:OperatingExpensesCaption contextRef="S000007506NCX-PRO">Annual Operating Expenses</rr:OperatingExpensesCaption>
    <rr:ManagementFeesOverAssets
      contextRef="S000007506C000020486"
      decimals="6"
      id="footnoteS000007506NCX-PROAOE_AC000020486_MF"
      unitRef="pure">0.00140</rr:ManagementFeesOverAssets>
    <rr:DistributionAndService12b1FeesOverAssets
      contextRef="S000007506C000020486"
      decimals="6"
      unitRef="pure">0.00065</rr:DistributionAndService12b1FeesOverAssets>
    <rr:OtherExpensesOverAssets
      contextRef="S000007506C000020486"
      decimals="6"
      unitRef="pure">0.00002</rr:OtherExpensesOverAssets>
    <rr:ExpensesOverAssets
      contextRef="S000007506C000020486"
      decimals="6"
      unitRef="pure">0.00207</rr:ExpensesOverAssets>
    <rr:FeeWaiverOrReimbursementOverAssets
      contextRef="S000007506C000020486"
      decimals="6"
      id="footnoteS000007506NCX-PROAOE_BC000020486_FW"
      unitRef="pure">-0.00065</rr:FeeWaiverOrReimbursementOverAssets>
    <rr:NetExpensesOverAssets
      contextRef="S000007506C000020486"
      decimals="6"
      unitRef="pure">0.00142</rr:NetExpensesOverAssets>
    <rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination contextRef="S000007506NCX-PRO">2027-10-31</rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <rr:ExpenseExampleNarrativeTextBlock contextRef="S000007506NCX-PRO">This example helps compare the cost of investing in the fund with the cost of investing in other funds.Let's say, hypothetically, that the annual return for shares of the fund is 5% and that the fees and the annual operating expenses for shares of the fund are exactly as described in the fee table. This example illustrates the effect of fees and expenses, but is not meant to suggest actual or expected fees and expenses or returns, all of which may vary. For every $10,000 you invested, here's how much you would pay in total expenses if you sell all of your shares at the end of each time period indicated:</rr:ExpenseExampleNarrativeTextBlock>
    <rr:ExpenseExampleYear01
      contextRef="S000007506C000020486"
      decimals="0"
      unitRef="usd">15</rr:ExpenseExampleYear01>
    <rr:ExpenseExampleYear03
      contextRef="S000007506C000020486"
      decimals="0"
      unitRef="usd">46</rr:ExpenseExampleYear03>
    <rr:ExpenseExampleYear05
      contextRef="S000007506C000020486"
      decimals="0"
      unitRef="usd">86</rr:ExpenseExampleYear05>
    <rr:ExpenseExampleYear10
      contextRef="S000007506C000020486"
      decimals="0"
      unitRef="usd">233</rr:ExpenseExampleYear10>
    <rr:StrategyHeading contextRef="S000007506NCX-PRO">Principal Investment Strategies</rr:StrategyHeading>
    <rr:StrategyNarrativeTextBlock contextRef="S000007506NCX-PRO">
Normally investing at least 99.5% of total assets in cash, U.S. Government securities and/or repurchase agreements that are collateralized fully (i.e., collateralized by cash or government securities), as permitted by North Carolina General Statute 159-30, as amended (the Statute) and 20 North Carolina Administrative Code 3.0703, and, upon effectiveness, 20 North Carolina Administrative Code 3.0712, as amended (the Code).Investing in U.S. Government securities issued by entities that are chartered or sponsored by Congress but whose securities are neither issued nor guaranteed by the U.S. Treasury.Investing in compliance with industry-standard regulatory requirements for money market funds for the quality, maturity, liquidity, and diversification of investments.Investing only in securities that are authorized for investment by units of local governments pursuant to North Carolina General Statute 159-30(c)(8) and, upon effectiveness, 20 North Carolina Administrative Code 3.0712.
In addition, the fund normally invests at least 80% of its assets in U.S. Government securities and repurchase agreements for those securities.
</rr:StrategyNarrativeTextBlock>
    <rr:RiskHeading contextRef="S000007506NCX-PRO">Principal Investment Risks</rr:RiskHeading>
    <rr:RiskNarrativeTextBlock contextRef="S000007506NCX-PRO">
Interest Rate Changes.
Interest rate increases can cause the price of a money market security to decrease.
Income Risk.
A low or negative interest rate environment can adversely affect the fund's yield.
Issuer-Specific Changes.
A decline in the credit quality of an issuer or a provider of credit support or a maturity-shortening structure for a security can cause the price of a money market security to decrease.
You could lose money by investing in the fund.&#160;Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.&#160;An investment in the fund is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency. &#160;Fidelity Investments and its affiliates, the fund's sponsor, have no legal obligation to provide financial support to the fund, and you should not expect that the sponsor will provide financial support to the fund at any time.
The fund will not impose a fee upon the sale of your shares, nor temporarily suspend your ability to sell shares if the fund's weekly liquid assets fall below 30% of its total assets because of market conditions or other factors.
</rr:RiskNarrativeTextBlock>
    <rr:RiskLoseMoney contextRef="S000007506NCX-PRO">You could lose money by investing in the fund.</rr:RiskLoseMoney>
    <rr:RiskMoneyMarketFundMayNotPreserveDollar contextRef="S000007506NCX-PRO">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-PRO">An investment in the fund is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.</rr:RiskNotInsuredDepositoryInstitution>
    <rr:RiskMoneyMarketFundSponsorMayNotProvideSupport contextRef="S000007506NCX-PRO">&#160;Fidelity Investments and its affiliates, the fund's sponsor, have no legal obligation to provide financial support to the fund, and you should not expect that the sponsor will provide financial support to the fund at any time.</rr:RiskMoneyMarketFundSponsorMayNotProvideSupport>
    <rr:BarChartAndPerformanceTableHeading contextRef="S000007506NCX-PRO">Performance</rr:BarChartAndPerformanceTableHeading>
    <rr:PerformanceNarrativeTextBlock contextRef="S000007506NCX-PRO">
The following information is intended to help you understand the risks of investing in the fund.
The information illustrates the changes in the performance of the fund's shares from year to year.&#160;Past performance is not an indication of future performance.
</rr:PerformanceNarrativeTextBlock>
    <rr:PerformanceInformationIllustratesVariabilityOfReturns contextRef="S000007506NCX-PRO">The information illustrates the changes in the performance of the fund's shares from year to year.</rr:PerformanceInformationIllustratesVariabilityOfReturns>
    <rr:PerformancePastDoesNotIndicateFuture contextRef="S000007506NCX-PRO">Past performance is not an indication of future performance.</rr:PerformancePastDoesNotIndicateFuture>
    <rr:BarChartHeading contextRef="S000007506NCX-PRO">Year-by-Year Returns </rr:BarChartHeading>
    <rr:AnnualReturn2013
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0002</rr:AnnualReturn2013>
    <rr:AnnualReturn2014
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0001</rr:AnnualReturn2014>
    <rr:AnnualReturn2015
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0006</rr:AnnualReturn2015>
    <rr:AnnualReturn2016
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0032</rr:AnnualReturn2016>
    <rr:AnnualReturn2017
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0074</rr:AnnualReturn2017>
    <rr:AnnualReturn2018
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0172</rr:AnnualReturn2018>
    <rr:AnnualReturn2019
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0208</rr:AnnualReturn2019>
    <rr:AnnualReturn2020
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0039</rr:AnnualReturn2020>
    <rr:AnnualReturn2021
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0001</rr:AnnualReturn2021>
    <rr:AnnualReturn2022
      contextRef="S000007506C000020486"
      decimals="INF"
      unitRef="pure">0.0155</rr:AnnualReturn2022>
    <rr:HighestQuarterlyReturnLabel contextRef="S000007506NCX-PRO"> &#160;&#160;&#160;Highest Quarter Return</rr:HighestQuarterlyReturnLabel>
    <rr:BarChartHighestQuarterlyReturn contextRef="S000007506NCX-PRO" decimals="4" unitRef="pure">0.0087</rr:BarChartHighestQuarterlyReturn>
    <rr:BarChartHighestQuarterlyReturnDate contextRef="S000007506NCX-PRO">2022-12-31</rr:BarChartHighestQuarterlyReturnDate>
    <rr:LowestQuarterlyReturnLabel contextRef="S000007506NCX-PRO"> &#160;&#160;&#160;Lowest Quarter Return</rr:LowestQuarterlyReturnLabel>
    <rr:BarChartLowestQuarterlyReturn contextRef="S000007506NCX-PRO" decimals="4" unitRef="pure">0.0000</rr:BarChartLowestQuarterlyReturn>
    <rr:BarChartLowestQuarterlyReturnDate contextRef="S000007506NCX-PRO">2014-03-31</rr:BarChartLowestQuarterlyReturnDate>
    <rr:YearToDateReturnLabel contextRef="S000007506NCX-PRO"> &#160;&#160;&#160;Year-to-Date Return</rr:YearToDateReturnLabel>
    <rr:BarChartYearToDateReturn contextRef="S000007506NCX-PRO" decimals="4" unitRef="pure">0.0233</rr:BarChartYearToDateReturn>
    <rr:BarChartYearToDateReturnDate contextRef="S000007506NCX-PRO">2023-06-30</rr:BarChartYearToDateReturnDate>
    <rr:PerformanceTableHeading contextRef="S000007506NCX-PRO">Average Annual Returns</rr:PerformanceTableHeading>
    <rr:AverageAnnualReturnLabel contextRef="S000007506C000020486ReturnBeforeTaxes">Government Portfolio</rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007506C000020486ReturnBeforeTaxes"
      decimals="4"
      unitRef="pure">0.0155</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007506C000020486ReturnBeforeTaxes"
      decimals="4"
      unitRef="pure">0.0114</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007506C000020486ReturnBeforeTaxes"
      decimals="4"
      unitRef="pure">0.0069</rr:AverageAnnualReturnYear10>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#footnoteS000007506NCX-PROAOE_AC000020486_MF"
          xlink:label="footnoteS000007506NCX-PROAOE_AC000020486_MF"
          xlink:type="locator"/>
        <link:footnote id="footnoteS000007506NCX-PROAOE_A" xlink:label="footnoteS000007506NCX-PROAOE_A" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:6px;color:#000000;font-style:normal;vertical-align:super;font-weight:normal;">A</xhtml:span><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:11px;color:#000000;font-style:normal;font-weight:normal;"><xhtml:span style="padding-right:10px"/></xhtml:span><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:11px;color:#000000;font-style:normal;font-weight:normal;">Net rate retained by Fidelity Management &amp; Research Company LLC (FMR) after payment of 12b-1 fees to the distributor.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007506NCX-PROAOE_AC000020486_MF"
          xlink:to="footnoteS000007506NCX-PROAOE_A"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#footnoteS000007506NCX-PROAOE_BC000020486_FW"
          xlink:label="footnoteS000007506NCX-PROAOE_BC000020486_FW"
          xlink:type="locator"/>
        <link:footnote id="footnoteS000007506NCX-PROAOE_B" xlink:label="footnoteS000007506NCX-PROAOE_B" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:6px;color:#000000;font-style:normal;vertical-align:super;font-weight:normal;">B</xhtml:span><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:11px;color:#000000;font-style:normal;font-weight:normal;"><xhtml:span style="padding-right:10px"/></xhtml:span><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:11px;color:#000000;font-style:normal;font-weight:normal;">Fidelity Management &amp; Research Company LLC (FMR) has contractually agreed to reimburse the fund to the extent that total operating expenses (excluding interest, certain taxes, fees and expenses of the Independent Trustees, extraordinary expenses, and acquired fund fees and expenses (including fees and expenses associated with a wholly owned subsidiary), if any, as well as non-operating expenses such as brokerage commissions and fees and expenses associated with the fund's securities lending program, if applicable), as a percentage of its average net assets, exceed 0.14% (the Expense Cap). If at any time during the current fiscal year expenses for the fund fall below the Expense Cap, FMR reserves the right to recoup through the end of the fiscal year any expenses that were reimbursed during the current fiscal year up to, but not in excess of, the Expense Cap. This arrangement will remain in effect through </xhtml:span><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:11px;color:#000000;font-style:normal;font-weight:normal;">October 31, 2027</xhtml:span><xhtml:span style="font-family:'Fidelity Futura Std Book',Arial,Helvetica,sans-serif;font-size:11px;color:#000000;font-style:normal;font-weight:normal;">. FMR may not terminate this arrangement before the expiration date without the approval of the Board of Trustees and may extend it in its discretion after that date.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007506NCX-PROAOE_BC000020486_FW"
          xlink:to="footnoteS000007506NCX-PROAOE_B"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
