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

    <schemaVersion>X0303</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2009-08-27</periodOfReport>

    <issuer>
        <issuerCik>0000749251</issuerCik>
        <issuerName>GARTNER INC</issuerName>
        <issuerTradingSymbol>IT</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001088186</rptOwnerCik>
            <rptOwnerName>SILVER LAKE PARTNERS LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>2775 SAND HILL ROAD</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>MENLO PARK</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94025</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001269867</rptOwnerCik>
            <rptOwnerName>SILVER LAKE TECHNOLOGY INVESTORS LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>2775 SAND HILL ROAD</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>MENLO PARK</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94025</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001099154</rptOwnerCik>
            <rptOwnerName>SILVER LAKE INVESTORS LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>2775 SAND HILL ROAD</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>MENLO PARK</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94025</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001306831</rptOwnerCik>
            <rptOwnerName>Bingle Michael J</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O SILVER LAKE PARTNERS, L.P.</rptOwnerStreet1>
            <rptOwnerStreet2>2775 SAND HILL ROAD, SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>MENLO PARK</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94025</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001180451</rptOwnerCik>
            <rptOwnerName>JOYCE JOHN R</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O SILVER LAKE PARTNERS, L.P.</rptOwnerStreet1>
            <rptOwnerStreet2>2775 SAND HILL ROAD, SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>MENLO PARK</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94025</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, par value $0.0005</value>
            </securityTitle>
            <transactionDate>
                <value>2009-08-27</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F2"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>46300</value>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>17.06</value>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>10087468</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock, par value $0.0005</value>
            </securityTitle>
            <transactionDate>
                <value>2009-08-28</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F4"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>53859</value>
                    <footnoteId id="F4"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>17.03</value>
                    <footnoteId id="F5"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>10033609</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock, par value $0.0005</value>
            </securityTitle>
            <transactionDate>
                <value>2009-08-31</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F6"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>4201</value>
                    <footnoteId id="F6"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>16.85</value>
                    <footnoteId id="F7"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>10029408</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Owned by Silver Lake Partners, L.P., Silver Lake Investors, L.P., and Silver Lake Technology Investors, L.L.C. (collectively, the &quot;Silver Lake Entities&quot;).  Silver Lake Technology Associates, L.L.C. is the General Partner of each of Silver Lake Partners, L.P. and Silver Lake Investors, L.P.  Silver Lake Partners Management Company, L.L.C. is the Manager of Silver Lake Technology Investors, L.L.C.  Each of Mr. Bingle and Mr. Joyce, who are both directors of the Issuer, is a Managing Director of each of Silver Lake Technology Associates, L.L.C. and Silver Lake Technology Management, L.L.C, the managing member of Silver Lake Partners Management Company, L.L.C.  As such, each of Mr. Bingle and Mr. Joyce could be deemed to have a shared voting and/or dispositive power over these shares.  However, each of Mr. Bingle and Mr. Joyce disclaims beneficial ownership of these shares, except to the extent of his pecuniary interest therein.</footnote>
        <footnote id="F2">Of the 46,300 shares sold by the Silver Lake Entities on August 27, 2009, (i) Silver Lake Partners, L.P. sold 42,638 shares; (ii) Silver Lake Investors, L.P. sold 1,225 shares; and Silver Lake Technology Investors, L.L.C. sold 2,437 shares.</footnote>
        <footnote id="F3">The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $16.90 to $17.23.  The Reporting Person undertakes to provide to the Issuer, any security holder of the Issuer or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the ranges set forth in this footnote.</footnote>
        <footnote id="F4">Of the 53,859 shares sold by the Silver Lake Entities on August 28, 2009, (i) Silver Lake Partners, L.P. sold 49,599 shares; (ii) Silver Lake Investors, L.P. sold 1,425 shares; and Silver Lake Technology Investors, L.L.C. sold 2,835 shares.</footnote>
        <footnote id="F5">The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $16.91 to $17.22.  The Reporting Person undertakes to provide to the Issuer, any security holder of the Issuer or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the ranges set forth in this footnote.</footnote>
        <footnote id="F6">Of the 4,201 shares sold by the Silver Lake Entities on August 31, 2009, (i) Silver Lake Partners, L.P. sold 3,868 shares; (ii) Silver Lake Investors, L.P. sold 111 shares; and Silver Lake Technology Investors, L.L.C. sold 221 shares.</footnote>
        <footnote id="F7">The price reported in Column 4 is a weighted average price.  These shares were sold in multiple transactions at prices ranging from $16.80 to $16.90.  The Reporting Person undertakes to provide to the Issuer, any security holder of the Issuer or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of shares sold at each separate price within the ranges set forth in this footnote.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ Karen M. King, Senior Vice President and General Counsel of Silver Lake Technology Associates, L.L.C., General Partner of Silver Lake Partners, L.P.</signatureName>
        <signatureDate>2009-08-31</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Karen M. King, Senior Vice President and General Counsel of Silver Lake Technology Associates, L.L.C., General Partner of Silver Lake Investors, L.P.</signatureName>
        <signatureDate>2009-08-31</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Karen M. King, Sr. VP &amp; GC of Silver Lake Technology Management, LLC, managing member of Silver Lake Partners Management Company, LLC, Manager of Silver Lake Technology Investors, LLC</signatureName>
        <signatureDate>2009-08-31</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Karen M. King, Attorney-in-Fact for Michael J. Bingle</signatureName>
        <signatureDate>2009-08-31</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Karen M. King, Attorney-in-Fact for John R. Joyce</signatureName>
        <signatureDate>2009-08-31</signatureDate>
    </ownerSignature>
</ownershipDocument>
