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

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-08-01</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000352825</issuerCik>
        <issuerName>FOSTER L B CO</issuerName>
        <issuerTradingSymbol>FSTR</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0002146909</rptOwnerCik>
            <rptOwnerName>Bowlin Jason Kyle</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O L.B. FOSTER COMPANY</rptOwnerStreet1>
            <rptOwnerStreet2>415 HOLIDAY DRIVE, SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>PITTSBURGH</rptOwnerCity>
            <rptOwnerState>PA</rptOwnerState>
            <rptOwnerZipCode>15220</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Senior Vice President - Rail</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2026-08-01</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>398</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>6980</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Award of 398 restricted stock units (RSUs) which are settled in stock upon vesting and generally will vest ratably over a three-year period on the first, second, and third anniversary of the date of the grant.</footnote>
        <footnote id="F2">Includes 340 Performance Restricted Stock Units earned under the 2025-2027 Long Term Incentive Plan granted on 5/22/2025; those 340 Performance Restricted Stock Units will settle at the end of the performance period on December 31, 2027, upon certification by the Compensation Committee.</footnote>
        <footnote id="F3">Includes 1,288 Performance Restricted Stock Units earned under the 2024-2026 Long Term Incentive Plan granted on 5/23/2024; those 1,288 Performance Restricted Stock Units will settle at the end of the performance period on December 31, 2026, upon certification of the Compensation Committee.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ Jason K. Bowlin by Maribel Castro, attorney-in-fact</signatureName>
        <signatureDate>2026-08-04</signatureDate>
    </ownerSignature>
</ownershipDocument>
