<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/schedule13g" xmlns:ns1="http://www.sec.gov/edgar/common">
  <headerData>
    <submissionType>SCHEDULE 13G/A</submissionType>
    <previousAccessionNumber>0001126328-21-000077</previousAccessionNumber>
    <filerInfo>
      <filer>
        <filerCredentials>
          <cik>0000769734</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>



    </filerInfo>
  </headerData>
  <formData>
    <coverPageHeader>
      <amendmentNo>4</amendmentNo>
      <securitiesClassTitle>Common Stock, par value $0.50</securitiesClassTitle>
      <eventDateRequiresFilingThisStatement>03/31/2025</eventDateRequiresFilingThisStatement>
      <issuerInfo>
        <issuerCik>0001170010</issuerCik>
        <issuerName>CARMAX INC</issuerName>
        <issuerCusip>143130102</issuerCusip>
        <issuerPrincipalExecutiveOfficeAddress>
          <ns1:street1>12800 TUCKAHOE CREEK PARKWAY</ns1:street1>
          <ns1:city>RICHMOND</ns1:city>
          <ns1:stateOrCountry>VA</ns1:stateOrCountry>
          <ns1:zipCode>23238</ns1:zipCode>
        </issuerPrincipalExecutiveOfficeAddress>
      </issuerInfo>
      <designateRulesPursuantThisScheduleFiled>
        <designateRulePursuantThisScheduleFiled>Rule 13d-1(b)</designateRulePursuantThisScheduleFiled>
      </designateRulesPursuantThisScheduleFiled>
    </coverPageHeader>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>PRINCIPAL GLOBAL INVESTORS</reportingPersonName>
      <citizenshipOrOrganization>DE</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>6221989</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>6221989</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>6221989</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>4</classPercent>
      <typeOfReportingPerson>IA</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <items>
      <item1>
        <issuerName>CARMAX INC</issuerName>
        <issuerPrincipalExecutiveOfficeAddress>12800 TUCKAHOE CREEK PARKWAY
RICHMOND, VIRGINIA
23238</issuerPrincipalExecutiveOfficeAddress>
      </item1>
      <item2>
        <filingPersonName>PRINCIPAL GLOBAL INVESTORS</filingPersonName>
        <principalBusinessOfficeOrResidenceAddress>711 HIGH STREET
DES MOINES, Iowa
50392-0300</principalBusinessOfficeOrResidenceAddress>
        <citizenship>PRINCIPAL GLOBAL INVESTORS - DELAWARE</citizenship>
      </item2>
      <item3>
        <notApplicableFlag>N</notApplicableFlag>
        <typeOfPersonFiling>IA</typeOfPersonFiling>
      </item3>
      <item4>
        <amountBeneficiallyOwned>6,221,989</amountBeneficiallyOwned>
        <classPercent>4</classPercent>
        <numberOfSharesPersonHas>
          <solePowerOrDirectToVote>PRINCIPAL GLOBAL INVESTORS - 0</solePowerOrDirectToVote>
          <sharedPowerOrDirectToVote>PRINCIPAL GLOBAL INVESTORS - 6,221,989</sharedPowerOrDirectToVote>
          <solePowerOrDirectToDispose>PRINCIPAL GLOBAL INVESTORS - 0</solePowerOrDirectToDispose>
          <sharedPowerOrDirectToDispose>PRINCIPAL GLOBAL INVESTORS - 6,221,989</sharedPowerOrDirectToDispose>
        </numberOfSharesPersonHas>
      </item4>
      <item5>
        <notApplicableFlag>N</notApplicableFlag>
        <classOwnership5PercentOrLess>Y</classOwnership5PercentOrLess>
      </item5>
      <item6>
        <notApplicableFlag>Y</notApplicableFlag>
      </item6>
      <item7>
        <notApplicableFlag>Y</notApplicableFlag>
      </item7>
      <item8>
        <notApplicableFlag>Y</notApplicableFlag>
      </item8>
      <item9>
        <notApplicableFlag>Y</notApplicableFlag>
      </item9>
      <item10>
        <notApplicableFlag>N</notApplicableFlag>
        <certifications>By signing below I certify that, to the best of my knowledge and belief, the securities referred to above were acquired and are held in the ordinary course of business and were not acquired and are not held for the purpose of or with the effect of changing or influencing the control of the issuer of the securities and were not acquired and are not held in connection with or as a participant in any transaction having that purpose or effect, other than activities solely in connection with a nomination under ?? 240.14a-11.</certifications>
      </item10>
    </items>
    <signatureInformation>
      <reportingPersonName>PRINCIPAL GLOBAL INVESTORS</reportingPersonName>
      <signatureDetails>
        <signature>/s/ J. Markham Penrod</signature>
        <title>Chief Compliance Officer - North America</title>
        <date>05/07/2025</date>
      </signatureDetails>
    </signatureInformation>
  </formData>
</edgarSubmission>