<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="tslx-20250213.xsd" xlink:type="simple"/>
    <context id="C_dcd80108-108a-45e4-a616-d74a4d3362d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001508655</identifier>
        </entity>
        <period>
            <startDate>2025-02-13</startDate>
            <endDate>2025-02-13</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_d4bbf5eb-ddee-48c7-ab57-d22b2c1e610f">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_fef0237e-0d01-43f0-9f08-3690b0f6108b">0001508655</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_2d1f1ae0-602b-4bb1-b0b1-4051069c1499">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_77f2e388-aa93-48c8-99cb-1af0d8bf496c">2025-02-13</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_e18d6da3-591b-47da-aad5-06006c3b38cc">Sixth Street Specialty Lending, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_915da4cf-34fc-4eec-92b0-141044e74520">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_bcb1c203-c11d-4647-877f-618154183694">001-36364</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_d8a7d89c-59c8-4292-9e72-5b550c28321d">27-3380000</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_51e1329c-f846-424b-9372-856a4c3d4d76">2100 McKinney Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_91410700-56ce-4d76-b73c-f38d46e05ec3">Suite 1500</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_f4bfc180-ff19-400d-a125-07f4ab384b58">Dallas</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_82ae1d13-b345-4e96-9a88-f4b9168ee13c">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_f99d480a-fe5d-4b59-b3c5-46342465a8ca">75201</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_3fe1832a-4773-4141-a4a5-f33606b9936a">(469)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_d7551661-eaa3-4776-ab24-0dd254e39705">621-3001</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_49193c25-e440-4c66-bedd-96e956d24a5a">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_6fbbb819-257e-425a-a0d1-bbefde052d05">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_7332bd89-a7eb-42cf-8642-cbc178523a56">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_88788523-4ea9-421a-8fe1-00850c44fec0">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_c82bf1cc-ccc8-4faf-99c0-e64bac60a133">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_dc16f08d-dc02-440f-b438-169a915fbf3e">TSLX</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_36ca2a71-e6c3-42e9-a9ac-f9802529b5e7">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_dcd80108-108a-45e4-a616-d74a4d3362d0"
      id="F_3369787c-bd91-4a82-bb16-95ae28e74741">false</dei:EntityEmergingGrowthCompany>
</xbrl>
