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

    <schemaVersion>X0206</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2023-10-01</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0001524472</issuerCik>
        <issuerName>Xylem Inc.</issuerName>
        <issuerTradingSymbol>XYL</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001694002</rptOwnerCik>
            <rptOwnerName>Grogan William K</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O XYLEM INC.</rptOwnerStreet1>
            <rptOwnerStreet2>301 WATER STREET SE</rptOwnerStreet2>
            <rptOwnerCity>WASHINGTON</rptOwnerCity>
            <rptOwnerState>DC</rptOwnerState>
            <rptOwnerZipCode>20003</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>SVP &amp; Chief Financial Officer</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>28802.00</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Pursuant to the appointment by the Board of Directors, the reporting individual's role as SVP, CFO commenced October 1, 2023. Shares reflect the award of sign-on restricted stock units (&quot;RSUs&quot;) granted consistent with the terms of the Company's offer of employment, which commenced September 1, 2023. The RSU grant was made pursuant to the Xylem 2011 Omnibus Incentive Plan (Amended and Restated February 24, 2016) and is scheduled to vest in one-third increments on September 18, 2024, September 18, 2025 and September 18, 2026.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ Callie Plant, by power of attorney for William K. Grogan</signatureName>
        <signatureDate>2023-10-02</signatureDate>
    </ownerSignature>
</ownershipDocument>
