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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-11-13</periodOfReport>

    <issuer>
        <issuerCik>0001145986</issuerCik>
        <issuerName>ASPEN AEROGELS INC</issuerName>
        <issuerTradingSymbol>ASPN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001610257</rptOwnerCik>
            <rptOwnerName>Young Donald R</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O ASPEN AEROGELS, INC.,</rptOwnerStreet1>
            <rptOwnerStreet2>30 FORBES ROAD, BLDG B</rptOwnerStreet2>
            <rptOwnerCity>NORTHBOROUGH</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>01532</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>true</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>President and CEO</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>true</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2025-11-13</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>56845</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>3.23</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>494011</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The transaction reported on this Form 4 was effected pursuant to a rule 10b5-1 trading plan. This plan was previously adopted by the reporting person on August 11, 2025, to sell a limited number of shares for tax purposes in connection with a one-time personal real estate transaction.</footnote>
        <footnote id="F2">These transactions were executed in multiple trades at prices ranging from $3.15 to $3.41. The reporting person will provide to the staff of the Securities and Exchange Commission, the issuer, or any security holder of the issuer, upon request, full information regarding the number of shares sold at each separate price.</footnote>
        <footnote id="F3">Represents 414,306 shares of Common Stock and 79,705 Restricted Stock Units.</footnote>
    </footnotes>

    <remarks>Exhibit 24.1 - Power of Attorney</remarks>

    <ownerSignature>
        <signatureName>/s/ Glenn Deegan, Attorney-in-Fact</signatureName>
        <signatureDate>2025-11-14</signatureDate>
    </ownerSignature>
</ownershipDocument>
