<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:fmr="http://www.fidelity.com/20260228"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2024q3"
  xmlns:us-gaap="http://fasb.org/us-gaap/2024"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmr-20260228.xsd" xlink:type="simple"/>
    <context id="C000020486_ClassMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-06-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="C000020486_InstantMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_EMD_0_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD0Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_EMD_1_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD1Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_EMD_2_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_EMD_3_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_EMD_4_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD4Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_EMD_5_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:MaturityAxis">fmr:EMD5Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_AA_USTreasuryObligations_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">fmr:AAUSTreasuryObligationsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_AA_USGovernmentAgencyDebt_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">fmr:AAUSGovernmentAgencyDebtMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C000020486_AA_RepurchaseAgreements_Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:InvestmentTypeAxis">fmr:AARepurchaseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
        </entity>
        <period>
            <startDate>2025-06-30</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="holding">
        <measure>shares</measure>
    </unit>
    <dei:DocumentType contextRef="Trust" id="ixv-11329">N-CSRS</dei:DocumentType>
    <dei:AmendmentFlag contextRef="Trust" id="ixv-11330">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust" id="ixv-11331">0000702149</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust" id="ixv-11332">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust" id="ixv-11333">The North Carolina Capital Management Trust</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="Trust" id="ixv-92">2025-12-31</dei:DocumentPeriodEndDate>
    <oef:FundName contextRef="C000020486_ClassMember" id="ixv-104">Government Portfolio</oef:FundName>
    <oef:ClassName contextRef="C000020486_ClassMember" id="ixv-107">Government Portfolio</oef:ClassName>
    <dei:TradingSymbol contextRef="C000020486_ClassMember" id="ixv-111">NCCTX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock contextRef="C000020486_ClassMember" id="ixv-130">This semi-annual shareholder report contains information about Government Portfolio for the period July 1, 2025 to December 31, 2025.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:ShareholderReportAnnualOrSemiAnnual contextRef="C000020486_ClassMember" id="ixv-132">semi-annual shareholder report</oef:ShareholderReportAnnualOrSemiAnnual>
    <oef:AddlInfoTextBlock contextRef="C000020486_ClassMember" id="ixv-137">You can find additional information about the Fund at fundresearch.fidelity.com/prospectus/sec. You can also request this information by contacting us at 1-800-222-3232.</oef:AddlInfoTextBlock>
    <oef:AddlInfoWebsite contextRef="C000020486_ClassMember" id="ixv-139">fundresearch.fidelity.com/prospectus/sec</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber contextRef="C000020486_ClassMember" id="ixv-142">1-800-222-3232</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock contextRef="C000020486_ClassMember" id="ixv-149">&lt;span style="font-family:'Fidelity Sans';font-size:16px;color:#368627;font-style:normal;font-weight:bold;"&gt;What were your Fund costs for the last six months?&lt;/span&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;(based on hypothetical $10,000 investment)&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-style:none;" width="100%"&gt;&lt;tr&gt;&lt;td style="width:51%; background-color:#dfe0e4;border:1px solid #dfe0e4;padding:0px 0px 0px 0px;" valign="bottom"&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:21%; background-color:#dfe0e4;border:1px solid #dfe0e4;padding:0px 0px 0px 0px;" valign="bottom"&gt;&lt;div style="text-align:center;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;Costs of a $10,000 investment&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:27%; background-color:#dfe0e4;border:1px solid #dfe0e4;padding:0px 0px 0px 0px;" valign="bottom"&gt;&lt;div style="text-align:center;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;Costs paid as a percentage of a $10,000 investment &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:1%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:51%; border-bottom:1px solid #000000;padding:0px 0px 0px 0px;" valign="top"&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Government Portfolio&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:21%; border-bottom:1px solid #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:center;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;$ &lt;/span&gt;7&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:27%; border-bottom:1px solid #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:center;text-align-last:auto;"&gt;0.14&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;%&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:1%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;</oef:ExpensesTextBlock>
    <oef:ExpensesPaidAmt
      contextRef="C000020486_ClassMember"
      decimals="0"
      id="ixv-11436"
      unitRef="usd">7</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="C000020486_ClassMember"
      decimals="INF"
      id="ixv-11437"
      unitRef="pure">0.0014</oef:ExpenseRatioPct>
    <oef:AddlFundStatisticsTextBlock contextRef="C000020486_ClassMember" id="ixv-189">&lt;span style="font-family:'Fidelity Sans';font-size:16px;color:#368627;font-style:normal;font-weight:bold;"&gt;Key Fund Statistics&lt;/span&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;(as of December 31, 2025)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:11px;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;div style="text-align:right;text-align-last:auto;"&gt;&lt;table cellpadding="0" cellspacing="1" style="border-collapse:separate;border-style:none;margin:auto;" width="100%"&gt;&lt;tr&gt;&lt;td style="width:63%; " valign="top"&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:12px;color:#000000;font-style:normal;font-weight:bold;"&gt;KEY FACTS&lt;/span&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:bold;"&gt;&#160;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="top"&gt;&lt;span style="line-height:12px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:63%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Fund Size&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:right;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;$&lt;/span&gt;23,788,220,491&lt;/div&gt;
&lt;div style="text-align:right;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="top"&gt;&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style="width:63%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;span style="font-family:'Fidelity Sans';font-size:11px;color:#000000;font-style:normal;font-weight:normal;"&gt;Number of Holdings&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:32%; border-bottom:1px dashed #000000;padding:0px 0px 0px 0px;" valign="middle"&gt;&lt;div style="text-align:right;text-align-last:auto;"&gt;466&lt;/div&gt;
&lt;div style="text-align:right;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style="width:5%; " valign="top"&gt;&lt;span style="line-height:11px;"&gt;&#160;&lt;/span&gt;&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div style="text-align:left;text-align-last:auto;"&gt;&lt;/div&gt;</oef:AddlFundStatisticsTextBlock>
    <us-gaap:AssetsNet
      contextRef="C000020486_InstantMember"
      decimals="0"
      id="ixv-11438"
      unitRef="usd">23788220491</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="C000020486_InstantMember"
      decimals="INF"
      id="ixv-11439"
      unitRef="holding">466</oef:HoldingsCount>
    <oef:HoldingsTableTextBlock contextRef="C000020486_ClassMember" id="ixv-238">
&#160;
EFFECTIVE MATURITY DIVERSIFICATION
(% of Fund's net assets)


&#160;
Days
&#160;


1-7

62.4

&#160;


8-30

12.9

&#160;


31-60

11.3

&#160;


61-90

7.8

&#160;


91-180

7.7

&#160;


&gt;180

1.6

&#160;


&#160;
&#160;




&#160;
&#160;
&#160;
U.S. Treasury Obligations

39.3


U.S. Government Agency - Debt

33.7


Repurchase Agreements

30.7




ASSET ALLOCATION (% of Fund's net assets)


&#160;



&#160;

U.S. Treasury Obligations - 39.3&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;


&#160;

U.S. Government Agency - Debt - 33.7&#160;&#160;&#160;&#160;


&#160;

Repurchase Agreements - 30.7&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;


Net Other Assets (Liabilities) - (3.7)%


&#160;






</oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="C000020486_EMD_0_Member"
      decimals="INF"
      id="ixv-11440"
      unitRef="pure">0.624</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_1_Member"
      decimals="INF"
      id="ixv-11441"
      unitRef="pure">0.129</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_2_Member"
      decimals="INF"
      id="ixv-11442"
      unitRef="pure">0.113</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_3_Member"
      decimals="INF"
      id="ixv-11443"
      unitRef="pure">0.078</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_4_Member"
      decimals="INF"
      id="ixv-11444"
      unitRef="pure">0.077</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_5_Member"
      decimals="INF"
      id="ixv-11445"
      unitRef="pure">0.016</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_USTreasuryObligations_Member"
      decimals="INF"
      id="ixv-11446"
      unitRef="pure">0.393</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_USGovernmentAgencyDebt_Member"
      decimals="INF"
      id="ixv-11447"
      unitRef="pure">0.337</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_RepurchaseAgreements_Member"
      decimals="INF"
      id="ixv-11448"
      unitRef="pure">0.307</oef:PctOfNav>
</xbrl>
