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

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-08-17</periodOfReport>

    <notSubjectToSection16>true</notSubjectToSection16>

    <issuer>
        <issuerCik>0000915912</issuerCik>
        <issuerName>AVALONBAY COMMUNITIES INC</issuerName>
        <issuerTradingSymbol>AVB</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001862706</rptOwnerCik>
            <rptOwnerName>Howard Christopher B.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O AVALONBAY COMMUNITIES, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>4040 WILSON BOULEVARD STE 1000</rptOwnerStreet2>
            <rptOwnerCity>ARLINGTON</rptOwnerCity>
            <rptOwnerState>VA</rptOwnerState>
            <rptOwnerZipCode>22203</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>true</isDirector>
            <isOfficer>false</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

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

    <footnotes>
        <footnote id="F1">Pursuant to the Agreement and Plan of Merger, dated as of May 20, 2026 (the &quot;Merger Agreement&quot;), by and among AvalonBay Communities, Inc., a Maryland corporation (&quot;AVB&quot;), Equity Residential, a Maryland real estate investment trust (&quot;EQR&quot;), ERP Operating Limited Partnership, an Illinois limited partnership, and Canopy Merger Sub LLC, a Maryland limited liability company (&quot;Merger Sub&quot;), AVB and EQR combined in a merger of equals on August 17, 2026, with AVB merging with and into Merger Sub, with Merger Sub surviving as a wholly owned subsidiary of EQR (the &quot;Merger&quot;). In connection with the Merger, EQR changed its name to Vivmark Residential.</footnote>
        <footnote id="F2">At the effective time of the Merger (the &quot;Effective Time&quot;), each issued and outstanding deferred stock unit held by the Reporting Person was automatically converted into the right to receive 2.793 (the &quot;Exchange Ratio&quot;) common shares of beneficial interest, $0.01 par value per share (&quot;EQR Common Shares&quot;), of EQR. On August 14, 2026, the closing price of AVB Common Stock was $184.06 per share and the closing price of EQR Common Shares was $65.97 per share.</footnote>
        <footnote id="F3">This total includes deferred stock units.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Christopher B. Howard by Edward M. Schulman pursuant to a Power of Attorney dated as of May 20, 2021</signatureName>
        <signatureDate>2026-08-17</signatureDate>
    </ownerSignature>
</ownershipDocument>
