<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001166976</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0001158324</issuerCik>
            <issuerName>COGENT COMMUNICATIONS HOLDINGS, INC.</issuerName>
            <secFileNumber>000-51829</secFileNumber>
            <issuerAddress>
                <ns2:street1>2450 N STREET, NW</ns2:street1>
                <ns2:city>WASHINGTON</ns2:city>
                <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                <ns2:zipCode>20037</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>2022954200</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>DAVE SCHAEFFER</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Officer</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>38th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>18191</noOfUnitsSold>
            <aggregateMarketValue>1197364.36</aggregateMarketValue>
            <noOfUnitsOutstanding>48884279</noOfUnitsOutstanding>
            <approxSaleDate>09/15/2023</approxSaleDate>
            <securitiesExchangeName>NASD</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>12/31/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Compensation for Past Services</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>18191</amountOfSecuritiesAcquired>
            <paymentDate>12/31/2021</paymentDate>
            <natureOfPayment>Compensation</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>David Schaeffer</name>
                <address>
                    <ns2:street1>2450 N STREET, NW</ns2:street1>
                    <ns2:city>WASHINGTON</ns2:city>
                    <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                    <ns2:zipCode>20037</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>09/13/2023</saleDate>
            <amountOfSecuritiesSold>16753</amountOfSecuritiesSold>
            <grossProceeds>1117408.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>David Schaeffer</name>
                <address>
                    <ns2:street1>2450 N STREET, NW</ns2:street1>
                    <ns2:city>WASHINGTON</ns2:city>
                    <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                    <ns2:zipCode>20037</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>09/12/2023</saleDate>
            <amountOfSecuritiesSold>28247</amountOfSecuritiesSold>
            <grossProceeds>1891631.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>David Schaeffer</name>
                <address>
                    <ns2:street1>2450 N STREET, NW</ns2:street1>
                    <ns2:city>WASHINGTON</ns2:city>
                    <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                    <ns2:zipCode>20037</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>09/11/2023</saleDate>
            <amountOfSecuritiesSold>3309</amountOfSecuritiesSold>
            <grossProceeds>222239.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>David Schaeffer</name>
                <address>
                    <ns2:street1>2450 N STREET, NW</ns2:street1>
                    <ns2:city>WASHINGTON</ns2:city>
                    <ns2:stateOrCountry>DC</ns2:stateOrCountry>
                    <ns2:zipCode>20037</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>09/08/2023</saleDate>
            <amountOfSecuritiesSold>41691</amountOfSecuritiesSold>
            <grossProceeds>2823231.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>09/15/2023</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Dave Schaeffer</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 6014}]
144
0001166976
XXXXXXXX
LIVE
0001158324
COGENT COMMUNICATIONS HOLDINGS, INC.
000-51829
2450 N STREET, NW
WASHINGTON
DC
20037
2022954200
DAVE SCHAEFFER
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
38th Floor
New York
NY
10004
18191
1197364.36
48884279
09/15/2023
NASD
Common
12/31/2021
Compensation for Past Services
Issuer
N
18191
12/31/2021
Compensation
N
David Schaeffer
2450 N STREET, NW
WASHINGTON
DC
20037
Common
09/13/2023
16753
1117408.00
David Schaeffer
2450 N STREET, NW
WASHINGTON
DC
20037
Common
09/12/2023
28247
1891631.00
David Schaeffer
2450 N STREET, NW
WASHINGTON
DC
20037
Common
09/11/2023
3309
222239.00
David Schaeffer
2450 N STREET, NW
WASHINGTON
DC
20037
Common
09/08/2023
41691
2823231.00
09/15/2023
/s/ Dave Schaeffer