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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2017-05-08</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

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

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001214939</rptOwnerCik>
            <rptOwnerName>HEIDEN WILLIAM K</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>1</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>President &amp; CEO</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2017-05-08</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>19085</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>18.55</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>272561</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Represents shares withheld to satisfy the reporting person's tax obligations in connection with the vesting of 18,700 restricted stock units (&quot;RSUs&quot;) on January 2, 2017, 9,999 RSUs on February 26, 2017, 3,900 RSUs on February 27, 2017, 3,600 RSUs on February 28, 2017 and 11,998 RSUs on March 1, 2017. Due to the black-out policies implemented by AMAG Pharmaceuticals, Inc. (the &quot;Issuer&quot;), the shares of the Issuer's Common Stock underlying such vested RSUs were not delivered to the reporting person until May 8, 2017, at which time an aggregate of 19,085 shares were withheld to satisfy the reporting person's applicable tax obligations.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Nancy R. Smith, attorney-in-fact</signatureName>
        <signatureDate>2017-05-10</signatureDate>
    </ownerSignature>
</ownershipDocument>
