<DefinitionAndReference>
  <Element Id="us-gaap_BusinessCombinationDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromLinesOfCredit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredTaxAssetsNetCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInAccountsPayable">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AssetRetirementObligationDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherLiabilitiesNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PreferredStockValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInFinancingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InventoryRawMaterialsAndSupplies">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityCommonStockSharesOutstanding">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromSaleOfProductiveAssets">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredTaxLiabilitiesNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CashAndCashEquivalentsAtCarryingValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RepaymentsOfLinesOfCredit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherNonoperatingIncomeExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PreferredStockSharesIssued">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentOnDerivativesIncludedInNetIncomeTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_OilAndNaturalGasDepreciationDepletionAndAmortization">
    <definition>Oil and natural gas depreciation, depletion and amortization.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeAssetsNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccountsPayableCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GasGatheringTransportationMarketingAndProcessingCosts">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_TradingSymbol">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityRegistrantName">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredIncomeTaxExpenseBenefit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityCentralIndexKey">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_GasGatheringTransportationMarketingAndProcessingDepreciation">
    <definition>Gas Gathering Transportation Marketing And Processing, Depreciation.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetIncomeLoss">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_OilAndNaturalGasPropertiesFullCostMethodNotSubjectToAmortization">
    <definition>Oil and natural gas properties-full cost method, not subject to amortization.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ScheduleOfSubsequentEventsTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeLiabilitiesNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInOtherAccruedLiabilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeAssetsCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_StockholdersEquity">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInInventories">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockSharesIssued">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PreferredStockParOrStatedValuePerShare">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PropertyPlantAndEquipmentGross">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OilAndGasRevenue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_AmendmentFlag">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_NaturalGasGatheringSystemsAndTreatingPlants">
    <definition>Natural gas gathering systems and treating plants.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_ContractDrillingRevenues">
    <definition>Revenue from contract drilling services and mobilization of equipment.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_TaxOnGainLossOnCashFlowHedgeIneffectiveness">
    <definition>Tax On Gain (Loss) on Cash Flow Hedge Ineffectiveness, Net.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_SegmentReportingDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_MachineryAndEquipmentGross">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_EarningsPerShareBasic">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DepreciationDepletionAndAmortization">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_PrepaidExpenseAndOtherAssetsCurrent">
    <definition>Includes the sum of the amounts paid in advance for costs that will be expensed with the passage of time or the occurrence of a triggering event, interest earned but not received, value added taxes due either from customers arising from sales on credit terms, or as previously overpaid to tax authorities, fair values for all assets resulting from contracts that meet the criteria of being accounted for as derivative instruments and carrying amounts due as of the balance sheet date from parties or arising from transactions not otherwise specified in the taxonomy. All amounts in this caption are expected to be collected within one year.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LongTermDebtNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GainsLossesOnSalesOfAssets">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInOperatingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AdditionalPaidInCapital">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockSharesAuthorized">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_Revenues">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IntangibleAssetsNetExcludingGoodwill">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ComprehensiveIncomeNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_FullCostMethodOfAccountingForInvestmentsInOilAndGasPropertiesDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_DocumentFiscalYearFocus">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GasGatheringTransportationMarketingAndProcessingRevenue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PropertyPlantAndEquipmentNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromStockOptionsExercised">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeTaxesReceivable">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_AccruedLiabilitiesDisclosureTextBlock">
    <definition>Accrued Liabilities Disclosure [Text Block]</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_EarningsPerShareDiluted">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_ContractDrillingDepreciation">
    <definition>Contract Drilling, Depreciation.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GainLossOnCashFlowHedgeIneffectivenessNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ImpairmentOfOilAndGasProperties">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RetainedEarningsAccumulatedDeficit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsForProceedsFromOtherInvestingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccountsReceivableNetCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CostsAndExpenses">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CustomerAdvancesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_DocumentFiscalPeriodFocus">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_CurrentFiscalYearEndDate">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherLiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityFilerCategory">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromRepaymentsOfBankOverdrafts">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InterestIncomeExpenseNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesOther">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CapitalizedCostsSupportEquipmentAndFacilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccruedLiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_OilAndNaturalGasPropertiesFullCostMethodSubjectToAmortization">
    <definition>Oil and natural gas properties-full cost method, subject to amortization.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_EarningsPerShareTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInInvestingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_UnrealizedGainLossOnDerivatives">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LongTermDebtTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_Assets">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_DocumentType">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentOnDerivativesIncludedInNetIncomeNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherAssetsNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_FairValueMeasurementInputsDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeLiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInAccountsReceivable">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeTaxExpenseBenefit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OilAndGasProductionExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GeneralAndAdministrativeExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PropertyPlantAndEquipmentOther">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PreferredStockSharesAuthorized">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CurrentIncomeTaxExpenseBenefit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AssetsCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LiabilitiesAndStockholdersEquity">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ShareBasedCompensation">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="unt_ContractDrillingExpenses">
    <definition>Contract drilling expenses.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockParOrStatedValuePerShare">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInAccruedLiabilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_DocumentPeriodEndDate">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_Goodwill">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
</DefinitionAndReference>
