<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2004-11-18</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000047217</issuerCik>
        <issuerName>HEWLETT PACKARD CO</issuerName>
        <issuerTradingSymbol>HPQ</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001256992</rptOwnerCik>
            <rptOwnerName>LESJAK CATHERINE A</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>3000 HANOVER STREET</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>PALO ALTO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94304</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle>Senior Vice President,</officerTitle>
            <otherText>Treasurer</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2004-11-18</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>211.849</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>20.3693</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>4899.0221</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Sale of all shares of Hewlett-Packard Company Stock represented by units held Indirectly in a 401(k) plan by the Reporting Person's husband.</footnote>
        <footnote id="F2">Includes the acquisition of 1.3874 shares in January 2004, 1.4416 shares in April 2004, 294.5411 shares in May 2004, 2.7676 shares in July 2004 and 2.9698 shares in October 2004 under the Hewlett-Packard Company Share Ownership Plan in a transaction exempt under Rule 16b-3.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Charles N. Charnas, Attorney-in-Fact</signatureName>
        <signatureDate>2004-11-22</signatureDate>
    </ownerSignature>
</ownershipDocument>

