<SUBMISSION>
<ACCESSION-NUMBER>0000899171-06-000007
<TYPE>5/A
<PUBLIC-DOCUMENT-COUNT>1
<PERIOD>20051231
<FILING-DATE>20060224
<DATE-OF-FILING-DATE-CHANGE>20060224
<REPORTING-OWNER>
<OWNER-DATA>
<CONFORMED-NAME>COWELL CASEY
<CIK>0001158157
</OWNER-DATA>
<FILING-VALUES>
<FORM-TYPE>5/A
<ACT>34
<FILE-NUMBER>000-21796
<FILM-NUMBER>06642407
</FILING-VALUES>
<BUSINESS-ADDRESS>
<STREET1>3000 RESEARCH DRIVE
<CITY>RICHARDSON
<STATE>TX
<ZIP>75802
</BUSINESS-ADDRESS>
</REPORTING-OWNER>
<ISSUER>
<COMPANY-DATA>
<CONFORMED-NAME>CDW CORP
<CIK>0000899171
<ASSIGNED-SIC>5961
<IRS-NUMBER>363310735
<STATE-OF-INCORPORATION>IL
<FISCAL-YEAR-END>1231
</COMPANY-DATA>
<BUSINESS-ADDRESS>
<STREET1>200 N MILWAUKEE AVE
<CITY>VERNON HILLS
<STATE>IL
<ZIP>60061
<PHONE>8474656000
</BUSINESS-ADDRESS>
<MAIL-ADDRESS>
<STREET1>200 N MILWAUKEE AVE
<CITY>VERNON HILLS
<STATE>IL
<ZIP>60061
</MAIL-ADDRESS>
<FORMER-COMPANY>
<FORMER-CONFORMED-NAME>CDW COMPUTER CENTERS INC
<DATE-CHANGED>19930322
</FORMER-COMPANY>
</ISSUER>
<DOCUMENT>
<TYPE>5/A
<SEQUENCE>1
<FILENAME>edgar.xml
<DESCRIPTION>PRIMARY DOCUMENT
<TEXT>
<XML>
<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0202</schemaVersion>

    <documentType>5/A</documentType>

    <periodOfReport>2005-12-31</periodOfReport>

    <dateOfOriginalSubmission>2006-02-14</dateOfOriginalSubmission>

    <form3HoldingsReported>0</form3HoldingsReported>

    <form4TransactionsReported>0</form4TransactionsReported>

    <issuer>
        <issuerCik>0000899171</issuerCik>
        <issuerName>CDW CORP</issuerName>
        <issuerTradingSymbol>CDWC</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001158157</rptOwnerCik>
            <rptOwnerName>COWELL CASEY</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>200 NORTH MILWAUKEE AVENUE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>VERNON HILLS</rptOwnerCity>
            <rptOwnerState>IL</rptOwnerState>
            <rptOwnerZipCode>60061</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common stock, $.01 par value</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>130166</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common stock, $.01 par value</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>7574</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>MKW Partners, L. P.</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">On February 14, 2006, the reporting person mistakenly filed a Form 5.  The Form 5 was erroneously filed as the transaction reported does not effect the reporting person or any entity with whom reporting requirements are required under Section 16 for the reporting person.</footnote>
        <footnote id="F2">The reporting person disclaims beneficial ownership of these securities, except to the extent of his pecuniary interest therein.  This report shall not be deemed an admission that the reporting person is the beneficial owner of such securities, except to the extent of his pecuniary interest therein, for purposes of Section 16 or for any other purpose.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>Robert J. Welyki, Attorney-in-fact</signatureName>
        <signatureDate>2006-02-22</signatureDate>
    </ownerSignature>
</ownershipDocument>
</XML>
</TEXT>
</DOCUMENT>
</SUBMISSION>
