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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2020-06-05</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001655050</issuerCik>
        <issuerName>Bain Capital Specialty Finance, Inc.</issuerName>
        <issuerTradingSymbol>BCSF</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001309111</rptOwnerCik>
            <rptOwnerName>BAIN CAPITAL CREDIT MEMBER, LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O BAIN CAPITAL CREDIT, LP</rptOwnerStreet1>
            <rptOwnerStreet2>200 CLARENDON STREET</rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001651587</rptOwnerCik>
            <rptOwnerName>Bain Capital Distressed &amp; Special Situations 2016 (F), L.P.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O BAIN CAPITAL CREDIT, LP</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2020-06-05</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>X</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>2174062.00</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>10.22</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>10870314.67</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See Footnotes</value>
                    <footnoteId id="F3"/>
                    <footnoteId id="F4"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Subscription Rights</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>10.22</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2020-06-05</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>X</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>8696252.00</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.00</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <value>2020-05-13</value>
            </exerciseDate>
            <expirationDate>
                <value>2020-06-05</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>2174062.00</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See Footnotes</value>
                    <footnoteId id="F3"/>
                    <footnoteId id="F4"/>
                </natureOfOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">On June 5, 2020, Bain Capital Distressed and Special Situations 2016 (F), L.P. (&quot;F Holdings&quot;) and Bain Capital Credit Holdings (MRF), L.P. (&quot;MRF Holdings&quot;) each exercised in full its primary subscription rights (every 4 subscription rights entitling it to purchase 1 share of Common Stock), which were issued to holders of Common Stock on the May 13, 2020 record date for the rights offering.</footnote>
        <footnote id="F2">Pursuant to the rights offering, each of F Holdings and MRF Holdings has also exercised its over-subscription privilege and may acquire additional shares of Common Stock pursuant thereto. Any such additional shares (once determined) will be reported on a subsequent Form 4.</footnote>
        <footnote id="F3">Following the transactions described herein, shares of Common Stock are directly held by the following entities: (a) 9,116,331.48 by F Holdings, whose general partner is Bain Capital Distressed and Special Situations 2016 Investors (F), L.P. (&quot;F Holdings GP&quot;), and (b) 1,753,983,19 by MRF Holdings and together with F Holdings, the &quot;Funds&quot;), whose general partner is Bain Capital Credit Holdings Investors (MRF), LP (&quot;MRF Holdings GP&quot;).  Bain Capital Credit Member, LLC (&quot;BCCM&quot;) is the general partner of F Holdings GP and MRF Holdings GP.</footnote>
        <footnote id="F4">BCCM may be deemed to share beneficial ownership of all 10,870,314.67 shares of Common Stock held of record by the Funds, but disclaims beneficial ownership of such shares, except to the extent of its respective pecuniary interest therein.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Bain Capital Credit Member, LLC</signatureName>
        <signatureDate>2020-06-08</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Bain Capital Distressed and Special Situations 2016 (F), L.P.</signatureName>
        <signatureDate>2020-06-08</signatureDate>
    </ownerSignature>
</ownershipDocument>
