<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="hubg-20260527.xsd" xlink:type="simple"/>
    <context id="duration_2026-05-27_to_2026-05-27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000940942</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-286">true</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2026-05-27_to_2026-05-27"
      id="Hidden_dei_EntityCentralIndexKey">0000940942</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-297">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-298">2026-05-27</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-299">HUB GROUP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-300">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-301">0-27754</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-302">36-4007085</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-303">2001 Hub Group Way</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-304">Oak Brook</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-305">IL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-306">60523</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-307">(630)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-308">271-3600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-309">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-310">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-311">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-312">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-313">Class&#160;A Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-314">HUBG</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-315">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-316">false</dei:EntityEmergingGrowthCompany>
    <dei:AmendmentDescription contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-170">Hub Group, Inc. (the &#x201c;Company&#x201d;) previously reported in a Current Report on Form 8-K filed on June&#160;2, 2026 (the &#x201c;Original Filing&#x201d;) that Todd Heeter had been appointed to serve as interim Chief Financial Officer and Treasurer of the Company, effective May&#160;28, 2026, replacing Kevin Beth, who departed the Company on May&#160;27, 2026. The Company hereby amends Item 5.02 of the Original Filing to include the following information. In connection with his departure from the Company, on June&#160;24, 2026, the Company entered into a separation agreement (the &#x201c;Separation Agreement&#x201d;) with Mr. Beth. Pursuant to the Separation Agreement, Mr.&#160;Beth has agreed to provide certain transition services to the Company, in an advisory, non-executive capacity, for a period of six months following the date of his separation (the &#x201c;Separation Date&#x201d;), unless earlier terminated by the Company for Cause (as defined in the Separation Agreement) (such period, the &#x201c;Transition Period&#x201d;). During the Transition Period, Mr.&#160;Beth will be entitled to receive (a)&#160;cash compensation at a monthly rate of $45,688 (which monthly fee will be prorated for any partial months) and (b)&#160;COBRA continuation benefits. Additionally, all of Mr.&#160;Beth&#x2019;s outstanding and unvested time-vesting restricted stock awards will remain outstanding and eligible to continue to vest during the Transition Period pursuant to the vesting schedules set forth in the respective award agreements. Under the Separation Agreement, Mr.&#160;Beth will be entitled to receive the following severance benefits at the end of the Transition Period, subject to his (a)&#160;timely execution, re-execution and non-revocation of a general release of claims in favor of the Company included in the Separation Agreement and (b)&#160;continued compliance with the Separation Agreement (including the restrictive covenants contained therein), including: (1)&#160;a lump sum cash payment (minus applicable taxes and withholdings) equal to three months of his base salary, (2)&#160;COBRA continuation benefits for six months following the end of the Transition Period, (3)&#160;pro-rata vesting of time-vesting restricted stock awards that are outstanding and unvested at the end of the Transition Period, (4)&#160;outplacement services and (5)&#160;access to one executive physical examination following the Separation Date (but during the 2026 calendar year). The foregoing description of the terms of the Separation Agreement does not purport to be complete and is qualified in its entirety by the full text of the Separation Agreement, a copy of which is filed as Exhibit 10.1 hereto and is incorporated herein by reference. Other than the preceding disclosure, no other disclosure included in the Original Filing is being amended by this Form 8-K/A. </dei:AmendmentDescription>
</xbrl>
