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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2014-08-15</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

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

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001266171</rptOwnerCik>
            <rptOwnerName>RAGAN JOHN W</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>NRG ENERGY, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>211 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>EVP&amp; Regional Pres Gulf Coast</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock, par value .01 per share</value>
            </securityTitle>
            <transactionDate>
                <value>2014-08-15</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>20975</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>29.16</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>133014</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">On August 15, 2014, the Restricted Stock Units (the &quot;RSUs&quot;)  granted to the Reporting Person on August 15, 2011 (the &quot;Date of Grant&quot;) vested in full because (a) the Company's Total Shareholder Return had increased by at least 25% since the Date of Grant, and (b) the Minimum TSR Condition was satisfied as of the vesting date. Total Shareholder Return was determined using the average closing price of a share of common stock on the vesting date and 19 preceding trading days (20-day average) and included any dividends paid between the Date of Grant and the vesting date.  Pursuant to NRG's Long Term Incentive Plan, the Reporting Person elected to satisfy the tax withholding obligation upon the vesting of the RSUs by surrendering a number of shares of common stock having a value on the date of vesting equal to the tax withholding obligation.  The number set forth in Table I reflects the surrender of 20,975 shares of common stock to satisfy the Reporting Person's tax withholding obligation.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Brian Curci, under Power of Attorney</signatureName>
        <signatureDate>2014-08-19</signatureDate>
    </ownerSignature>
</ownershipDocument>
