<?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/20250829"
  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-20250829.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>2024-06-30</startDate>
            <endDate>2025-06-30</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-06-30</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-06-30</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-06-30</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-06-30</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-06-30</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-06-30</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-06-30</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-06-30</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-06-30</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-06-30</instant>
        </period>
    </context>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
        </entity>
        <period>
            <startDate>2024-06-30</startDate>
            <endDate>2025-06-30</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-11506">N-CSR</dei:DocumentType>
    <dei:AmendmentFlag contextRef="Trust" id="ixv-11507">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust" id="ixv-11508">0000702149</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust" id="ixv-11509">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust" id="ixv-11510">The North Carolina Capital Management Trust</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="Trust" id="ixv-102">2025-06-30</dei:DocumentPeriodEndDate>
    <oef:FundName contextRef="C000020486_ClassMember" id="ixv-114">Government Portfolio</oef:FundName>
    <oef:ClassName contextRef="C000020486_ClassMember" id="ixv-117">Government Portfolio</oef:ClassName>
    <dei:TradingSymbol contextRef="C000020486_ClassMember" id="ixv-121">NCCTX</dei:TradingSymbol>
    <oef:AnnlOrSemiAnnlStatementTextBlock contextRef="C000020486_ClassMember" id="ixv-140">This annual shareholder report contains information about Government Portfolio for the period July 1, 2024 to June 30, 2025.</oef:AnnlOrSemiAnnlStatementTextBlock>
    <oef:ShareholderReportAnnualOrSemiAnnual contextRef="C000020486_ClassMember" id="ixv-142">annual shareholder report</oef:ShareholderReportAnnualOrSemiAnnual>
    <oef:AddlInfoTextBlock contextRef="C000020486_ClassMember" id="ixv-147">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-149">fundresearch.fidelity.com/prospectus/sec</oef:AddlInfoWebsite>
    <oef:AddlInfoPhoneNumber contextRef="C000020486_ClassMember" id="ixv-152">1-800-222-3232</oef:AddlInfoPhoneNumber>
    <oef:ExpensesTextBlock contextRef="C000020486_ClassMember" id="ixv-159">&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 year?&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&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: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;FUND COST (PREVIOUS YEAR)&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: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:45%; 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:24%; 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:30%; 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:45%; 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:24%; 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;14&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:30%; 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-11613"
      unitRef="usd">14</oef:ExpensesPaidAmt>
    <oef:ExpenseRatioPct
      contextRef="C000020486_ClassMember"
      decimals="INF"
      id="ixv-11614"
      unitRef="pure">0.0014</oef:ExpenseRatioPct>
    <oef:AddlFundStatisticsTextBlock contextRef="C000020486_ClassMember" id="ixv-207">&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 June 30, 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;/div&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:bold;"&gt; &lt;span&gt;&#160;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align:left;text-align-last:auto;"&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;21,807,343,370&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;474&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;Total Advisory Fee&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;44,737,361&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="middle"&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-11615"
      unitRef="usd">21807343370</us-gaap:AssetsNet>
    <oef:HoldingsCount
      contextRef="C000020486_InstantMember"
      decimals="INF"
      id="ixv-11616"
      unitRef="holding">474</oef:HoldingsCount>
    <oef:AdvisoryFeesPaidAmt
      contextRef="C000020486_ClassMember"
      decimals="0"
      id="ixv-11617"
      unitRef="usd">44737361</oef:AdvisoryFeesPaidAmt>
    <oef:HoldingsTableTextBlock contextRef="C000020486_ClassMember" id="ixv-271">
&#160;
EFFECTIVE MATURITY DIVERSIFICATION
(% of Fund's net assets)


&#160;
Days
&#160;


1-7

53.7

&#160;


8-30

19.2

&#160;


31-60

8.9

&#160;


61-90

12.6

&#160;


91-180

2.9

&#160;


&gt;180

5.8

&#160;


&#160;
&#160;




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

52.3


U.S. Treasury Obligations

44.0


Repurchase Agreements

6.8




ASSET ALLOCATION (% of Fund's net assets)


&#160;



&#160;

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


&#160;

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


&#160;

Repurchase Agreements - 6.8&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;


Net Other Assets (Liabilities) - (3.1)%


&#160;






</oef:HoldingsTableTextBlock>
    <oef:PctOfNav
      contextRef="C000020486_EMD_0_Member"
      decimals="INF"
      id="ixv-11618"
      unitRef="pure">0.537</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_1_Member"
      decimals="INF"
      id="ixv-11619"
      unitRef="pure">0.192</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_2_Member"
      decimals="INF"
      id="ixv-11620"
      unitRef="pure">0.089</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_3_Member"
      decimals="INF"
      id="ixv-11621"
      unitRef="pure">0.126</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_4_Member"
      decimals="INF"
      id="ixv-11622"
      unitRef="pure">0.029</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_EMD_5_Member"
      decimals="INF"
      id="ixv-11623"
      unitRef="pure">0.058</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_USGovernmentAgencyDebt_Member"
      decimals="INF"
      id="ixv-11624"
      unitRef="pure">0.523</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_USTreasuryObligations_Member"
      decimals="INF"
      id="ixv-11625"
      unitRef="pure">0.440</oef:PctOfNav>
    <oef:PctOfNav
      contextRef="C000020486_AA_RepurchaseAgreements_Member"
      decimals="INF"
      id="ixv-11626"
      unitRef="pure">0.068</oef:PctOfNav>
</xbrl>
