<?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-20260513.xsd" xlink:type="simple"/>
    <context id="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001050377</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_8wansA1AFEa7wqodyZz0FQ_2_1">0001050377</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_wCdIUdeihEagU5J0nJ7CUQ_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_Kybj23b030iOppPG0yATUQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_YvSoGWamB0eyscGIlpRlwQ">2026-05-13</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_a1LWNyLrJEyjQ9a5Il-N0A_1_0">PC Connection, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_rdkgwBXtgEu1SKGTGCVSIw_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_oEsI1y92IEiIs9EdfU-W1Q_1_1">0-23827</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_oJ3HHdU0mUWKMKje4xL4Xw_1_2">02-0513618</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_CUDwIPu2uE2uE4EfFwxC_Q">730 Milford Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_QWvmOUTqo0-wuj3in2Nb9A">Merrimack</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_Give3Jn8fEu5YTTmLNlQzw">NH</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_OBaN4eQcPU2UDfE5U9jMRA_1_1">03054</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_wMlinVkdHkGznS0L-Ma2Ew">603</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_1S9rcVqv10SBPhdn6vyjqA">683-2000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_myVH5frauUiLA1U7JW0J6w">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_NixW4sLOZk6i0tLyyzNdbA">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_taFver6J80C4eVUhAI5MDw">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_2ZZJEWvsxEi28TSJb-WGpw">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_fNdI3RncbUKvYtYvPJy8hA_2_0">Common Stock, $0.01 par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_-kYX8NkYhkKqIWZMgTNRnA_2_1">CNXN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Tc_kgZfiwL6XEe3vKpGLkuzYQ_2_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_5_13_2026_To_5_13_2026_1y3u4HK7Hk6ipdcODpdMbw"
      id="Narr_tQ5ZX0hCn0qjJKO-o3Izsw">false</dei:EntityEmergingGrowthCompany>
</xbrl>
