<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="th-20241122.xsd" xlink:type="simple"/>
    <context id="c20241122to20241122">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712189</identifier>
        </entity>
        <period>
            <startDate>2024-11-22</startDate>
            <endDate>2024-11-22</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="c20241122to20241122"
      id="Fact_d8ecdf07cb3e406bb4f8293719a4fefc">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="c20241122to20241122"
      id="Fact_6d0ca9c0796147a68c5f19b161569a3c">0001712189</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="c20241122to20241122"
      id="Fact_9c48c1e1e18a42cdbd0be67e761fc805">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="c20241122to20241122"
      id="Fact_d475cd4b220744698d0cbf80d60378c2">2024-11-22</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="c20241122to20241122"
      id="Fact_77d7d1de872c47908048cee2e7e1a3e1">TARGET HOSPITALITY CORP.</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="c20241122to20241122"
      id="Fact_c708e8e35b1743768b52c25be86ae4a9">001-38343</dei:EntityFileNumber>
    <dei:EntityIncorporationStateCountryCode
      contextRef="c20241122to20241122"
      id="Fact_8bd2f63b984c43fda7c662806e1033db">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber
      contextRef="c20241122to20241122"
      id="Fact_e6859717be8e40b497a33afd96ba49de">98-1378631</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="c20241122to20241122"
      id="Fact_865577bafbdd42db83603c6d29bbe84d">9320 LAKESIDE BLVD.</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="c20241122to20241122"
      id="Fact_f0beca712ee94fa2a0afbb06c8835228">SUITE 300</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="c20241122to20241122"
      id="Fact_bd79dd6561ca4d7ba77abb56722cd5e3">THE WOODLANDS</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="c20241122to20241122"
      id="Fact_78bb0869e7324f388aae797cfde55d3a">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="c20241122to20241122"
      id="Fact_6121eaf669d146c6b69afa061be3d3d7">77381</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="c20241122to20241122"
      id="Fact_8f4ffe19fa5240038994865d0f2158a2">832</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="c20241122to20241122"
      id="Fact_6cac756aa20b413fb1d374408cb9306f">709-2563</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="c20241122to20241122"
      id="Fact_a5377abc5afa4a42bb33a565ce807450">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="c20241122to20241122"
      id="Fact_5d7c6cd36dfb4bb1a63db4b3b0a97cf1">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="c20241122to20241122"
      id="Fact_a2d37bfc7b054b0f93ed5b34fb7506fa">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="c20241122to20241122"
      id="Fact_2104cea6bad44b6783962e37e26d5c26">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="c20241122to20241122"
      id="Fact_263d1f7a04254141b874736a57c5cdc1">THCommon stock, par value $0.0001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="c20241122to20241122"
      id="Fact_9f85b9099a714ecba964cd31bfe0d319">TH</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="c20241122to20241122"
      id="Fact_62d5706ec3594d808c7d3771cb9b230c">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="c20241122to20241122"
      id="Fact_df81466920c441eca9b6a1626220b9c6">false</dei:EntityEmergingGrowthCompany>
</xbrl>
