<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>511</ContextCount>
  <ElementCount>316</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>117</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1002 - Statement - CONSOLIDATED STATEMENTS OF EARNINGS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ConsolidatedStatementsOfEarnings</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF EARNINGS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN COMMON STOCK EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ConsolidatedStatementsOfChangesInCommonStockEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN COMMON STOCK EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1007 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN COMMON STOCK EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ConsolidatedStatementsOfChangesInCommonStockEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN COMMON STOCK EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1008 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1009 - Disclosure - DIVIDENDS DECLARED PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DividendsDeclaredPerShare</Role>
      <ShortName>DIVIDENDS DECLARED PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>1010 - Disclosure - SEGMENT INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SegmentInformation</Role>
      <ShortName>SEGMENT INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>1011 - Disclosure - DEBT AND FINANCING ARRANGEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DebtAndFinancingArrangements</Role>
      <ShortName>DEBT AND FINANCING ARRANGEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>1012 - Disclosure - COMMON STOCK AND PREFERRED STOCK</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/CommonStockAndPreferredStock</Role>
      <ShortName>COMMON STOCK AND PREFERRED STOCK</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>1013 - Disclosure - REGULATORY MATTERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RegulatoryMatters</Role>
      <ShortName>REGULATORY MATTERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>1014 - Disclosure - ENVIRONMENTAL MATTERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/EnvironmentalMatters</Role>
      <ShortName>ENVIRONMENTAL MATTERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>1015 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/IncomeTaxes</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>1016 - Disclosure - RETIREMENT BENEFIT OBLIGATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RetirementBenefitObligations</Role>
      <ShortName>RETIREMENT BENEFIT OBLIGATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>1017 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>1018 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>1019 - Disclosure - DIVIDENDS DECLARED PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DividendsDeclaredPerShareTables</Role>
      <ShortName>DIVIDENDS DECLARED PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/DividendsDeclaredPerShare</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>1020 - Disclosure - SEGMENT INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SegmentInformationTables</Role>
      <ShortName>SEGMENT INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/SegmentInformation</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>1021 - Disclosure - DEBT AND FINANCING ARRANGEMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DebtAndFinancingArrangementsTables</Role>
      <ShortName>DEBT AND FINANCING ARRANGEMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/DebtAndFinancingArrangements</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>1022 - Disclosure - COMMON STOCK AND PREFERRED STOCK (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/CommonStockAndPreferredStockTables</Role>
      <ShortName>COMMON STOCK AND PREFERRED STOCK (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/CommonStockAndPreferredStock</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>1023 - Disclosure - ENVIRONMENTAL MATTERS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/EnvironmentalMattersTables</Role>
      <ShortName>ENVIRONMENTAL MATTERS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/EnvironmentalMatters</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>1024 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/IncomeTaxesTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/IncomeTaxes</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>1025 - Disclosure - RETIREMENT BENEFIT OBLIGATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RetirementBenefitObligationsTables</Role>
      <ShortName>RETIREMENT BENEFIT OBLIGATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitil.com/role/RetirementBenefitObligations</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>1026 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>1027 - Disclosure - Components of Gas and Electric Operating Revenue (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ComponentsOfGasAndElectricOperatingRevenueDetail</Role>
      <ShortName>Components of Gas and Electric Operating Revenue (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>1028 - Disclosure - Allowance for Doubtful Accounts Included in Accounts Receivable Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/AllowanceForDoubtfulAccountsIncludedInAccountsReceivableNetDetail</Role>
      <ShortName>Allowance for Doubtful Accounts Included in Accounts Receivable Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>1029 - Disclosure - Components of Accrued Revenue (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ComponentsOfAccruedRevenueDetail</Role>
      <ShortName>Components of Accrued Revenue (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>1030 - Disclosure - Components of Exchange Gas Receivable (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ComponentsOfExchangeGasReceivableDetail</Role>
      <ShortName>Components of Exchange Gas Receivable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>1031 - Disclosure - Components of Gas Inventory (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ComponentsOfGasInventoryDetail</Role>
      <ShortName>Components of Gas Inventory (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>1032 - Disclosure - Regulatory Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RegulatoryAssetsDetail</Role>
      <ShortName>Regulatory Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>1033 - Disclosure - Regulatory Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RegulatoryLiabilitiesDetail</Role>
      <ShortName>Regulatory Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>1034 - Disclosure - Fair Value of Marketable Securities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/FairValueOfMarketableSecuritiesDetail</Role>
      <ShortName>Fair Value of Marketable Securities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>1035 - Disclosure - Components of Energy Supply Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ComponentsOfEnergySupplyObligationsDetail</Role>
      <ShortName>Components of Energy Supply Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>1036 - Disclosure - Dividends Declared Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DividendsDeclaredPerShareDetail</Role>
      <ShortName>Dividends Declared Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>1037 - Disclosure - Significant Segment Financial Data (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/SignificantSegmentFinancialDataDetail</Role>
      <ShortName>Significant Segment Financial Data (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>1038 - Disclosure - Details on Long Term Debt (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DetailsOnLongTermDebtDetail</Role>
      <ShortName>Details on Long Term Debt (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>1039 - Disclosure - Details on Long Term Debt (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DetailsOnLongTermDebtParentheticalDetail</Role>
      <ShortName>Details on Long Term Debt (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>1040 - Disclosure - Estimated Fair Value of Long Term Debt (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/EstimatedFairValueOfLongTermDebtDetail</Role>
      <ShortName>Estimated Fair Value of Long Term Debt (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>1041 - Disclosure - Debt and Financing Arrangements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DebtAndFinancingArrangementsAdditionalInformationDetail</Role>
      <ShortName>Debt and Financing Arrangements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>1042 - Disclosure - Borrowing Limits Amounts Outstanding and Amounts Available under Revolving Credit Facility (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/BorrowingLimitsAmountsOutstandingAndAmountsAvailableUnderRevolvingCreditFacilityDetail</Role>
      <ShortName>Borrowing Limits Amounts Outstanding and Amounts Available under Revolving Credit Facility (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>1043 - Disclosure - Debt and Financing Arrangements - Classification of the Company Lease Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DebtAndFinancingArrangementsClassificationOfTheCompanyLeaseObligationsDetail</Role>
      <ShortName>Debt and Financing Arrangements - Classification of the Company Lease Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>1044 - Disclosure - Future Operating Lease Payment Obligations and Future Minimum Lease Payments under Capital Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/FutureOperatingLeasePaymentObligationsAndFutureMinimumLeasePaymentsUnderCapitalLeasesDetail</Role>
      <ShortName>Future Operating Lease Payment Obligations and Future Minimum Lease Payments under Capital Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>1045 - Disclosure - Common Stock And Preferred Stock - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/CommonStockAndPreferredStockAdditionalInformationDetail</Role>
      <ShortName>Common Stock And Preferred Stock - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>1046 - Disclosure - Restricted Stock Units Issued (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RestrictedStockUnitsIssuedDetail</Role>
      <ShortName>Restricted Stock Units Issued (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>1047 - Disclosure - Regulatory Matters - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RegulatoryMattersAdditionalInformationDetail</Role>
      <ShortName>Regulatory Matters - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>1048 - Disclosure - Environmental Matters - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/EnvironmentalMattersAdditionalInformationDetail</Role>
      <ShortName>Environmental Matters - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>1049 - Disclosure - Company's Liability for Environmental Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/CompanysLiabilityForEnvironmentalObligationsDetail</Role>
      <ShortName>Company's Liability for Environmental Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>1050 - Disclosure - Differences Between Provisions for Income Taxes and Provisions Calculated at Statutory Federal Tax Rate (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/DifferencesBetweenProvisionsForIncomeTaxesAndProvisionsCalculatedAtStatutoryFederalTaxRateDetail</Role>
      <ShortName>Differences Between Provisions for Income Taxes and Provisions Calculated at Statutory Federal Tax Rate (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>1051 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/IncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>1052 - Disclosure - Key Weighted Average Assumptions Used in Determining Benefit Plan Costs and Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/KeyWeightedAverageAssumptionsUsedInDeterminingBenefitPlanCostsAndObligationsDetail</Role>
      <ShortName>Key Weighted Average Assumptions Used in Determining Benefit Plan Costs and Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>1053 - Disclosure - Components of Retirement Plan Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/ComponentsOfRetirementPlanCostsDetail</Role>
      <ShortName>Components of Retirement Plan Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="d267350d10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>1054 - Disclosure - Retirement Benefit Obligations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitil.com/role/RetirementBenefitObligationsAdditionalInformationDetail</Role>
      <ShortName>Retirement Benefit Obligations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="d267350d10q.htm">d267350d10q.htm</File>
    <File>d267350dex311.htm</File>
    <File>d267350dex312.htm</File>
    <File>d267350dex313.htm</File>
    <File>d267350dex321.htm</File>
    <File>d267350dex991.htm</File>
    <File>utl-20220630.xsd</File>
    <File>utl-20220630_cal.xml</File>
    <File>utl-20220630_def.xml</File>
    <File>utl-20220630_lab.xml</File>
    <File>utl-20220630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1120">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
