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

    <schemaVersion>X0303</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2009-12-31</periodOfReport>

    <issuer>
        <issuerCik>0001323468</issuerCik>
        <issuerName>GLOBAL PARTNERS LP</issuerName>
        <issuerTradingSymbol>GLP</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001339396</rptOwnerCik>
            <rptOwnerName>Global GP LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>800 SOUTH STREET</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 200</rptOwnerStreet2>
            <rptOwnerCity>WALTHAM</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02454-9161</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <otherText>General Partner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common units representing limited partner interests</value>
            </securityTitle>
            <transactionDate>
                <value>2009-12-31</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>16617</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>22.96</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>109763</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The transaction is the transfer of common units by the reporting person to Mr. Eric Slifka as compensation pursuant to Mr. Slifka's employment agreement with the reporting person and pursuant to the Global Partners LP Long-Term Incentive Plan.  No cash consideration was received by the reporting person for this transaction.</footnote>
        <footnote id="F2">The price reported in Column 4 is the closing market price on the date of transfer of common units by the reporting person to Mr. Eric Slifka.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>Edward J. Faneuil, Attorney-in-Fact for Global GP LLC</signatureName>
        <signatureDate>2010-01-05</signatureDate>
    </ownerSignature>
</ownershipDocument>
