<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>108</ContextCount>
  <ElementCount>54</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>57</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="gdl_ncsr.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.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>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>gdl-20231231.xsd</File>
    <File>gdl-20231231_def.xml</File>
    <File>gdl-20231231_lab.xml</File>
    <File>gdl-20231231_pre.xml</File>
    <File doctype="N-CSR" isDefinitelyNotFs="true" isNcsr="true" isUsgaap="true" original="gdl_ncsr.htm">gdl_ncsr.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gdl_001.jpg</File>
    <File>gdl_002.jpg</File>
    <File>gdl_003.jpg</File>
    <File>gdl_004.jpg</File>
    <File>gdl_005.jpg</File>
    <File>gdl_back.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="23">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="226">http://xbrl.sec.gov/cef/2023</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
