<?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-20260507.xsd" xlink:type="simple"/>
    <context id="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001661059</identifier>
        </entity>
        <period>
            <startDate>2026-05-07</startDate>
            <endDate>2026-05-07</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Tc_VsPIEZANs0GRX-rLdhpW4Q_2_1">0001661059</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Tc_wwH9z_wwskuZ_I1PZU8LLA_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_csGksSbMAkyhqmBdGjNkmA">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_YaJMy8W5kESIrHkLwL0VrQ">2026-05-07</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_vHsSq2pxpEuQfdYMFm52YQ">NextCure, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_KwpR528T6kS2FF_KhAsC1g">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_IlAM2FQ5rUOoEWg7--Z1Wg">001-38905</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_xsfmWLZ7r0ePXNa3fwBvCw">47-5231247</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_DGH_jIP9t0yPpjs1qy9V4g">9000 Virginia Manor Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr__cpvG0rUeU-204zuCYSH3w">Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_ZRTd-3D4B0afmdk3pO2wxQ">Beltsville</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_KoIgtUIfMUyWB6LD7Q3hVA">MD</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Tc_i02prfVIt0m9RZe6M-gXdw_1_2">20705</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_edQZHGKjckSAoC6JLXnG0w">240</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_bR84iDdBjEOpFtJXWlLbcg">399-4900</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_r2v99t7yj0eMYGL6DDw4bA">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_meiguBxSQE6IUS93tHaF2Q">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_bFOPYeIKXEG5NNrVAD_6Fg">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_N6U938jfmk-S1Sy2zFuooQ">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Tc_K3wsdBAud0mi6IdUXgJemg_3_0">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Tc_sh9OZi43M0GNjEI8oO7wIg_3_1">NXTC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Tc_RMyxv08tG0GV_3DxKvveRg_3_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_5_7_2026_To_5_7_2026_SRr_9veZSky4_hetcu2-Ww"
      id="Narr_KiL07vGXtUeH1JfNP6JhlA">false</dei:EntityEmergingGrowthCompany>
</xbrl>
