<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2019-01-31"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="utl-20200429.xsd" xlink:type="simple"/>
    <context id="duration_2020-04-29_to_2020-04-29">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000755001</identifier>
        </entity>
        <period>
            <startDate>2020-04-29</startDate>
            <endDate>2020-04-29</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName
      contextRef="duration_2020-04-29_to_2020-04-29"
      id="Hidden_dei_EntityRegistrantName">UNITIL CORP</dei:EntityRegistrantName>
    <dei:AmendmentFlag contextRef="duration_2020-04-29_to_2020-04-29">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2020-04-29_to_2020-04-29"
      id="Hidden_dei_EntityCentralIndexKey">0000755001</dei:EntityCentralIndexKey>
    <dei:CurrentFiscalYearEndDate
      contextRef="duration_2020-04-29_to_2020-04-29"
      id="Hidden_dei_CurrentFiscalYearEndDate_duration_2020-04-29_to_2020-04-29">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType contextRef="duration_2020-04-29_to_2020-04-29">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2020-04-29_to_2020-04-29">2020-04-29</dei:DocumentPeriodEndDate>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2020-04-29_to_2020-04-29">NH</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2020-04-29_to_2020-04-29">1-8858</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2020-04-29_to_2020-04-29">02-0381573</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2020-04-29_to_2020-04-29">6 Liberty Lane West</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="duration_2020-04-29_to_2020-04-29">Hampton</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2020-04-29_to_2020-04-29">NH</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2020-04-29_to_2020-04-29">03842-1720</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2020-04-29_to_2020-04-29">(603)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2020-04-29_to_2020-04-29">772-0775</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2020-04-29_to_2020-04-29">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2020-04-29_to_2020-04-29">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2020-04-29_to_2020-04-29">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2020-04-29_to_2020-04-29">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2020-04-29_to_2020-04-29">Common Stock, no par value</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2020-04-29_to_2020-04-29">UTL</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2020-04-29_to_2020-04-29">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2020-04-29_to_2020-04-29">false</dei:EntityEmergingGrowthCompany>
</xbrl>
