<?xml version="1.0"?>
<ownershipDocument>
    <schemaVersion>X0201</schemaVersion>

    <documentType>4</documentType><periodOfReport>2003-12-05</periodOfReport>
    <issuer>
        <issuerCik>0001008554</issuerCik>
        <issuerName>HUMBOLDT BANCORP</issuerName>
        <issuerTradingSymbol>HBEK</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001137000</rptOwnerCik>
            <rptOwnerName>NAPIER GARY L</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></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>100</value></transactionShares><transactionPricePerShare><footnoteId id="F7"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>83940</value><footnoteId id="F1"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock </value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>100</value></transactionShares><transactionPricePerShare><footnoteId id="F7"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>83840</value><footnoteId id="F2"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock </value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>100</value></transactionShares><transactionPricePerShare><footnoteId id="F7"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>83740</value><footnoteId id="F3"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock </value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>100</value></transactionShares><transactionPricePerShare><footnoteId id="F7"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>83640</value><footnoteId id="F4"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock </value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>100</value></transactionShares><transactionPricePerShare><footnoteId id="F7"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>83540</value><footnoteId id="F5"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock </value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>100</value></transactionShares><transactionPricePerShare><footnoteId id="F7"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>83440</value><footnoteId id="F6"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction></nonDerivativeTable><footnotes><footnote id="F1">Ownerhip of common stock as follows: 76,352 shares held Indirect by Charles Schwab, 6,928 held Direct, 660 held Indirect, Trustee, Total 83,940.</footnote><footnote id="F2">Ownerhip of common stock as follows: 76,352 shares held Indirect by Charles Schwab, 6,828 held Direct, 660 held Indirect, Trustee, Total 83,840.</footnote><footnote id="F3">Ownerhip of common stock as follows: 76,352 shares held Indirect by Charles Schwab, 6,728 held Direct, 660 held Indirect, Trustee, Total 83,740.</footnote><footnote id="F4">Ownerhip of common stock as follows: 76,352 shares held Indirect by Charles Schwab, 6,628 held Direct, 660 held Indirect, Trustee, Total 83,640.</footnote><footnote id="F5">Ownerhip of common stock as follows: 76,352 shares held Indirect by Charles Schwab, 6,528 held Direct, 660 held Indirect, Trustee, Total 83,540.</footnote><footnote id="F6">Ownerhip of common stock as follows: 76,352 shares held Indirect by Charles Schwab, 6428 held Direct, 660 held Indirect, Trustee, Total 83,440.</footnote><footnote id="F7">Gift to Immediate Family Member Who Does Not Share Home with Insider. </footnote></footnotes><remarks/><ownerSignature><signatureName>Gary L. Napier</signatureName><signatureDate>2003-12-08</signatureDate></ownerSignature><ownerSignature><signatureName>Signed by Patrick J. Rusnak, Power of Attorney on File</signatureName><signatureDate>2003-12-08</signatureDate></ownerSignature></ownershipDocument>

