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>0001595975</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>Finley Tammy M</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>5452</noOfUnitsSold>
        <aggregateMarketValue>270202.32</aggregateMarketValue>
        <noOfUnitsOutstanding>59925637</noOfUnitsOutstanding>
        <approxSaleDate>05/27/2025</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>12/01/2016</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>203</amountOfSecuritiesAcquired>
        <paymentDate>12/01/2016</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>12/10/2016</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>440</amountOfSecuritiesAcquired>
        <paymentDate>12/10/2016</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>12/12/2016</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>276</amountOfSecuritiesAcquired>
        <paymentDate>12/12/2016</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>12/10/2018</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>460</amountOfSecuritiesAcquired>
        <paymentDate>12/10/2018</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>03/01/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2153</amountOfSecuritiesAcquired>
        <paymentDate>03/01/2021</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>03/02/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>315</amountOfSecuritiesAcquired>
        <paymentDate>03/02/2021</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>03/01/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1424</amountOfSecuritiesAcquired>
        <paymentDate>03/01/2022</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>03/08/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>181</amountOfSecuritiesAcquired>
        <paymentDate>03/08/2022</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>05/27/2025</noticeDate>
        <signature>/s/ Margaret Campbell, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Tammy M. Finley</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 6601}]
text: 144
  0001595975
  XXXXXXXX
  LIVE
  0001158449
  ADVANCE AUTO PARTS INC
  001-16797
  4200 SIX FORKS ROAD
  RALEIGH
  NC
  27609
  5403624911
  Finley Tammy M
  Former Officer
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  5452
  270202.32
  59925637
  05/27/2025
  NYSE
  Common
  12/01/2016
  Restricted Stock Vesting
  Issuer
  N
  203
  12/01/2016
  Compensation
  Common
  12/10/2016
  Restricted Stock Vesting
  Issuer
  N
  440
  12/10/2016
  Compensation
  Common
  12/12/2016
  Restricted Stock Vesting
  Issuer
  N
  276
  12/12/2016
  Compensation
  Common
  12/10/2018
  Restricted Stock Vesting
  Issuer
  N
  460
  12/10/2018
  Compensation
  Common
  03/01/2021
  Restricted Stock Vesting
  Issuer
  N
  2153
  03/01/2021
  Compensation
  Common
  03/02/2021
  Restricted Stock Vesting
  Issuer
  N
  315
  03/02/2021
  Compensation
  Common
  03/01/2022
  Restricted Stock Vesting
  Issuer
  N
  1424
  03/01/2022
  Compensation
  Common
  03/08/2022
  Restricted Stock Vesting
  Issuer
  N
  181
  03/08/2022
  Compensation
  Y
  05/27/2025
  /s/ Margaret Campbell, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Tammy M. Finley