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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2017-01-02</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001013871</issuerCik>
        <issuerName>NRG ENERGY, INC.</issuerName>
        <issuerTradingSymbol>NRG</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001636160</rptOwnerCik>
            <rptOwnerName>Callen David</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>NRG ENERGY, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>804 CARNEGIE CENTER</rptOwnerStreet2>
            <rptOwnerCity>PRINCETON</rptOwnerCity>
            <rptOwnerState>NJ</rptOwnerState>
            <rptOwnerZipCode>08540</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>SVP, Chief Accounting Offficer</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock, par value, $.01 per share</value>
            </securityTitle>
            <transactionDate>
                <value>2017-01-02</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>1458</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>29614</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">On January 2, 2014, Mr. Callen was issued 4,919 Restricted Stock Units (&quot;RSUs&quot;) by NRG Energy, Inc.  under NRG's Long Term Incentive Plan (&quot;LTIP&quot;) that vest ratably over a three year period.  Each RSU is equivalent in value to one share of NRG's Common Stock, par value $.01. On January 2, 2017, 1,640 shares vested. On January 2, 2015, 5,394 RSUs were issued to Mr. Callen under the LTIP that vest ratably over a three year period.  On January 2, 2017, 1,798 shares vested.</footnote>
        <footnote id="F2">Mr. Callen elected to satisfy his tax obligations upon the exchange of common stock for RSUs having a value on the date of the exchange equal to the withholding obligations. This form is being filed to reflect the surrender of 1,458 shares of common stock to satisfy the grantee's tax withholding obligations.</footnote>
        <footnote id="F3">Reflects that 203 DERs converted in NRG common stock in connection with the vesting of the RSUs described above.  Following these transactions, the reporting person holds  1,041 DERs in the aggregate. Dividend equivalent rights accrue on the reporting person's restricted stock units or market stock units, which become exercisable proportionately with the restricted stock units or market stock units to which they relate and may only be settled in NRG common stock. Each dividend equivalent right is the economic equivalent of one share of NRG common stock.Includes 179 shares acquired under NRG Energy, Inc.'s Employee Stock Purchase Plan since the Reporting Person's last filing.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Brian Curci, by Power of Attorney</signatureName>
        <signatureDate>2017-01-04</signatureDate>
    </ownerSignature>
</ownershipDocument>
