<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2026"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="gsbd-20260929.xsd" xlink:type="simple"/>
    <context id="P09_29_2026To09_29_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001572694</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey contextRef="P09_29_2026To09_29_2026" id="ixv-52">0001572694</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="P09_29_2026To09_29_2026" id="ixv-53">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="P09_29_2026To09_29_2026" id="hidden171978674">424B2</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="P09_29_2026To09_29_2026" id="ixv-64">GOLDMAN SACHS BDC, INC.</dei:EntityRegistrantName>
    <cef:InvestmentObjectivesAndPracticesTextBlock contextRef="P09_29_2026To09_29_2026" id="ixv-65">GS BDC&#x2019;s investment objective is to generate current income and, to a lesser extent, capital appreciation primarily through direct originations of secured debt, including first lien, unitranche, including last out portions of such loans, and second lien debt, and unsecured debt, including mezzanine debt, as well as through select equity investments.</cef:InvestmentObjectivesAndPracticesTextBlock>
</xbrl>
