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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2016-10-13</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001651235</issuerCik>
        <issuerName>Acacia Communications, Inc.</issuerName>
        <issuerTradingSymbol>ACIA</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001239366</rptOwnerCik>
            <rptOwnerName>CHUNG PETER Y</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O SUMMIT PARTNERS</rptOwnerStreet1>
            <rptOwnerStreet2>222 BERKELEY STREET, 18TH FLOOR</rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2016-10-13</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>346202</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>96.5</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>2550127</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See Footnotes</value>
                    <footnoteId id="F4"/>
                    <footnoteId id="F5"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Represents shares sold by the following entities: 262,832 shares sold by Summit Partners Venture Capital Fund III-A, L.P., 79,661 shares sold by Summit Partners Venture Capital Fund III-B, L.P., 3,424 shares sold by Summit Investors I, LLC and 285 shares sold by Summit Investors I (UK), L.P.</footnote>
        <footnote id="F2">Represents the offering price to the public of $100 per share, net of underwriters' discount of $3.50.</footnote>
        <footnote id="F3">Consists of 1,936,021 shares held by Summit Partners Venture Capital Fund III-A, L.P., 586,781 shares held  by Summit Partners Venture Capital Fund III-B, L.P., 25,224 shares held by Summit Investors I, LLC and 2,101 shares held by Summit Investors I (UK), L.P.</footnote>
        <footnote id="F4">Summit Partners, L.P. is the managing member of Summit Partners VC III, LLC, which is the general partner of Summit Partners VC III, L.P., which is the general partner of each of Summit Partners Venture Capital Fund III-A, L.P. and Summit Partners Venture Capital Fund III-B, L.P. Summit Master Company, LLC is the managing member of Summit Investors Management, LLC, which is the manager of Summit Investors I, LLC, and the general partner of Summit Investors I (UK), L.P. Summit Master Company, LLC, as the managing member of Summit Investors Management, LLC, has delegated investment decisions, including voting and dispositive power, to Summit Partners, L.P. and its investment committee responsible for voting and investment decisions with respect to the Issuer.</footnote>
        <footnote id="F5">Summit  Partners, L.P., through a three-person investment committee responsible for voting and investment decisions with respect to the Issuer, currently comprised of Martin J. Mannion, Bruce R. Evans and Peter Y. Chung, has voting and dispositive power over the shares held  by each of these entities and therefore may be deemed to beneficially own such shares. Mr. Chung is a member of Summit Master Company, LLC. Mr. Chung may be deemed to share beneficial ownership of the shares of the Issuer held of record by the Summit entities and has an indirect pecuniary interest in such shares through his membership in Summit Master Company, LLC. Mr. Chung expressly disclaims beneficial ownership of such shares except to the extent of his pecuniary interest therein.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Robin W. Devereux, Power of Attorney for Peter Y. Chung</signatureName>
        <signatureDate>2016-10-14</signatureDate>
    </ownerSignature>
</ownershipDocument>
