<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2025"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="tslx-20260514.xsd" xlink:type="simple"/>
    <context id="P05_14_2026To05_14_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001508655</identifier>
        </entity>
        <period>
            <startDate>2026-05-14</startDate>
            <endDate>2026-05-14</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:AmendmentFlag contextRef="P05_14_2026To05_14_2026" id="ixv-347">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="P05_14_2026To05_14_2026" id="ixv-348">0001508655</dei:EntityCentralIndexKey>
    <dei:EntityAddressStateOrProvince contextRef="P05_14_2026To05_14_2026" id="hidden165554205">TX</dei:EntityAddressStateOrProvince>
    <dei:DocumentType contextRef="P05_14_2026To05_14_2026" id="ixv-361">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="P05_14_2026To05_14_2026" id="ixv-362">2026-05-14</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="P05_14_2026To05_14_2026" id="ixv-363">Sixth Street Specialty Lending, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="P05_14_2026To05_14_2026" id="ixv-364">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="P05_14_2026To05_14_2026" id="ixv-365">001-36364</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="P05_14_2026To05_14_2026" id="ixv-366">27-3380000</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="P05_14_2026To05_14_2026" id="ixv-367">2100 McKinney Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="P05_14_2026To05_14_2026" id="ixv-368">Suite 1500</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="P05_14_2026To05_14_2026" id="ixv-369">Dallas</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode contextRef="P05_14_2026To05_14_2026" id="ixv-370">75201</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P05_14_2026To05_14_2026" id="ixv-371">469</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P05_14_2026To05_14_2026" id="ixv-372">621-3001</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="P05_14_2026To05_14_2026" id="ixv-373">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="P05_14_2026To05_14_2026" id="ixv-374">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="P05_14_2026To05_14_2026" id="ixv-375">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="P05_14_2026To05_14_2026" id="ixv-376">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="P05_14_2026To05_14_2026" id="ixv-377">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P05_14_2026To05_14_2026" id="ixv-378">TSLX</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P05_14_2026To05_14_2026" id="ixv-379">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="P05_14_2026To05_14_2026" id="ixv-380">false</dei:EntityEmergingGrowthCompany>
    <cef:LongTermDebtTableTextBlock contextRef="P05_14_2026To05_14_2026" id="ixv-381">On May&#160;14, 2026, Sixth Street Specialty Lending, Inc. (the &#x201c;Company&#x201d;) and U.S. Bank Trust Company, National Association (the &#x201c;Trustee&#x201d;), entered into a Third Supplemental Indenture (the &#x201c;Third Supplemental Indenture&#x201d;) to the Indenture, dated as of January&#160;16, 2024, between the Company and the Trustee (the &#x201c;Base Indenture&#x201d;; and together with the Third Supplemental Indenture, the &#x201c;Indenture&#x201d;), relating to the Company&#x2019;s issuance, offer and sale of $300,000,000 aggregate principal amount of its 5.650% notes due 2031 (the &#x201c;Notes&#x201d;).</cef:LongTermDebtTableTextBlock>
    <cef:LongTermDebtPrincipal
      contextRef="P05_14_2026To05_14_2026"
      decimals="0"
      id="ixv-382"
      unitRef="Unit_USD">300000000</cef:LongTermDebtPrincipal>
    <cef:LongTermDebtTitleTextBlock contextRef="P05_14_2026To05_14_2026" id="ixv-383">5.650% notes due 2031</cef:LongTermDebtTitleTextBlock>
    <cef:LongTermDebtStructuringTextBlock contextRef="P05_14_2026To05_14_2026" id="ixv-384">The Notes will mature on August&#160;15, 2031 and may be redeemed in whole or in part at the Company&#x2019;s option at any time at the redemption prices set forth in the Third Supplemental Indenture. The Notes bear interest at a rate of 5.650% per year payable semiannually on February&#160;15 and August&#160;15 of each year, commencing on February&#160;15, 2027.</cef:LongTermDebtStructuringTextBlock>
    <cef:LongTermDebtDividendsAndCovenantsTextBlock contextRef="P05_14_2026To05_14_2026" id="ixv-385">The Company expects to use the net proceeds of this offering to pay down debt under its revolving credit facility and for general corporate purposes, including making new investments in accordance with the Company&#x2019;s investment objective and strategies. The Indenture contains certain covenants including covenants requiring the Company to comply with Section&#160;18(a)(1)(A) as modified by Section&#160;61(a) of the Investment Company Act of 1940, as amended, or any successor provisions, but giving effect, in either case, to any exemptive relief granted to the Company by the SEC, and to provide financial information to the holders of the Notes and the Trustee if the Company should no longer be subject to the reporting requirements under the Securities Exchange Act of 1934. These covenants are subject to important limitations and exceptions that are described in the Indenture.</cef:LongTermDebtDividendsAndCovenantsTextBlock>
</xbrl>
