content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001949645</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001158449</issuerCik>
        <issuerName>ADVANCE AUTO PARTS INC</issuerName>
        <secFileNumber>001-16797</secFileNumber>
        <issuerAddress>
          <com:street1>4200 SIX FORKS ROAD</com:street1>
          <com:city>RALEIGH</com:city>
          <com:stateOrCountry>NC</com:stateOrCountry>
          <com:zipCode>27609</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>5403624911</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Word Herman L Jr</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Former Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Fidelity Brokerage Services LLC</name>
          <address>
            <com:street1>900 Salem Street</com:street1>
            <com:city>Smithfield</com:city>
            <com:stateOrCountry>RI</com:stateOrCountry>
            <com:zipCode>02917</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>2100</noOfUnitsSold>
        <aggregateMarketValue>140700.00</aggregateMarketValue>
        <noOfUnitsOutstanding>59925637</noOfUnitsOutstanding>
        <approxSaleDate>07/23/2025</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/21/2024</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>646</amountOfSecuritiesAcquired>
        <paymentDate>11/21/2024</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>02/28/2025</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>107</amountOfSecuritiesAcquired>
        <paymentDate>02/28/2025</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>03/06/2025</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>467</amountOfSecuritiesAcquired>
        <paymentDate>03/06/2025</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>03/14/2025</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>880</amountOfSecuritiesAcquired>
        <paymentDate>03/14/2025</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Herman L. Word</name>
          <address>
            <com:street1>4200 Six Forks Road</com:street1>
            <com:city>Raleigh</com:city>
            <com:stateOrCountry>NC</com:stateOrCountry>
            <com:zipCode>27609</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <saleDate>05/28/2025</saleDate>
        <amountOfSecuritiesSold>2016</amountOfSecuritiesSold>
        <grossProceeds>103824.00</grossProceeds>
      </securitiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>07/23/2025</noticeDate>
        <signature>/s/Wade Moss, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Herman L. Word</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5026}]
text: 144
  0001949645
  XXXXXXXX
  LIVE
  0001158449
  ADVANCE AUTO PARTS INC
  001-16797
  4200 SIX FORKS ROAD
  RALEIGH
  NC
  27609
  5403624911
  Word Herman L Jr
  Former Officer
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  2100
  140700.00
  59925637
  07/23/2025
  NYSE
  Common
  11/21/2024
  Restricted Stock Vesting
  Issuer
  N
  646
  11/21/2024
  Compensation
  Common
  02/28/2025
  Restricted Stock Vesting
  Issuer
  N
  107
  02/28/2025
  Compensation
  Common
  03/06/2025
  Restricted Stock Vesting
  Issuer
  N
  467
  03/06/2025
  Compensation
  Common
  03/14/2025
  Restricted Stock Vesting
  Issuer
  N
  880
  03/14/2025
  Compensation
  N
  Herman L. Word
  4200 Six Forks Road
  Raleigh
  NC
  27609
  Common
  05/28/2025
  2016
  103824.00
  07/23/2025
  /s/Wade Moss, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Herman L. Word