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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2020-03-02</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000792977</issuerCik>
        <issuerName>AMAG PHARMACEUTICALS, INC.</issuerName>
        <issuerTradingSymbol>AMAG</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001772630</rptOwnerCik>
            <rptOwnerName>Casciano Anthony</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O AMAG PHARMACEUTICALS, INC.,</rptOwnerStreet1>
            <rptOwnerStreet2>1100 WINTER STREET</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>Chief Commercial Officer</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2020-03-02</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>924</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>7.75</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>53209</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Represents shares withheld to satisfy the reporting person's tax obligations in connection with the vesting of 2,666 restricted stock units (&quot;RSUs&quot;) on March 2, 2020.</footnote>
        <footnote id="F2">Reporting person's total beneficial ownership has been adjusted to reflect that no shares were awarded pursuant to the performance-based RSU award granted on February 23, 2017.  The reporting person had previously reported beneficial ownership of 4,000 shares pursuant to the RSU award, which represented the target number of shares that could have been delivered based on the achievement of certain relative total stockholder return targets over a three year performance period, which were not met, and which target share amount was included in the 43,244 unvested RSUs previously reported on the reporting person's a Form 3 filed on April 5, 2019.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Carolyn Rucci, attorney-in-fact</signatureName>
        <signatureDate>2020-03-04</signatureDate>
    </ownerSignature>
</ownershipDocument>
