<?xml version="1.0"?>

<ownershipDocument>

    <schemaVersion>X0201</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2003-09-10</periodOfReport>


    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0000704914</issuerCik>
        <issuerName>DATAKEY INC</issuerName>
        <issuerTradingSymbol>dkey</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001044321</rptOwnerCik>
            <rptOwnerName>MARXE AUSTIN W &amp; GREENHOUSE DAVID M</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>153 E 53RD ST</rptOwnerStreet1>
            <rptOwnerStreet2>55TH FL</rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10022</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>

        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2003-09-10</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>14000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.6248</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1081141</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By Limited Partnerships</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>

        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2003-09-11</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>12700</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.6483</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1068441</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By Limited Partnerships</value>
                    <footnoteId id="F1"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>

    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">This is a joint filing by Austin W. Marxe (Marxe) &amp; David M. Greenhouse (Greenhouse). Marxe &amp; Greenhouse share voting and investment control over all securities owned by Special Situations Cayman Fund, L.P. (Cayman), Special Situations Private Equity Fund, L.P. (PE), Special Situations Technology Fund, L.P. (Tech) &amp; Special Situations Technology Fund II, L.P. (Tech2), respectively.  159,166 shares of Common Stock and 166,666 Warrants held by Cayman, 171,100 share of Common Stock and 300,000 Warrants held by PE, 6,675 shares of Common Stock and 35,458 Warrants held by Tech and 47,667 share of Common Stock and 181,209 Warrants held by Tech2. The interest of each of Marxe and Greenhouse in the Common Stock owned by Cayman, PE, Tech and Tech II is limited to the extent of his pecuniary interest, if any, in Cayman, PE, Tech and Tech II, respectively.</footnote>
    </footnotes>


    <ownerSignature>
        <signatureName>Austin W. Marxe</signatureName>
        <signatureDate>2003-09-12</signatureDate>
    </ownerSignature>
    <ownerSignature>
        <signatureName>David M. Greenhouse</signatureName>
        <signatureDate>2003-09-12</signatureDate>
    </ownerSignature>

</ownershipDocument>

