<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="tslx-20240501.xsd" xlink:type="simple"/>
    <context id="C_3eb44d2c-a310-482d-8ed4-bc29c31300af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001508655</identifier>
        </entity>
        <period>
            <startDate>2024-05-01</startDate>
            <endDate>2024-05-01</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_5043418a-1244-4346-9025-0216603b64a9">0001508655</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_49552c31-ce76-4db0-8692-610f050b494e">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_f9c9c2b4-32ff-426c-b6ce-1ed8e64dddf8">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_35209202-74b0-42e0-9f56-3ba3c9a49527">2024-05-01</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_9d5bd943-43c7-434e-be92-a7e836efe24a">Sixth Street Specialty Lending, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_730225e9-1c2b-4a97-b45f-97d49a9e5cc6">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_1aa0382a-fa02-4d95-9f2b-4ba2a47101c4">001-36364</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_19ae8edd-3a86-4669-84e1-03dfd850da9f">27-3380000</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_be4fc7ca-0a21-40b4-b661-34a9feb4d377">2100 McKinney Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_701df1a1-dfca-4999-b61f-5e3fc91a8a10">Suite 1500</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_7545b460-402d-4577-b5d7-c3fe4466b65f">Dallas</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_b03f45a5-c946-42e4-a8a6-4868427cdd34">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_2758db73-a8a5-451d-a2b4-1f12265efcf5">75201</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_09459987-5713-4ad0-a3ba-f6ef346822b3">469</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_b9a17ef5-7c5c-4270-8a84-aa31e1fcfe69">621-3001</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_0d5da483-cc81-478e-bdc3-d877e130cde6">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_2550d149-f4da-423a-a1bc-77b2a6f83580">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_219be803-bdd9-445a-a654-e5bb634624a7">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_a216b7a1-2041-405d-9c0f-93317f5b4d30">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_f5b5f4b5-d859-4600-b510-777f94fb05f0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_bad0e9c9-4cb1-462c-a9e7-bc6d99a101a1">TSLX</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_d3192b29-3338-4e0a-900c-3665a59ede43">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_3eb44d2c-a310-482d-8ed4-bc29c31300af"
      id="F_1e9051ee-434c-4205-9d29-05e384897b32">false</dei:EntityEmergingGrowthCompany>
</xbrl>
