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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-07-29</periodOfReport>

    <issuer>
        <issuerCik>0000055242</issuerCik>
        <issuerName>KENNAMETAL INC</issuerName>
        <issuerTradingSymbol>KMT</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001939403</rptOwnerCik>
            <rptOwnerName>Witt John Wayne</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>525 WILLIAM PENN PLACE</rptOwnerStreet1>
            <rptOwnerStreet2>33RD FLOOR</rptOwnerStreet2>
            <rptOwnerCity>PITTSBURGH</rptOwnerCity>
            <rptOwnerState>PA</rptOwnerState>
            <rptOwnerZipCode>15219</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Vice President</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2024-07-29</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>411</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1175</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2024-07-29</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>467</value>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1642</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">1.	Represents 411 performance stock units deemed to have been earned by the Compensation and Human Capital Committee (&quot;the Committee&quot;) on July 29, 2024, with respect to the second tranche of the Performance Unit Award granted to the reporting person on August 15, 2022 (the &quot;2022 Performance Unit Award&quot;), under the Kennametal Inc. 2020 Stock and Incentive Plan. On July 29, 2024, the Committee approved adjusted ROIC payout multiple at 67.3% for the second tranche of the 2022 Performance Unit Award; vesting and actual distribution of these shares remain subject to the reporting person's continued employment with the Company through August 15, 2025.</footnote>
        <footnote id="F2">2.	Represents 467 performance stock units deemed to have been earned by the Compensation and Human Capital Committee (&quot;the Committee&quot;) on July 29, 2024, with respect to the first tranche of the Performance Unit Award granted to the reporting person on August 15, 2023 (the &quot;2023 Performance Unit Award&quot;), under the Kennametal Inc. 2020 Stock and Incentive Plan. On July 29, 2024, the Committee approved adjusted ROIC payout multiple at 67.3% for the first tranche of the 2023 Performance Unit Award; vesting and actual distribution of these shares remain subject to the reporting person's continued employment with the Company through August 15, 2026.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Michelle R. Keating, as attorney-in-fact</signatureName>
        <signatureDate>2024-07-31</signatureDate>
    </ownerSignature>
</ownershipDocument>
