<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="th-20240325.xsd" xlink:type="simple"/>
    <context id="c20240325to20240325">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712189</identifier>
        </entity>
        <period>
            <startDate>2024-03-25</startDate>
            <endDate>2024-03-25</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="c20240325to20240325"
      id="Fact_8b9302b887a8417c9fe6989812cb22d2">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="c20240325to20240325"
      id="Fact_9f7f1055f07440dc9b05b877f790a755">0001712189</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="c20240325to20240325"
      id="Fact_f5ac1b7628ad4c798b028aaaf7cad400">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="c20240325to20240325"
      id="Fact_3e0eae84ec1147e38f1ee21b51c3b504">2024-03-25</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="c20240325to20240325"
      id="Fact_97eb3047777446d3af6af97ab927fc3a">TARGET HOSPITALITY CORP.</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="c20240325to20240325"
      id="Fact_6a53ebdb8d0d4397a5cf8d761053fdf1">001-38343</dei:EntityFileNumber>
    <dei:EntityIncorporationStateCountryCode
      contextRef="c20240325to20240325"
      id="Fact_678b9dfd47e747838b34c22fba16449d">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber
      contextRef="c20240325to20240325"
      id="Fact_d6d182bcc7e148f59e90a42fa36ccc41">98-1378631</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="c20240325to20240325"
      id="Fact_12b119153f1d44f69ab23bf3fcbb3de8">9320 LAKESIDE BLVD.</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="c20240325to20240325"
      id="Fact_9938728c785248f596a6aa47328920cf">SUITE 300</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="c20240325to20240325"
      id="Fact_3b70fd5d96af48a08f95fabea7c8c096">THE WOODLANDS</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="c20240325to20240325"
      id="Fact_0b4bcfc94fa74c7595ea2e33b1ea967e">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="c20240325to20240325"
      id="Fact_3645a93fc15c4491a7c1895344b09e36">77381</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="c20240325to20240325"
      id="Fact_91c883ae4e3b4d99b7485915a4cd7d41">832</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="c20240325to20240325"
      id="Fact_d2ae2cd23efd4ba793e58df7840ccc07">709-2563</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="c20240325to20240325"
      id="Fact_c129574f0d9541f6961ba479c7d95437">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="c20240325to20240325"
      id="Fact_1eee7882a066403f8448456abb22c7ef">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="c20240325to20240325"
      id="Fact_9425e71b1d78411eba273566ce33c1e7">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="c20240325to20240325"
      id="Fact_aad8218774bf4716bf452d5c88b9cf6a">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="c20240325to20240325"
      id="Fact_8a2e5acbd98641ecb11b5dbd521455f6">THCommon stock, par value $0.0001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="c20240325to20240325"
      id="Fact_4ae60080d52843b19d6922418e6897f6">TH</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="c20240325to20240325"
      id="Fact_e644d14e01bb418d85151087245f57b4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="c20240325to20240325"
      id="Fact_7fd7a2e0b6ce465d975bc479f9a79874">false</dei:EntityEmergingGrowthCompany>
</xbrl>
