<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:wfx="http://wfx.webfilings.com/20260923"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000826675</identifier>
        </entity>
        <period>
            <startDate>2026-09-23</startDate>
            <endDate>2026-09-23</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000826675</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-23</startDate>
            <endDate>2026-09-23</endDate>
        </period>
    </context>
    <unit id="securities">
        <measure>wfx:securities</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-17">0000826675</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-18">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp contextRef="c-1" id="f-19">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-20">424B5</ffd:SubmissnTp>
    <ffd:RegnFileNb contextRef="c-1" id="f-21">333-289004</ffd:RegnFileNb>
    <ffd:Rule457oFlg contextRef="c-2" id="f-22">true</ffd:Rule457oFlg>
    <ffd:OffsetTableNa contextRef="c-1" id="f-23">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="c-1" id="f-24">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName contextRef="c-1" id="f-1">DYNEX CAPITAL, INC.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-2">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-3">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-4">9.375% Series D Fixed-Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="c-2" id="f-5">true</ffd:Rule457oFlg>
    <ffd:AmtSctiesRegd
      contextRef="c-2"
      id="f-6"
      unitRef="securities"
      xsi:nil="true"/>
    <ffd:MaxOfferingPricPerScty
      contextRef="c-2"
      id="f-7"
      unitRef="securities"
      xsi:nil="true"/>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="2" id="f-8" unitRef="usd">138000000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="7" id="f-9" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">19057.8</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-11" unitRef="usd">138000000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-12" unitRef="usd">19057.8</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-1" decimals="0" id="f-13" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-14" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-15" unitRef="usd">19057.8</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-16">This registration fee table shall be deemed to update the &#x201c;Calculation of Registration Fee&#x201d; table in the Registration Statement in accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;) and represents deferred payment of the registration fees in connection with the Registrant&#x2019;s registration statement on Form S-3ASR (File No. 333-289004) filed on July 28, 2025 (the &#x201c;Registration Statement&#x201d;), paid with the filing of this prospectus supplement.</ffd:OfferingNote>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc xlink:href="#f-22" xlink:label="f-22" xlink:type="locator"/>
        <link:loc xlink:href="#f-5" xlink:label="f-5" xlink:type="locator"/>
        <link:footnote id="fn-1" xlink:label="fn-1" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="color:#000000;font-family:'Times New Roman',serif;font-size:9pt;font-weight:400;line-height:120%;padding-left:8.77pt">This registration fee table shall be deemed to update the &#x201c;Calculation of Registration Fee&#x201d; table in the Registration Statement in accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;) and represents deferred payment of the registration fees in connection with the Registrant&#x2019;s registration statement on Form S-3ASR (File No. 333-289004) filed on July 28, 2025 (the &#x201c;Registration Statement&#x201d;), paid with the filing of this prospectus supplement. </xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-22"
          xlink:to="fn-1"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-5"
          xlink:to="fn-1"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
