<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="nxtc-20260806.xsd" xlink:type="simple"/>
    <context id="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001661059</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Tc_H6CA9J2SrECWJZJUOZ_VmA_2_1">0001661059</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Tc_e3_R2v8ldUu7pplYvYRgrw_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_6nObObKk9Eqa0rnrcc8O8Q">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_OuEa17_sJ0KES-af-oI01g">2026-08-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_htHBho_wrkuxYNrtZDdgZQ">NextCure, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_OF-uwxZnzkaRj6rAW8E1PQ">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_Je3TfPSweE6WkuwslUcE_g">001-38905</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_90RVplM2bEeE1gbLoHIiWw">47-5231247</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_pg9mcwabm0y9KKIh6BpYwg">8000 Virginia Manor Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_xidBWLWdH062gran0O5adw">Suite 140</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_tGy1tBjk80SWcYhp5JjIOw">Beltsville</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_G1eddtma6EOA3iSqX_AM-Q">MD</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Tc_6Yx03C2bx02KUometJ1AMQ_1_2">20705</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_6gCCYd7mNkqTa7gk4zCLJw">240</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_QVh0sxKLsEiuCqQW93xIZQ">399-4900</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_TL-fzyLTTU2aIgJXHeA5vw">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_kJf3R8toOUqG4l0SN8WGAQ">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_a_-24k49mEis9001_Zx7WQ">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_RC_V0BbbG0acvLVTppy_hw">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Tc_K6sxeVuIhUuUu2WEWvlM_Q_3_0">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Tc_9ql1GEKqW06_BBcnTwqtgQ_3_1">NXTC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Tc_prcOlN5d-0SBUzX4GZ7_Gw_3_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_8_6_2026_To_8_6_2026_2kwUx67moEGbr_xWTTGAaQ"
      id="Narr_kH85wdgL9keLo6fAPdIhmw">false</dei:EntityEmergingGrowthCompany>
</xbrl>
