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

    <documentType>4</documentType><periodOfReport>2003-12-09</periodOfReport>
    <issuer>
        <issuerCik>0000840824</issuerCik>
        <issuerName>NETEGRITY INC</issuerName>
        <issuerTradingSymbol>NETE</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001190873</rptOwnerCik>
            <rptOwnerName>SOMMER REGINA O</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O NETEGRITY, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>201 JONES ROAD</rptOwnerStreet2>
            <rptOwnerCity>WALTHAM</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02451</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>0</isDirector><isOfficer>1</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther><officerTitle>Treasurer and CFO</officerTitle></reportingOwnerRelationship></reportingOwner><derivativeTable><derivativeTransaction><securityTitle><value>Employee Stock Option (right to buy)</value></securityTitle><conversionOrExercisePrice><value>10.35</value></conversionOrExercisePrice><transactionDate><value>2003-12-09</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>A</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>75000</value></transactionShares><transactionPricePerShare><value>0</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><value>2004-03-09</value><footnoteId id="F1"/></exerciseDate><expirationDate><value>2013-12-10</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>75000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>75000</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction></derivativeTable><footnotes><footnote id="F1">Options shall vest 6.25% each quarter beginning 3 months after the grant date such that on the fourth anniversary of the option grant date the option shall be 100% vested and exercisable.</footnote></footnotes><remarks/><ownerSignature><signatureName>Regina O. Sommer</signatureName><signatureDate>2003-12-11</signatureDate></ownerSignature></ownershipDocument>

