<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>1512</ContextCount>
  <ElementCount>560</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>500</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>001 - Statement - Consolidated Statements of Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedBalanceSheet</Role>
      <ShortName>Consolidated Statements of Assets and Liabilities</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>002 - Statement - Consolidated Statements of Assets and Liabilities (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedBalanceSheet_Parentheticals</Role>
      <ShortName>Consolidated Statements of Assets and Liabilities (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>003 - Statement - Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedIncomeStatement</Role>
      <ShortName>Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>004 - Statement - Consolidated Statements of Operations (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedIncomeStatement_Parentheticals</Role>
      <ShortName>Consolidated Statements of Operations (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>005 - Statement - Consolidated Statements of Changes in Net Assets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedCashFlow</Role>
      <ShortName>Consolidated Statements of Changes in Net Assets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedCashFlow0</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>007 - Statement - Consolidated Statements of Cash Flows (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedCashFlow_Parentheticals</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>008 - Statement - Consolidated Schedule of Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedScheduleofInvestmentsTable</Role>
      <ShortName>Consolidated Schedule of Investments</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>009 - Statement - Consolidated Schedule of Investments (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ConsolidatedScheduleofInvestmentsTable_Parentheticals</Role>
      <ShortName>Consolidated Schedule of Investments (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>010 - Statement - Schedule of cash and cash equivalents and cash and cash equivalents</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofcashandcashequivalentsandcashandcashequivalentsTable</Role>
      <ShortName>Schedule of cash and cash equivalents and cash and cash equivalents</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>011 - Statement - Schedule of transactions related to affiliates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleoftransactionsrelatedtoaffiliatesTable</Role>
      <ShortName>Schedule of transactions related to affiliates</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="f10k2023_saratoga.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="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995471 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/Organization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995472 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995473 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995474 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995475 - Disclosure - Agreements and Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/AgreementsandRelatedPartyTransactions</Role>
      <ShortName>Agreements and Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995476 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/Borrowings</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995477 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995478 - Disclosure - Directors Fees</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/DirectorsFees</Role>
      <ShortName>Directors Fees</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995479 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995480 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995481 - Disclosure - Dividend</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/Dividend</Role>
      <ShortName>Dividend</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995482 - Disclosure - Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/FinancialHighlights</Role>
      <ShortName>Financial Highlights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995483 - Disclosure - Selected Quarterly Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SelectedQuarterlyDataUnaudited</Role>
      <ShortName>Selected Quarterly Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995484 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995485 - Disclosure - Accounting Policies, by Policy (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/AccountingPoliciesByPolicy</Role>
      <ShortName>Accounting Policies, by Policy (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995486 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995487 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/Investments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995488 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxes</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995489 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/BorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/Borrowings</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995490 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingencies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995491 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/StockholdersEquity</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995492 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/EarningsPerShare</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995493 - Disclosure - Dividend (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/DividendTables</Role>
      <ShortName>Dividend (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/Dividend</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995494 - Disclosure - Financial Highlights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/FinancialHighlightsTables</Role>
      <ShortName>Financial Highlights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/FinancialHighlights</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995495 - Disclosure - Selected Quarterly Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SelectedQuarterlyDataUnauditedTables</Role>
      <ShortName>Selected Quarterly Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SelectedQuarterlyDataUnaudited</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995496 - Disclosure - Organization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/OrganizationDetails</Role>
      <ShortName>Organization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/Organization</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995497 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995498 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of reconciliation of cash and cash equivalents and cash and cash equivalents</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofreconciliationofcashandcashequivalentsandcashandcashequivalentsTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of reconciliation of cash and cash equivalents and cash and cash equivalents</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995499 - Disclosure - Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/InvestmentsDetails</Role>
      <ShortName>Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/InvestmentsTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995500 - Disclosure - Investments (Details) - Schedule of fair value measurements of investments, by major class</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleoffairvaluemeasurementsofinvestmentsbymajorclassTable</Role>
      <ShortName>Investments (Details) - Schedule of fair value measurements of investments, by major class</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/InvestmentsTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995501 - Disclosure - Investments (Details) - Schedule of reconciliation of beginning and ending balances for investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofreconciliationofbeginningandendingbalancesforinvestmentsTable</Role>
      <ShortName>Investments (Details) - Schedule of reconciliation of beginning and ending balances for investments</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/InvestmentsTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995502 - Disclosure - Investments (Details) - Schedule of valuation techniques and significant unobservable inputs used in recurring Level 3 fair value measurements of assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofvaluationtechniquesandsignificantunobservableinputsusedinrecurringLevel3fairvaluemeasurementsofassetsTable</Role>
      <ShortName>Investments (Details) - Schedule of valuation techniques and significant unobservable inputs used in recurring Level 3 fair value measurements of assets</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/InvestmentsTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995503 - Disclosure - Investments (Details) - Schedule of investments at amortized cost and fair value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofinvestmentsatamortizedcostandfairvalueTable</Role>
      <ShortName>Investments (Details) - Schedule of investments at amortized cost and fair value</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/InvestmentsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995504 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995505 - Disclosure - Income Taxes (Details) - Schedule of U.S. federal excise and capital gains tax and worthless securities losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofUSfederalexciseandcapitalgainstaxandworthlesssecuritieslossesTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of U.S. federal excise and capital gains tax and worthless securities losses</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995506 - Disclosure - Income Taxes (Details) - Schedule of tax character of distributions paid</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleoftaxcharacterofdistributionspaidTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of tax character of distributions paid</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995507 - Disclosure - Income Taxes (Details) - Schedule of components of accumulated losses on a tax basis</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofcomponentsofaccumulatedlossesonataxbasisTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of components of accumulated losses on a tax basis</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995508 - Disclosure - Income Taxes (Details) - Schedule of deferred tax assets and liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofdeferredtaxassetsandliabilitiesTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of deferred tax assets and liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995509 - Disclosure - Income Taxes (Details) - Schedule of federal and state income tax provisions benefit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleoffederalandstateincometaxprovisionsbenefitTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of federal and state income tax provisions benefit</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/IncomeTaxesTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995510 - Disclosure - Agreements and Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/AgreementsandRelatedPartyTransactionsDetails</Role>
      <ShortName>Agreements and Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/AgreementsandRelatedPartyTransactions</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995511 - Disclosure - Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/BorrowingsDetails</Role>
      <ShortName>Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/BorrowingsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995512 - Disclosure - Borrowings (Details) - Schedule of credit facility</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofcreditfacilityTable</Role>
      <ShortName>Borrowings (Details) - Schedule of credit facility</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/BorrowingsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995513 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995514 - Disclosure - Commitments and Contingencies (Details) - Schedule of payment obligations for repayment of debt and other contractual obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofpaymentobligationsforrepaymentofdebtandothercontractualobligationsTable</Role>
      <ShortName>Commitments and Contingencies (Details) - Schedule of payment obligations for repayment of debt and other contractual obligations</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995515 - Disclosure - Commitments and Contingencies (Details) - Schedule of unfunded commitments outstanding</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofunfundedcommitmentsoutstandingTable</Role>
      <ShortName>Commitments and Contingencies (Details) - Schedule of unfunded commitments outstanding</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995516 - Disclosure - Directors Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/DirectorsFeesDetails</Role>
      <ShortName>Directors Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/DirectorsFees</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995517 - Disclosure - Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/StockholdersEquityDetails</Role>
      <ShortName>Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/StockholdersEquityTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995518 - Disclosure - Stockholders' Equity (Details) - Schedule of reconciliation of the changes in each significant caption of stockholders??? equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofreconciliationofthechangesineachsignificantcaptionofstockholdersequityTable</Role>
      <ShortName>Stockholders' Equity (Details) - Schedule of reconciliation of the changes in each significant caption of stockholders??? equity</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/StockholdersEquityTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995519 - Disclosure - Earnings Per Share (Details) - Schedule of weighted average basic and diluted net increase (decrease) in net assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofweightedaveragebasicanddilutednetincreasedecreaseinnetassetsTable</Role>
      <ShortName>Earnings Per Share (Details) - Schedule of weighted average basic and diluted net increase (decrease) in net assets</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/EarningsPerShareTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>995520 - Disclosure - Dividend (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/DividendDetails</Role>
      <ShortName>Dividend (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/DividendTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>995521 - Disclosure - Dividend (Details) - Schedule of payment date</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofpaymentdateTable</Role>
      <ShortName>Dividend (Details) - Schedule of payment date</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/DividendTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>995522 - Disclosure - Dividend (Details) - Schedule of dividends declared</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofdividendsdeclaredTable</Role>
      <ShortName>Dividend (Details) - Schedule of dividends declared</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/DividendTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>995523 - Disclosure - Financial Highlights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/FinancialHighlightsDetails</Role>
      <ShortName>Financial Highlights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/FinancialHighlightsTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>995524 - Disclosure - Financial Highlights (Details) - Schedule of financial highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleoffinancialhighlightsTable</Role>
      <ShortName>Financial Highlights (Details) - Schedule of financial highlights</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/FinancialHighlightsTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>995525 - Disclosure -  Selected Quarterly Data (Unaudited) (Details) - Schedule of selected quarterly data</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/ScheduleofselectedquarterlydataTable</Role>
      <ShortName>Selected Quarterly Data (Unaudited) (Details) - Schedule of selected quarterly data</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SelectedQuarterlyDataUnauditedTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="f10k2023_saratoga.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>995526 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.saratogainvestmentcorp.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.saratogainvestmentcorp.com/role/SubsequentEvents</ParentRole>
      <Position>69</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept LatestNav in cef/2022 used in 9 facts was deprecated in cef/2023 as of 2023-01-31 and should not be used. f10k2023_saratoga.htm 6945, 47176</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept SecurityAxis in cef/2022 used in 4 facts was deprecated in cef/2023 as of 2023-01-31 and should not be used. f10k2023_saratoga.htm 7955</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentsInAndAdvancesToAffiliatesBalancePrincipalAmount in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 16197</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentsInAndAdvancesToAffiliatesAtFairValue in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 16198, 16199</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept DueFromAffiliateCurrent in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 16223, 47004</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept DueToAffiliateCurrent in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 16378, 16379</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentCompanyNetAssetsFromOperationsIncreaseDecrease in us-gaap/2022 used in 21 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 16705, 16706, 16707, 16794, 16795, 16796, 27361, 27362, 27363, 28377, 28378, 28379, 28380, 28446, 28447, 28448, 28449, 28515, 28516, 28517, 28518</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentCompanyNetAssetsPeriodIncreaseDecrease in us-gaap/2022 used in 3 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 16859, 16860, 16861</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentOwnedRestrictedAcquisitionDate in us-gaap/2022 used in 199 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 17275, 17301, 17350, 17375, 17400, 17449, 17499, 17577, 17586, 17595, 17604, 17622, 17631, 17640, 17649, 17667, 17676, 17685, 17694, 17703, 17721, 17765, 17774, 17783, 17792, 17801, 17819, 17837, 17846, 17864, 17873, 17882, 17924, 17942, 17951, 17969, 17978, 17996, 18005, 18014, 18023, 18032, 18041, 18059, 18110, 18119, 18128, 18137, 18146, 18155, 18173, 18182, 18236, 18245, 18263, 18272, 18290, 18308, 18317, 18392, 18440, 18489, 18513, 18537, 18586, 18610, 18634, 18715, 18733, 18742, 18760, 18769, 18778, 18796, 18805, 18823, 18832, 18877, 18886, 18904, 18913, 18922, 18931, 18949, 18958, 18976, 18994, 19003, 19012, 19083, 19092, 19101, 19119, 19128, 19137, 19146, 19155, 19263, 19287, 19312, 19360, 19384, 19408, 19457, 19482, 20096, 20114, 20132, 20150, 20159, 20177, 20187, 20206, 20216, 20225, 20234, 20243, 20263, 20272, 20282, 20292, 20342, 20351, 20370, 20388, 20397, 20415, 20424, 20433, 20451, 20460, 20478, 20497, 20506, 20515, 20565, 20583, 20592, 20601, 20610, 20619, 20629, 20647, 20656, 20715, 20724, 20733, 20742, 20751, 20760, 20778, 20787, 20805, 20814, 20872, 20881, 20899, 20918, 20936, 20945, 20964, 20973, 20991, 21000, 21018, 21076, 21085, 21103, 21121, 21130, 21139, 21157, 21166, 21175, 21184, 21243, 21252, 21261, 21270, 21288, 21297, 21315, 21333, 21351, 21432, 21441, 21450, 21468, 21477, 21486, 21495, 21507, 21586, 21595, 21605, 21623, 21632, 21650, 21661</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept LondonInterbankOfferedRateLIBORMember in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 22131</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentCompanyDistributableEarnings in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 24019, 24020</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 24497, 24517</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept DueFromRelatedPartiesNoncurrent in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 24499, 24519</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentsInAndAdvancesToAffiliatesBalanceShares in us-gaap/2022 used in 1 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. f10k2023_saratoga.htm 26326</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 11 fact(s) appearing in ix:hidden were eligible for transformation: sar:DiscountOnDebtIssuancePercentage, us-gaap:EarningsPerShareDiluted, us-gaap:InvestmentMaturityDate, us-gaap:WeightedAverageNumberDilutedSharesOutstandingAdjustment -  f10k2023_saratoga.htm 47026, 47027, 47028, 47029, 47030, 47031, 47035, 47036, 47038, 47039, 47085</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentCompanyDeferredIncomeTaxUnrealizedAppreciation has a value of -694908 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentCompanyDeferredIncomeTaxUnrealizedAppreciation fact are: Context: c29, Unit: usd, Rule Element Id: 6942. f10k2023_saratoga.htm 16691</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -94504 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: c64, Unit: usd, Rule Element Id: 1442. f10k2023_saratoga.htm 17597</Log>
    <Log type="Warning">[DQC.US.0057.7494] One of the following elements Cash, CashAndCashEquivalentsAtCarryingValue, CashAndCashEquivalentsAtCarryingValueIncludingDiscontinuedOperations, CashAndDueFromBanks, CashCashEquivalentsAndFederalFundsSold, CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents, CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations, CashEquivalentsAtCarryingValue should appear as the opening and closing balance in the cash flow statement using the group http://www.saratogainvestmentcorp.com/role/ConsolidatedCashFlow. Instead the following balance items have been used in this statement StockholdersEquity. Depending if ASU-2016-18 has been adopted at least one of the opening and closing balance items listed must be used in the cash flow statement. - https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd 17010 - https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd 17010</Log>
    <Log type="Warning">[DQC.US.0057.9728] One of the following elements CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents, CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations should appear as the opening and closing balance in the cash flow statement using the group http://www.saratogainvestmentcorp.com/role/ConsolidatedCashFlow. Instead the following balance items have been used in this statement StockholdersEquity. Due to the implementaion of ASU-2016-18 at least one of the opening and closing balance items listed must be used in the cash flow statement.  - https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd 17010 - https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd 17010</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-K" original="f10k2023_saratoga.htm">f10k2023_saratoga.htm</File>
    <File>f10k2023ex21_saratoga.htm</File>
    <File>f10k2023ex23-1_saratoga.htm</File>
    <File>f10k2023ex23-2_saratoga.htm</File>
    <File>f10k2023ex31-1_saratoga.htm</File>
    <File>f10k2023ex31-2_saratoga.htm</File>
    <File>f10k2023ex32-1_saratoga.htm</File>
    <File>f10k2023ex32-2_saratoga.htm</File>
    <File>f10k2023ex4-24_saratoga.htm</File>
    <File>sar-20230228.xsd</File>
    <File>sar-20230228_cal.xml</File>
    <File>sar-20230228_def.xml</File>
    <File>sar-20230228_lab.xml</File>
    <File>sar-20230228_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>image_001.jpg</File>
    <File>image_002.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="141">http://fasb.org/us-gaap-sup/2022q3</BaseTaxonomy>
    <BaseTaxonomy items="3113">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="75">http://xbrl.sec.gov/cef/2022</BaseTaxonomy>
    <BaseTaxonomy items="39">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
