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

    <documentType>4</documentType><periodOfReport>2003-08-29</periodOfReport>
    <issuer>
        <issuerCik>0000277595</issuerCik>
        <issuerName>ENERGEN CORP</issuerName>
        <issuerTradingSymbol>EGN</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001182084</rptOwnerCik>
            <rptOwnerName>MCMANUS J T</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>605 RICHARD ARRINGTON JR. BLVD. NORTH</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>BIRMINGHAM</rptOwnerCity>
            <rptOwnerState>AL</rptOwnerState>
            <rptOwnerZipCode>35203-2707</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>0</isDirector><isOfficer>1</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther><officerTitle>President and COO-ERC</officerTitle></reportingOwnerRelationship></reportingOwner><nonDerivativeTable><nonDerivativeHolding><securityTitle><value>Common Stock (ESP)</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>6209</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>ESP</value><footnoteId id="F1"/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock (Restricted)</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>14774</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>12397</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding></nonDerivativeTable><derivativeTable><derivativeTransaction><securityTitle><value>Deferred Shares</value></securityTitle><conversionOrExercisePrice><footnoteId id="F2"/></conversionOrExercisePrice><transactionDate><value>2003-08-29</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>A</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>116</value></transactionShares><transactionPricePerShare><value>35.68</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><footnoteId id="F3"/></exerciseDate><expirationDate><footnoteId id="F3"/></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>116</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>21167</value><footnoteId id="F4"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction><derivativeHolding><securityTitle><value>Stock Option (Right to Buy) (ISO)</value></securityTitle><conversionOrExercisePrice><value>27.4375</value></conversionOrExercisePrice><exerciseDate><footnoteId id="F5"/></exerciseDate><expirationDate><value>2010-10-24</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>4500</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>4500</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Stock Option (Right to Buy) (NQ)</value></securityTitle><conversionOrExercisePrice><value>22.63</value></conversionOrExercisePrice><exerciseDate><value>2004-10-24</value></exerciseDate><expirationDate><value>2011-10-23</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>2602</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>2602</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Stock Option (Right to Buy) (ISO)</value></securityTitle><conversionOrExercisePrice><value>22.63</value></conversionOrExercisePrice><exerciseDate><value>2004-10-24</value></exerciseDate><expirationDate><value>2011-10-23</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>4418</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>4418</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Stock Option (Right to Buy) (ISO)</value></securityTitle><conversionOrExercisePrice><value>29.71</value></conversionOrExercisePrice><exerciseDate><value>2006-01-29</value></exerciseDate><expirationDate><value>2013-01-28</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>3365</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>3365</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Stock Option (Right to Buy) (NQ)</value></securityTitle><conversionOrExercisePrice><value>29.71</value></conversionOrExercisePrice><exerciseDate><value>2006-01-29</value></exerciseDate><expirationDate><value>2013-01-28</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>5285</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>5285</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeHolding></derivativeTable><footnotes><footnote id="F1">Energen Corporation Employee Savings Plan, number of Shares and Securities are estimates based on trustee's unit accounting.</footnote><footnote id="F2">Securities convert to common stock on a one-for-one basis.</footnote><footnote id="F3">The first to occur of 70th birthday, termination of the Plan, termination for cause or one or more other events elected by the participant and approved by Energen.</footnote><footnote id="F4">Energen Corporation Deferred Compensation Plan, number of shares and securities are estimates based on recordkeepers' unit accounting. </footnote><footnote id="F5">The stock option becomes exercisable in two annual installments of 3,000 and 1,500 on October 25, 2002 and 2003, respectively.</footnote></footnotes><remarks/><ownerSignature><signatureName>J.D. Woodruff, Attorney in Fact</signatureName><signatureDate>2003-09-03</signatureDate></ownerSignature></ownershipDocument>

