<?xml version="1.0"?>

<ownershipDocument>

    <documentType>4</documentType>

    <periodOfReport>2003-06-10</periodOfReport>


    <notSubjectToSection16>0</notSubjectToSection16>

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

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001207623</rptOwnerCik>
            <rptOwnerName>MCKINNEY HARRY WEBB</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>  </rptOwnerStreet1>
            <rptOwnerStreet2>  </rptOwnerStreet2>
            <rptOwnerCity>  </rptOwnerCity>
            <rptOwnerState>  </rptOwnerState>
            <rptOwnerZipCode>  </rptOwnerZipCode>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle>Executive Vice President</officerTitle>
            <otherText>Integration</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeSecurity>
        <securityTitle>
            <value>Common Stock</value>
        </securityTitle>
        <transactionDate>
            <value>2003-06-10</value>
        </transactionDate>
        <transactionCoding>
            <transactionFormType>4</transactionFormType>
            <transactionCode>S</transactionCode>
            <equitySwapInvolved>0</equitySwapInvolved>
        </transactionCoding>
        <transactionTimeliness>
            <value></value>
        </transactionTimeliness>
        <transactionAmounts>
            <transactionShares>
                <value>10000</value>
            </transactionShares>
            <transactionValue>
                <value>21.51</value>
            </transactionValue>
            <transactionAcquiredDisposedCode>
                <value>D</value>
            </transactionAcquiredDisposedCode>
        </transactionAmounts>
        <postTransactionAmounts>
            <sharesOwnedFollowingTransaction>
                <value>50437.261</value>
                <footnoteId id="F1"/>
            </sharesOwnedFollowingTransaction>
        </postTransactionAmounts>
        <ownershipNature>
            <directOrIndirectOwnership>
                <value>D</value>
            </directOrIndirectOwnership>
        </ownershipNature>
    </nonDerivativeSecurity>

    <footnotes>
        <footnote id="F1">Includes the acquisition of 10.1956 shares in July 2002, 14.5605 shares in October 2002, 635.6601 shares in November 2002, 10.2963 shares in January 2003, 13.6889 shares in April 2003 and 649.5850 shares in May 2003 under the Hewlett-Packard Company Employee Stock Ownership Plan in a transaction exempt under Rule 16b-3.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Ann O. Baskins, Attorney-in-Fact</signatureName>
        <signatureDate>2003-06-11</signatureDate>
    </ownerSignature>

</ownershipDocument>

