<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="nxtc-20260618.xsd" xlink:type="simple"/>
    <context id="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001661059</identifier>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Tc_TkoSQdxMnUauGyKBp459lA_2_1">0001661059</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Tc_TygMVuKwRU2U0xZVi4P8sg_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_r_C4EVbYqkyljSg2AKVqTg">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_KfxL-6MeR0CdW5Mqj2fogQ">2026-06-18</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_mUtpkbg1LUy0_jKCGgnJag">NextCure, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_GXSD3KdpA06tBm2v6j9lcQ">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_j06uWrr6qECoS2Aw6S8irg">001-38905</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_Uhi6Xzs9n0q9Brabs2nG-A">47-5231247</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_tl70iB_NJ0SZomlrAEcigQ">9000 Virginia Manor Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_RaOH4TBqj0Wys-N_nxeXIA">Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_1i4eVi-nMEix5okeLr1P-w">Beltsville</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_OmPjYVjuokOQKOQeRkhANw">MD</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Tc_KZNC5Nt4A0CmicU5B4uF8Q_1_2">20705</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_lm_ksnZPxEujbpwcgLtsBQ">240</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_ZnhECg3s10q_11a994_TjA">399-4900</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_fFJCDFe3UkOzaHTLbRmq9g">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_czhGN6BAhkKlm-BULjyuKQ">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_1YzevmrCXUSTfih62Vuqcg">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_uNd9G8sqeEmJx1Me32l37Q">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Tc_YfPDu5Hd60SbOlmny61vMA_3_0">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Tc_sEngLwHhVEeGACyyGgMVcQ_3_1">NXTC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Tc_dR8PPb06U0S1t5GEEvucVQ_3_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_6_18_2026_To_6_18_2026_P6qwrow8h0WrtzazSZVDtQ"
      id="Narr_t8T8fLwXwUGj-2Mc8iQVYQ">false</dei:EntityEmergingGrowthCompany>
</xbrl>
