<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>1522</ContextCount>
  <ElementCount>366</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>224</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>11</UnitCount>
  <MyReports>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>75000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>75010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedBalanceSheets1</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>75020 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>75030 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>75040 - Statement - Consolidated Schedule of Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedScheduleOfInvestments1</Role>
      <ShortName>Consolidated Schedule of Investments</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>75050 - Statement - Consolidated Schedule of Investments (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsParenthetical</Role>
      <ShortName>Consolidated Schedule of Investments (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>75060 - Statement - Consolidated Schedule of Investments (Interest Rate Swaps)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsInterestRateSwaps</Role>
      <ShortName>Consolidated Schedule of Investments (Interest Rate Swaps)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>75070 - Statement - Consolidated Schedule of Investments (Affiliated Investments)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsAffiliatedInvestments</Role>
      <ShortName>Consolidated Schedule of Investments (Affiliated Investments)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>75080 - Statement - Consolidated Statements of Changes in Net Assets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited</Role>
      <ShortName>Consolidated Statements of Changes in Net Assets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>75090 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995470 - Disclosure - N-2</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cef/role/N2</Role>
      <ShortName>N-2</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995480 - Disclosure - Organization and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureOrganizationAndBasisOfPresentation</Role>
      <ShortName>Organization and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995490 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995500 - Disclosure - Agreements and Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureAgreementsAndRelatedPartyTransactions</Role>
      <ShortName>Agreements and Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995510 - Disclosure - Investments at Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValue</Role>
      <ShortName>Investments at Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995520 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDerivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995530 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995540 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995560 - Disclosure - Net Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureNetAssets</Role>
      <ShortName>Net Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995570 - Disclosure - Earnings per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureEarningsPerShare1</Role>
      <ShortName>Earnings per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995580 - Disclosure - Dividends</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDividends</Role>
      <ShortName>Dividends</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995590 - Disclosure - Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFinancialHighlights</Role>
      <ShortName>Financial Highlights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995600 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995610 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995620 - Disclosure - Investments at Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValueTables</Role>
      <ShortName>Investments at Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValue</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995630 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDerivatives</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995640 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995650 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDebt</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995660 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995670 - Disclosure - Net Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureNetAssetsTables</Role>
      <ShortName>Net Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureNetAssets</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995680 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995690 - Disclosure - Dividends (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDividendsTables</Role>
      <ShortName>Dividends (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDividends</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995700 - Disclosure - Financial Highlights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFinancialHighlightsTables</Role>
      <ShortName>Financial Highlights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFinancialHighlights</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995710 - Disclosure - Organization and Basis of Presentation (Additional Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationAdditionalInformationDetails</Role>
      <ShortName>Organization and Basis of Presentation (Additional Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureOrganizationAndBasisOfPresentation</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995720 - Disclosure - Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995730 - Disclosure - Agreements and Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureAgreementsAndRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Agreements and Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995740 - Disclosure - Investments at Fair Value - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValueAdditionalInformationDetails</Role>
      <ShortName>Investments at Fair Value - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995750 - Disclosure - Investments at Fair Value - Summary of Investments at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValueSummaryOfInvestmentsAtFairValueDetails</Role>
      <ShortName>Investments at Fair Value - Summary of Investments at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995760 - Disclosure - Investments at Fair Value - Summary of Industry Composition of Investments at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValueSummaryOfIndustryCompositionOfInvestmentsAtFairValueDetails</Role>
      <ShortName>Investments at Fair Value - Summary of Industry Composition of Investments at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995770 - Disclosure - Investments at Fair Value - Summary of Industry Composition of Investments at Fair Value (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureInvestmentsAtFairValueSummaryOfIndustryCompositionOfInvestmentsAtFairValueParentheticalDetails</Role>
      <ShortName>Investments at Fair Value - Summary of Industry Composition of Investments at Fair Value (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995780 - Disclosure - Investments at Fair Value - Summary of Geographic Composition of Investments at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureInvestmentsAtFairValueSummaryOfGeographicCompositionOfInvestmentsAtFairValueDetails</Role>
      <ShortName>Investments at Fair Value - Summary of Geographic Composition of Investments at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995790 - Disclosure - Investments at Fair Value - Summary of Geographic Composition of Investments at Fair Value (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureInvestmentsAtFairValueSummaryOfGeographicCompositionOfInvestmentsAtFairValueParentheticalDetails</Role>
      <ShortName>Investments at Fair Value - Summary of Geographic Composition of Investments at Fair Value (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995800 - Disclosure - Derivatives - Summary of Amounts Paid and Received on Interest Rate Swap Transactions, Excluding Upfront Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDerivativesSummaryOfAmountsPaidAndReceivedOnInterestRateSwapTransactionsExcludingUpfrontFeesDetails</Role>
      <ShortName>Derivatives - Summary of Amounts Paid and Received on Interest Rate Swap Transactions, Excluding Upfront Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995810 - Disclosure - Derivatives - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDerivativesAdditionalInformationDetails</Role>
      <ShortName>Derivatives - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995820 - Disclosure - Fair Value of Financial Instruments - Fair Value Measurements of Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsFairValueMeasurementsOfInvestmentsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Fair Value Measurements of Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995830 - Disclosure - Fair Value of Financial Instruments - Changes in Fair Value of Investments Using Level 3 Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsChangesInFairValueOfInvestmentsUsingLevel3InputsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Changes in Fair Value of Investments Using Level 3 Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995840 - Disclosure - Fair Value of Financial Instruments - Net Change in Unrealized Gains or Losses on Investments for Which Level 3 Inputs were Used in Determining Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsNetChangeInUnrealizedGainsOrLossesOnInvestmentsForWhichLevel3InputsWereUsedInDeterminingFairValueDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Net Change in Unrealized Gains or Losses on Investments for Which Level 3 Inputs were Used in Determining Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995850 - Disclosure - Fair Value of Financial Instruments - Fair Value of Level 3 Investments at Fair Value and Significant Unobservable Inputs Used in Valuations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsFairValueOfLevel3InvestmentsAtFairValueAndSignificantUnobservableInputsUsedInValuationsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Fair Value of Level 3 Investments at Fair Value and Significant Unobservable Inputs Used in Valuations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995860 - Disclosure - Fair Value of Financial Instruments - Fair Value of Level 3 Investments at Fair Value and Significant Unobservable Inputs Used in Valuations (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsFairValueOfLevel3InvestmentsAtFairValueAndSignificantUnobservableInputsUsedInValuationsParenthe</Role>
      <ShortName>Fair Value of Financial Instruments - Fair Value of Level 3 Investments at Fair Value and Significant Unobservable Inputs Used in Valuations (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995870 - Disclosure - Fair Value of Financial Instruments - Schedule of Financial Highlights of Joint Venture (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfFinancialHighlightsOfJointVentureParentheticalDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Financial Highlights of Joint Venture (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995880 - Disclosure - Fair Value of Financial Instruments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsAdditionalInformationDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995890 - Disclosure - Fair Value of Financial Instruments - Schedule of Contributed Capital and Unfunded Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfContributedCapitalAndUnfundedCommitmentsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Contributed Capital and Unfunded Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995900 - Disclosure - Fair Value of Financial Instruments - Schedule of Consolidated Balance Sheet Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfConsolidatedBalanceSheetInformationDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Consolidated Balance Sheet Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995910 - Disclosure - Fair Value of Financial Instruments - Schedule of Balance Sheet Information (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfBalanceSheetInformationParentheticalDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Balance Sheet Information (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995920 - Disclosure - Fair Value of Financial Instruments - Schedule of Consolidated Statement of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfConsolidatedStatementOfOperationsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Consolidated Statement of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995930 - Disclosure - Fair Value of Financial Instruments - Summary of Portfolio Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsSummaryOfPortfolioInformationDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Summary of Portfolio Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995940 - Disclosure - Fair Value of Financial Instruments - Summary of Industry Composition of SCP's Portfolio at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsSummaryOfIndustryCompositionOfScpsPortfolioAtFairValueDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Summary of Industry Composition of SCP's Portfolio at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995950 - Disclosure - Fair Value of Financial Instruments - Summary of Geographic Composition of SCP's Portfolio at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsSummaryOfGeographicCompositionOfScpsPortfolioAtFairValueDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Summary of Geographic Composition of SCP's Portfolio at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995960 - Disclosure - Fair Value of Financial Instruments - Fair Value of Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsFairValueOfNotesDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Fair Value of Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>995970 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>995980 - Disclosure - Debt - Schedule of Components of Interest Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDebtScheduleOfComponentsOfInterestExpenseDetails</Role>
      <ShortName>Debt - Schedule of Components of Interest Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>995990 - Disclosure - Debt - Schedule of Component of Carrying Value of Convertible Notes and Interest Rates (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureDebtScheduleOfComponentOfCarryingValueOfConvertibleNotesAndInterestRatesDetails</Role>
      <ShortName>Debt - Schedule of Component of Carrying Value of Convertible Notes and Interest Rates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>996000 - Disclosure - Debt - Schedule of Debt Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDebtScheduleOfDebtObligationsDetails</Role>
      <ShortName>Debt - Schedule of Debt Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>996010 - Disclosure - Debt - Schedule of Debt Obligations (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureDebtScheduleOfDebtObligationsParentheticalDetails</Role>
      <ShortName>Debt - Schedule of Debt Obligations (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>996020 - Disclosure - Commitments and Contingencies - Schedule of Commitments To Fund Investments In Current Portfolio Companies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfCommitmentsToFundInvestmentsInCurrentPortfolioCompaniesDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Commitments To Fund Investments In Current Portfolio Companies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>996030 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>996040 - Disclosure - Net Assets - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureNetAssetsAdditionalInformationDetails</Role>
      <ShortName>Net Assets - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>996050 - Disclosure - Net Assets - Schedule of Shares Issued to Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureNetAssetsScheduleOfSharesIssuedToStockholdersDetails</Role>
      <ShortName>Net Assets - Schedule of Shares Issued to Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>996060 - Disclosure - Earnings Per Share - Computation of Basic and Diluted Earnings Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureEarningsPerShareComputationOfBasicAndDilutedEarningsPerCommonShareDetails</Role>
      <ShortName>Earnings Per Share - Computation of Basic and Diluted Earnings Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>996070 - Disclosure - Dividends - Summary of Dividends Declared (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/Role_DisclosureDividendsSummaryOfDividendsDeclaredDetails</Role>
      <ShortName>Dividends - Summary of Dividends Declared (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>996080 - Disclosure - Financial Highlights - Summary of Financial Highlights for One Share Common Stock Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFinancialHighlightsSummaryOfFinancialHighlightsForOneShareCommonStockOutstandingDetails</Role>
      <ShortName>Financial Highlights - Summary of Financial Highlights for One Share Common Stock Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="tslx-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>996090 - Disclosure - Financial Highlights - Summary of Financial Highlights for One Share Common Stock Outstanding (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sixthstreetspecialtylending.com/20260331/taxonomy/role/DisclosureFinancialHighlightsSummaryOfFinancialHighlightsForOneShareCommonStockOutstandingParentheticalDetails</Role>
      <ShortName>Financial Highlights - Summary of Financial Highlights for One Share Common Stock Outstanding (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="tslx-20260331.htm">tslx-20260331.htm</File>
    <File>tslx-20260331.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="4">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="4712">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cef/2025</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
