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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2015-11-17</periodOfReport>

    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0000921547</issuerCik>
        <issuerName>HERITAGE OAKS BANCORP</issuerName>
        <issuerTradingSymbol>HEOP</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001459707</rptOwnerCik>
            <rptOwnerName>CASTLE CREEK CAPITAL PARTNERS IV, LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O CASTLE CREEK CAPITAL LLC</rptOwnerStreet1>
            <rptOwnerStreet2>6051 EL TORDO</rptOwnerStreet2>
            <rptOwnerCity>RANCHO SANTA FE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001569797</rptOwnerCik>
            <rptOwnerName>Castle Creek Capital IV LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O CASTLE CREEK CAPITAL LLC</rptOwnerStreet1>
            <rptOwnerStreet2>6051 EL TORDO</rptOwnerStreet2>
            <rptOwnerCity>RANCHO SANTA FE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001197257</rptOwnerCik>
            <rptOwnerName>EGGEMEYER JOHN M III</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O CASTLE CREEK CAPITAL LLC</rptOwnerStreet1>
            <rptOwnerStreet2>6051 EL TORDO</rptOwnerStreet2>
            <rptOwnerCity>RANCHO SANTA FE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001242722</rptOwnerCik>
            <rptOwnerName>THOMAS J MIKESELL</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O CASTLE CREEK CAPITAL LLC</rptOwnerStreet1>
            <rptOwnerStreet2>6051 EL TORDO</rptOwnerStreet2>
            <rptOwnerCity>RANCHO SANTA FE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001332829</rptOwnerCik>
            <rptOwnerName>MERLO MARK G</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O CASTLE CREEK CAPITAL LLC</rptOwnerStreet1>
            <rptOwnerStreet2>6051 EL TORDO</rptOwnerStreet2>
            <rptOwnerCity>RANCHO SANTA FE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001481798</rptOwnerCik>
            <rptOwnerName>Pietrzak John</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O CASTLE CREEK CAPITAL LLC</rptOwnerStreet1>
            <rptOwnerStreet2>6051 EL TORDO</rptOwnerStreet2>
            <rptOwnerCity>RANCHO SANTA FE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92067</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Heritage Oaks Bancorp Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2015-11-17</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>2000000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>8.0002</value>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1672638</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F2"/>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $8.00 to $8.24, inclusive.  The reporting persons undertake to provide to Heritage Oaks Bancorp, any security holder of Heritage Oak Bancorp, or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the range set forth in footnote (1) to this Form 4.</footnote>
        <footnote id="F2">These securities are owned by Castle Creek Capital Partners IV, LP (&quot;Fund IV&quot;).  Each of Castle Creek Capital IV LLC, John M. Eggemeyer III, J. Mikesell Thomas, Mark G. Merlo, and John T. Pietrzak may also be deemed to be the beneficial owner of the 1,672,638 shares of Common Stock held directly by Fund IV.  Mr. Eggemeyer, Mr. Thomas, Mr. Merlo, and Mr. Pietrzak are managing principals of Castle Creek Capital IV LLC, the sole general partner of Fund IV.  Castle Creek Capital IV LLC, Mr. Eggemeyer, Mr. Thomas, Mr. Merlo, and Mr. Pietrzak each disclaim beneficial ownership of such shares of Common Stock, except to the extent of their respective pecuniary interest in Fund IV, and this report shall not be deemed an admission that Castle Creek Capital IV LLC, Mr. Eggemeyer, Mr. Thomas, Mr. Merlo, or Mr. Pietrzak is the beneficial owner of such shares of Common Stock for purposes of Section 16 of the Securities Exchange Act of 1934, as amended, or for any other purpose.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>CASTLE CREEK CAPITAL PARTNERS IV, LP, By: /s/ John M. Eggemeyer III, Title: President</signatureName>
        <signatureDate>2015-11-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>CASTLE CREEK CAPITAL IV LLC, By: /s/ John M. Eggemeyer III, Title: President</signatureName>
        <signatureDate>2015-11-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>JOHN M. EGGEMEYER III, By: /s/ John M. Eggemeyer III</signatureName>
        <signatureDate>2015-11-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>J. MIKESELL THOMAS, By: /s/ J. Mikesell Thomas</signatureName>
        <signatureDate>2015-11-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>MARK G. MERLO, By: /s/ Mark G. Merlo</signatureName>
        <signatureDate>2015-11-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>JOHN T. PIETRZAK, By: /s/ John T. Pietrzak</signatureName>
        <signatureDate>2015-11-18</signatureDate>
    </ownerSignature>
</ownershipDocument>
