<SEC-DOCUMENT>0001170010-17-000033.txt : 20170407
<SEC-HEADER>0001170010-17-000033.hdr.sgml : 20170407
<ACCEPTANCE-DATETIME>20170407164713
ACCESSION NUMBER:		0001170010-17-000033
CONFORMED SUBMISSION TYPE:	3
PUBLIC DOCUMENT COUNT:		1
CONFORMED PERIOD OF REPORT:	20170401
FILED AS OF DATE:		20170407
DATE AS OF CHANGE:		20170407

ISSUER:		

	COMPANY DATA:	
		COMPANY CONFORMED NAME:			CARMAX INC
		CENTRAL INDEX KEY:			0001170010
		STANDARD INDUSTRIAL CLASSIFICATION:	RETAIL-AUTO DEALERS & GASOLINE STATIONS [5500]
		IRS NUMBER:				541821055
		STATE OF INCORPORATION:			VA
		FISCAL YEAR END:			0228

	BUSINESS ADDRESS:	
		STREET 1:		12800 TUCKAHOE CREEK PARKWAY
		CITY:			RICHMOND
		STATE:			VA
		ZIP:			23238
		BUSINESS PHONE:		(804) 747-0422

	MAIL ADDRESS:	
		STREET 1:		12800 TUCKAHOE CREEK PARKWAY
		CITY:			RICHMOND
		STATE:			VA
		ZIP:			23238

REPORTING-OWNER:	

	OWNER DATA:	
		COMPANY CONFORMED NAME:			Cafritz Diane L
		CENTRAL INDEX KEY:			0001702741

	FILING VALUES:
		FORM TYPE:		3
		SEC ACT:		1934 Act
		SEC FILE NUMBER:	001-31420
		FILM NUMBER:		17750350

	MAIL ADDRESS:	
		STREET 1:		12800 TUCKAHOE CREEK PARKWAY
		CITY:			RICHMOND
		STATE:			VA
		ZIP:			23238
</SEC-HEADER>
<DOCUMENT>
<TYPE>3
<SEQUENCE>1
<FILENAME>wf-form3_149159801930229.xml
<DESCRIPTION>FORM 3
<TEXT>
<XML>
<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0206</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2017-04-01</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0001170010</issuerCik>
        <issuerName>CARMAX INC</issuerName>
        <issuerTradingSymbol>KMX</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001702741</rptOwnerCik>
            <rptOwnerName>Cafritz Diane L</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>12800 TUCKAHOE CREEK PARKWAY</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>RICHMOND</rptOwnerCity>
            <rptOwnerState>VA</rptOwnerState>
            <rptOwnerZipCode>23238</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>SVP &amp; CHRO</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable></nonDerivativeTable>

    <derivativeTable>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Options (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>31.76</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2019-04-10</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>5671.0</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Options (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>42.68</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F2"/>
            </exerciseDate>
            <expirationDate>
                <value>2020-04-15</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>4616.0</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Options (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>44.96</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <value>2021-04-09</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>24527.0</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Options (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>73.76</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F4"/>
            </exerciseDate>
            <expirationDate>
                <value>2022-04-08</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>16678.0</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Options (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>51.63</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F5"/>
            </exerciseDate>
            <expirationDate>
                <value>2023-04-12</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>24967.0</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0.0</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F6"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F6"/>
                <footnoteId id="F7"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <footnoteId id="F7"/>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0.0</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F8"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F8"/>
                <footnoteId id="F9"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <footnoteId id="F9"/>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0.0</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F10"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F10"/>
                <footnoteId id="F11"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <footnoteId id="F11"/>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">The stock options vested in four equal installments on each of April 10, 2013, April 10, 2014, April 10, 2015, and April 10, 2016 and are now fully exercisable.</footnote>
        <footnote id="F2">The stock options became exercisable with respect to one-fourth of the underlying shares of Common Stock on each of April 15, 2014, April 15, 2015, and April 15, 2016 and become exercisable with respect to one-fourth of the underlying shares of Common Stock on April 15, 2017.</footnote>
        <footnote id="F3">The stock options became exercisable with respect to one-fourth of the underlying shares of Common Stock on each of April 9, 2015 and April 9, 2016 and become exercisable with respect to one-fourth of the underlying shares of Common Stock on each of April 9, 2017 and April 9, 2018.</footnote>
        <footnote id="F4">The stock options became exercisable with respect to one-fourth of the underlying shares of Common Stock on April 8, 2016 and become exercisable with respect to one-fourth of the underlying shares of Common Stock on each of April 8, 2017, April 8, 2018 and April 8, 2019.</footnote>
        <footnote id="F5">The stock options become exercisable with respect to one-fourth of the underlying shares of Common Stock on each of April 12, 2017, April 12, 2018, April 12, 2019 and April 12, 2020.</footnote>
        <footnote id="F6">The restricted stock units shall vest on April 9, 2017.</footnote>
        <footnote id="F7">Shares of Company common stock will be issued to the Reporting Person following vesting of 1,951 restricted stock units, which are referred to by the Company as market stock units (MSUs), in accordance with the terms of the Form of Notice of Market Stock Unit Grant filed as Exhibit 10.2 to the Company's Current Report on Form 8-K filed on January 31, 2014. The minimum number of shares of Company common stock that will be issued to the Reporting Person at payment is zero, and the maximum number of shares of Company common stock that will be issued at payment is two times the number of MSUs.</footnote>
        <footnote id="F8">The restricted stock units shall vest on April 8, 2018.</footnote>
        <footnote id="F9">Shares of Company common stock will be issued to the Reporting Person following vesting of 1,267 restricted stock units, which are referred to by the Company as market stock units (MSUs), in accordance with the terms of the Form of Notice of Market Stock Unit Grant filed as Exhibit 10.2 to the Company's Current Report on Form 8-K filed on January 26, 2015. The minimum number of shares of Company common stock that will be issued to the Reporting Person at payment is zero, and the maximum number of shares of Company common stock that will be issued at payment is two times the number of MSUs.</footnote>
        <footnote id="F10">The restricted stock units shall vest on April 12, 2019.</footnote>
        <footnote id="F11">Shares of Company common stock will be issued to the Reporting Person following vesting of 1,845 restricted stock units, which are referred to by the Company as market stock units (MSUs), in accordance with the terms of the Form of Notice of Market Stock Unit Grant filed as Exhibit 10.2 to the Company's Current Report on Form 8-K filed on January 26, 2015. The minimum number of shares of Company common stock that will be issued to the Reporting Person at payment is zero, and the maximum number of shares of Company common stock that will be issued at payment is two times the number of MSUs.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>Christine Carter, attorney-in-fact</signatureName>
        <signatureDate>2017-04-07</signatureDate>
    </ownerSignature>
</ownershipDocument>
</XML>
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
