<?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="cnxn-20261008.xsd" xlink:type="simple"/>
    <context id="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001050377</identifier>
        </entity>
        <period>
            <startDate>2026-10-08</startDate>
            <endDate>2026-10-08</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_menz0uvdt02sCcucoWBWig_2_1">0001050377</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_axr31gnDHU6m_xmIA5rdRQ_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_X2EQ4qiB8EGCYXLZLkWSHg">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_VYnKn_Q9xEe8nDyYTqxwCg">2026-10-08</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc__Fu27clBV0mw4Zxq_BZTIw_1_0">PC Connection, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_r1ctdKoOn0OcEgHnuJSsSA_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_gMkbz3x1iUOXnx4LUjKfMg_1_1">0-23827</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_Q4yVjVhxt0ebQ6HSwLbTRg_1_2">02-0513618</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_wyf-dwBDyU62Z1joeyx0Jw">730 Milford Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_QsDr939I90O8ObECqK_r0w">Merrimack</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_OAd_YlrJdEac8qNN0VGPQg">NH</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_T3jG9ijQ2USok4auKpCo5A_1_1">03054</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_Q6qB9wzCq0mW3LmUbxNUUg">603</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_DbGlmpUEC0Cun4uMj6xbeQ">683-2000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_5oeS3sbI5U-IH6mcYSoHmA">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_Ylqr-S_-EEGCu56zgmfEeg">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_aJzpn8uvJkGH5FDE8tfZng">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_7WHj7JYsSk-NKWX7EJnCZw">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_zwY67GqIDUWUdtmWF4cOvA_2_0">Common Stock, $0.01 par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_Na6_9L-v90egFW3wPSbd1Q_2_1">CNXN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Tc_6Ky07TQlSEef-5bJqCqHZA_2_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_10_8_2026_To_10_8_2026_euP1HqHxoUWpzMz3IOj9Xw"
      id="Narr_SKY_ePbePEiCI1AnQYJZ6w">false</dei:EntityEmergingGrowthCompany>
</xbrl>
