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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2017-03-09</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>2017-03-09</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>1250000</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>50.25</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1300127</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See Footnotes</value>
                    <footnoteId id="F3"/>
                    <footnoteId id="F4"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Represents shares sold by the following entities: 948,982 shares sold by Summit Partners Venture Capital Fund III-A, L.P., 287,624 shares sold by Summit Partners Venture Capital Fund III-B, L.P., 12,364 shares sold by Summit Investors I, LLC and 1,030 shares sold by Summit Investors I (UK), L.P.</footnote>
        <footnote id="F2">Consists of 987,039 shares held by Summit Partners Venture Capital Fund III-A, L.P., 299,157 shares held  by Summit Partners Venture Capital Fund III-B, L.P., 12,860 shares held by Summit Investors I, LLC and 1,071 shares held by Summit Investors I (UK), L.P.</footnote>
        <footnote id="F3">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="F4">Summit  Partners, L.P., through a two-person investment committee responsible for voting and investment decisions with respect to the Issuer, currently comprised of Martin J. Mannion 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. Each of Summit Partners, L.P., Mr. Mannion and Mr. Chung expressly disclaims beneficial ownership of such shares except to the extent of their pecuniary interest therein.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Robin W. Devereux, Power of Attorney for Peter Y. Chung</signatureName>
        <signatureDate>2017-03-13</signatureDate>
    </ownerSignature>
</ownershipDocument>
