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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-06-18</periodOfReport>

    <issuer>
        <issuerCik>0001920145</issuerCik>
        <issuerName>Goldman Sachs Private Credit Corp.</issuerName>
        <issuerTradingSymbol>NONE</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001736027</rptOwnerCik>
            <rptOwnerName>GSAM Holdings LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>200 WEST STREET</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10282</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isOther>true</isOther>
            <otherText>See remarks</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Class I Shares, par value $0.001 per share</value>
            </securityTitle>
            <transactionDate>
                <value>2024-06-18</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>P</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>1976284.585</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>25.3</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3976284.585</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <remarks>GSAM Holdings LLC, a wholly owned subsidiary of The Goldman Sachs Group, Inc. and an affiliate of the issuer's adviser, does not concede that it is subject to Section 16 of the Securities Exchange Act of 1934, as amended, in respect of the issuer.</remarks>

    <ownerSignature>
        <signatureName>GSAM HOLDINGS LLC
By: /s/ Judith Shandling, authorized signatory</signatureName>
        <signatureDate>2024-06-21</signatureDate>
    </ownerSignature>
</ownershipDocument>
