<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2022"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:pdif="http://www.pimco.com/20221231"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pdif-20221231.xsd" xlink:type="simple"/>
    <context id="DefaultContext">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510599</identifier>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="I20221231_CommonSharesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510599</identifier>
            <segment>
                <xbrldi:explicitMember dimension="cef:SecurityAxis">pdif:CommonSharesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-12-31</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="USD_shares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <dei:AmendmentFlag
      contextRef="DefaultContext"
      id="h3_866e1d27_b666_4fcd_84a2_79473ca7ceec">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="DefaultContext"
      id="h1_df243687_d565_4d59_84da_f555fe122096">0001510599</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="DefaultContext"
      id="h_1_e06cb06d-e100-cc5f-66de-d8617557d3f0">N-CSRS</dei:DocumentType>
    <dei:EntityRegistrantName
      contextRef="DefaultContext"
      id="t_2_ea3d254a_aa78_5bae_f285_2e61e6fe9953">PIMCO Dynamic Income Fund</dei:EntityRegistrantName>
    <cef:InvestmentObjectivesAndPracticesTextBlock
      contextRef="DefaultContext"
      id="t_2_51355404_856f_2b57_7801_bf42fdf6750b">&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1%; font-size: 9.5pt; font-family: arial narrow;"&gt;Investment Objective and Strategy Overview&lt;/div&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 8.5pt; font-family: arial narrow;"&gt;PIMCO Dynamic Income Fund&#x2019;s primary investment objective is to seek current income, and capital appreciation is a secondary objective.&lt;/div&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; text-indent: 0%; font-size: 9.5pt; font-family: arial narrow;"&gt;Fund Insights at NAV&lt;/div&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 8.5pt; font-family: arial narrow;"&gt;The following affected performance (on a gross basis) during the reporting period:&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: arial narrow; font-size: 8.5pt; border: 0px; width: 100%;"&gt; 
&lt;tr style="page-break-inside: avoid;"&gt; 
&lt;td style="width: 1%; vertical-align: top; text-align: left;"&gt;&#xbb;&lt;/td&gt; 
&lt;td style="width: 1%; vertical-align: top;"&gt;&#160;&lt;/td&gt; 
&lt;td style="text-align: left; vertical-align: top;"&gt;Exposure to emerging market debt contributed to absolute performance as the sector posted positive performance.&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: arial narrow; font-size: 8.5pt; border: 0px; width: 100%;"&gt; 
&lt;tr style="page-break-inside: avoid;"&gt; 
&lt;td style="width: 1%; vertical-align: top; text-align: left;"&gt;&#xbb;&lt;/td&gt; 
&lt;td style="width: 1%; vertical-align: top;"&gt;&#160;&lt;/td&gt; 
&lt;td style="text-align: left; vertical-align: top;"&gt;Exposure to holdings related to special situation investments, which include companies undergoing stress, distress, challenges, or significant transition, contributed to absolute performance as the securities posted positive returns.&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: arial narrow; font-size: 8.5pt; border: 0px; width: 100%;"&gt; 
&lt;tr style="page-break-inside: avoid;"&gt; 
&lt;td style="width: 1%; vertical-align: top; text-align: left;"&gt;&#xbb;&lt;/td&gt; 
&lt;td style="width: 1%; vertical-align: top;"&gt;&#160;&lt;/td&gt; 
&lt;td style="text-align: left; vertical-align: top;"&gt;Exposure to high yield corporate credit contributed to absolute performance as the sector posted positive performance.&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: arial narrow; font-size: 8.5pt; border: 0px; width: 100%;"&gt; 
&lt;tr style="page-break-inside: avoid;"&gt; 
&lt;td style="width: 1%; vertical-align: top; text-align: left;"&gt;&#xbb;&lt;/td&gt; 
&lt;td style="width: 1%; vertical-align: top;"&gt;&#160;&lt;/td&gt; 
&lt;td style="text-align: left; vertical-align: top;"&gt;Exposure to residential mortgage credit detracted from absolute performance as the sector posted negative performance.&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: arial narrow; font-size: 8.5pt; border: 0px; width: 100%;"&gt; 
&lt;tr style="page-break-inside: avoid;"&gt; 
&lt;td style="width: 1%; vertical-align: top; text-align: left;"&gt;&#xbb;&lt;/td&gt; 
&lt;td style="width: 1%; vertical-align: top;"&gt;&#160;&lt;/td&gt; 
&lt;td style="text-align: left; vertical-align: top;"&gt;Exposure to asset-backed securities detracted from absolute performance as the sector posted negative performance.&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: arial narrow; font-size: 8.5pt; border: 0px; width: 100%;"&gt; 
&lt;tr style="page-break-inside: avoid;"&gt; 
&lt;td style="width: 1%; vertical-align: top; text-align: left;"&gt;&#xbb;&lt;/td&gt; 
&lt;td style="width: 1%; vertical-align: top;"&gt;&#160;&lt;/td&gt; 
&lt;td style="text-align: left; vertical-align: top;"&gt;Security selection within municipal bonds detracted from performance as a select taxable municipal security posted negative&#160;returns.&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;</cef:InvestmentObjectivesAndPracticesTextBlock>
    <cef:OutstandingSecurityTitleTextBlock
      contextRef="I20221231_CommonSharesMember"
      id="t_1_54a3c171_e719_6291_77a3_118f8da56a1a">Common Shares</cef:OutstandingSecurityTitleTextBlock>
    <cef:OutstandingSecurityHeldShares
      contextRef="I20221231_CommonSharesMember"
      decimals="INF"
      id="h_1_7f2eaef9_2851_5963_e4da_a8dd7218dd04"
      unitRef="shares">243090</cef:OutstandingSecurityHeldShares>
</xbrl>
