<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ecd="http://xbrl.sec.gov/ecd/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="oxsq-20251231.xsd" xlink:type="simple"/>
    <context id="cref_1281602174">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001259429</identifier>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey contextRef="cref_1281602174" id="ixv-2519">0001259429</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="cref_1281602174" id="ixv-2520">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="cref_1281602174" id="fc_688659038">DEF 14A</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="cref_1281602174" id="ixv-2531">Oxford Square Capital Corp.</dei:EntityRegistrantName>
    <ecd:InsiderTrdPoliciesProcAdoptedFlag contextRef="cref_1281602174" id="ixv-2532">true</ecd:InsiderTrdPoliciesProcAdoptedFlag>
    <ecd:AwardTmgMethodTextBlock contextRef="cref_1281602174" id="ixv-1682">&lt;div&gt;&lt;div style="margin:0;padding:0;border-width:0;border-width:0pt;"&gt;&lt;p style="margin:0;padding:0;border-width:0;font-family:Times New Roman PS Std, serif;font-size:10pt;font-style:normal;font-variant:normal;font-weight:bold;margin-bottom:0;margin-left:0;margin-right:0;margin-top:12pt;orphans:99;page-break-after:avoid;page-break-before:auto;text-align:justify;text-indent:0;widows:1;margin-top:12pt;"&gt;&lt;span id="T99505" style="display: inline-block;"&gt;&lt;/span&gt;&lt;span style="font-style:normal;font-weight:bold;"&gt;&lt;/span&gt;&lt;span style="font-style:normal;font-weight:bold;"&gt;Timing of Grants of Options &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0;border-width:0;font-family:Times New Roman PS Std, serif;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-left:0;margin-right:0;margin-top:8pt;orphans:3;page-break-after:auto;page-break-before:auto;text-align:justify;text-indent:24pt;widows:3;margin-top:8pt;"&gt;The Company did not grant awards of stock options, stock appreciation rights or similar option&lt;span&gt;-like&lt;/span&gt; instruments during the fiscal year ended December&#160;31, 2025. Accordingly, we have nothing to report under Item&#160;402(x)&#160;of Regulation&#160;S&lt;span&gt;-K&lt;/span&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</ecd:AwardTmgMethodTextBlock>
</xbrl>
