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

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2004-06-30</periodOfReport>

    <issuer>
        <issuerCik>0001008554</issuerCik>
        <issuerName>HUMBOLDT BANCORP</issuerName>
        <issuerTradingSymbol>HBEK</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001102044</rptOwnerCik>
            <rptOwnerName>WINZLER JOHN R</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O HUMBOLDT BANCORP</rptOwnerStreet1>
            <rptOwnerStreet2>2998 DOUGLAS BLVD., SUITE 330</rptOwnerStreet2>
            <rptOwnerCity>ROSEVILLE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>95661</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <transactionDate>
                <value>2004-06-30</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>C</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>20642</value>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>159481</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Deferred Rights</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F3"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2004-06-30</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>C</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>20642</value>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F1"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>20642</value>
                    <footnoteId id="F2"/>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Represents the conversion of Deferred Rights as shown in Table 2. In accordance with the Merger Agreement with Umpqua Holdings Corporation, Humboldt Bancorp must distribute all deferrals prior to the close of the Merger. The expected date of close for the Merger date is July 9, 2004. The Deferred Rights have been distributed as of June 30, 2004.The July Director fees are to be paid in cash and not deferred.</footnote>
        <footnote id="F2">Represents the conversion of Deferred Rights as shown in Table 2. Previoulsy eroneously reported 20,643 which included a fractional share. The total shares have been adjusted to reflect that fraction. The fractional share is paid in a cash value of $9.23.</footnote>
        <footnote id="F3">Represents the reporting person's director's fee under Humboldt Bancorp's deferred compensation plan. Under the plan, the director has the right to defer their director's fee to be paid in common stock upon resignation or retirement. The conversion price of the derivative security is 1 for 1, the number of shares purchased for the month are based on the closing price on the last trade date of the month for which the director fees are paid.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>John R. Winzler</signatureName>
        <signatureDate>2004-07-02</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>Signed by Patrick J. Rusnak, Power of Attorney on File</signatureName>
        <signatureDate>2004-07-02</signatureDate>
    </ownerSignature>
</ownershipDocument>

