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

    <documentType>4/A</documentType><periodOfReport>2003-12-11</periodOfReport><dateOfOriginalSubmission>2003-12-16</dateOfOriginalSubmission>
    <issuer>
        <issuerCik>0000277595</issuerCik>
        <issuerName>ENERGEN CORP</issuerName>
        <issuerTradingSymbol>EGN</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001181830</rptOwnerCik>
            <rptOwnerName>REYNOLDS D C</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 of Subsidiary</officerTitle></reportingOwnerRelationship></reportingOwner><nonDerivativeTable><nonDerivativeHolding><securityTitle><value>Common Stock (ESP)</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>13387</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>1030</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock (Deferred)</value><footnoteId id="F3"/></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>4049</value><footnoteId id="F2"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeTransaction><securityTitle><value>Common Stock (Jt Ten - Brokerage Acct.)</value><footnoteId id="F4"/></securityTitle><transactionDate><value>2003-12-11</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>1000</value></transactionShares><transactionPricePerShare><value>39.78</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>16338</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>          (Same as above)</value></securityTitle><transactionDate><value>2003-12-11</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>2100</value></transactionShares><transactionPricePerShare><value>39.65</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>14238</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>          (Same as above)</value></securityTitle><transactionDate><value>2003-12-11</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>1900</value></transactionShares><transactionPricePerShare><value>39.55</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>12338</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeHolding><securityTitle><value>Common Stock (IRA)</value><footnoteId id="F4"/></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>104</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock (Wife's IRA)</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>104</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>IRA (Wife)</value></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock</value><footnoteId id="F4"/></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>13602</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeTransaction><securityTitle><value>Common Stock</value><footnoteId id="F4"/></securityTitle><transactionDate><value>2003-12-11</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>500</value></transactionShares><transactionPricePerShare><value>39.55</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1696</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Custodian for Daughter</value></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeHolding><securityTitle><value>Common Stock</value><footnoteId id="F4"/></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>2374</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Custodian for Son</value></natureOfOwnership></ownershipNature></nonDerivativeHolding></nonDerivativeTable><derivativeTable><derivativeHolding><securityTitle><value>Stock Option (Right to Buy) (NQ)</value></securityTitle><conversionOrExercisePrice><value>18.25</value></conversionOrExercisePrice><exerciseDate><footnoteId id="F5"/></exerciseDate><expirationDate><value>2007-11-24</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>3566</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>3566</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>18.25</value></conversionOrExercisePrice><exerciseDate><footnoteId id="F6"/></exerciseDate><expirationDate><value>2007-11-24</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>16434</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>16434</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>27.4375</value></conversionOrExercisePrice><exerciseDate><footnoteId id="F7"/></exerciseDate><expirationDate><value>2010-10-24</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>9000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>9000</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>27.4375</value></conversionOrExercisePrice><exerciseDate><footnoteId id="F8"/></exerciseDate><expirationDate><value>2010-10-24</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>1000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1000</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>1142</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1142</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) (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>4135</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>4135</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></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">Energen Corporation Deferred Compensation Plan, number of shares is estimated based on recordkeepers' unit accounting.  </footnote><footnote id="F3">Previously reported on Table II.</footnote><footnote id="F4">In preparing this form the reporting person discovered that prior filings had overstated holdings by an aggregate of 3,284 shares and incorrectly allocated holdings between direct and indirect ownership.</footnote><footnote id="F5">The option becomes exercisable in three annual installments of 1,188, 1,188 and 1,190 on November 25, 1998, 1999 and 2000, respectively.</footnote><footnote id="F6">The option becomes exercisable in three equal annual installments on November 25, 1998, 1999 and 2000.</footnote><footnote id="F7">The option becomes exercisable in three equal annual installments on October 25, 2001, 2002 and 2003.</footnote><footnote id="F8">The option becomes exercisable in three annual installments of 333, 333 and 334 on October 25, 2001, 2002 and 2003, respectively.</footnote></footnotes><remarks/><ownerSignature><signatureName>Dudley C. Reynolds</signatureName><signatureDate>2003-12-16</signatureDate></ownerSignature></ownershipDocument>

