<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:_2="http://www.w3.org/1999/xhtml"
  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:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <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-07-28</startDate>
            <endDate>2026-07-28</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-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000826675</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <context id="c-4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000826675</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="securities">
        <measure>_2:securities</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <unit id="security">
        <measure>_2:security</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:CombinedProspectusTableNa contextRef="c-1" id="f-23">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">Common 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" decimals="0" id="f-6" unitRef="securities">99326438</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-7" unitRef="securities">12.63</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="2" id="f-8" unitRef="usd">1254492912</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">173245.47</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-11" unitRef="usd">1254492912</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-12" unitRef="usd">173245.47</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">38086.36</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-15" unitRef="usd">135159.11</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-16">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:9pt;font-weight:400;line-height:112%"&gt;(1)&lt;/span&gt;The registration fee is calculated in accordance with Rules 457(o) 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's registration statement on Form S-3 (File No. 333-289004) filed on July 28, 2025 (the &#x201c;Registration Statement&#x201d;), paid with the filing of this prospectus supplement. The Proposed Maximum Offering Price Per Unit is estimated solely for purposes of calculating the registration fee in accordance with Rule 457(c) under the Securities Act based on the average of the high and low prices of the Registrant&#x2019;s common stock, $0.01 par value per share (the &#x201c;Common Stock&#x201d;), as reported on the New York Stock Exchange on July 23, 2026.</ffd:OfferingNote>
    <ffd:Rule457pOffsetFlg contextRef="c-3" id="f-24">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetClmdInd contextRef="c-3" id="f-25">true</ffd:OffsetClmdInd>
    <ffd:OffsetPrrFilerNm contextRef="c-3" id="f-26">Dynex Capital, Inc.</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="c-3" id="f-27">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="c-3" id="f-28">333-289004</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt contextRef="c-3" id="f-29">2025-07-29</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt contextRef="c-3" decimals="2" id="f-30" unitRef="usd">38086.36</ffd:OffsetClmdAmt>
    <ffd:OffsetPrrSctyTp contextRef="c-3" id="f-31">Equity</ffd:OffsetPrrSctyTp>
    <ffd:OffsetPrrSctyTitl contextRef="c-3" id="f-32">Common Stock, par value $0.01 per share</ffd:OffsetPrrSctyTitl>
    <ffd:OffsetPrrNbOfUnsoldScties contextRef="c-3" decimals="0" id="f-33" unitRef="security">19326438</ffd:OffsetPrrNbOfUnsoldScties>
    <ffd:Rule457pOffsetFlg contextRef="c-4" id="f-34">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetClmdInd contextRef="c-4" id="f-35">false</ffd:OffsetClmdInd>
    <ffd:OffsetPrrFilerNm contextRef="c-4" id="f-36">Dynex Capital, Inc.</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="c-4" id="f-37">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="c-4" id="f-38">333-289004</ffd:OffsetPrrFileNb>
    <ffd:OffsetSrcFilgDt contextRef="c-4" id="f-39">2026-01-27</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt contextRef="c-4" decimals="3" id="f-40" unitRef="usd">38086.36</ffd:OffsetPrrFeeAmt>
    <ffd:TermntnCmpltnWdrwl contextRef="c-3" id="f-41">The Registrant previously registered an aggregate of 67,354,187 shares of its Common Stock, offered by means of a 424(b)(5) prospectus supplement dated January 27, 2026 (the &#x201c;Prior Prospectus Supplement&#x201d;), pursuant to the Registration Statement. In connection with the filing of the Prior Prospectus Supplement, the registration fee was $132,734.02. As of the date of this prospectus supplement, 19,326,438 shares of Common Stock remain unsold under the Prior Prospectus Supplement. Pursuant to Rule 457(p) under the Securities Act, $38,086.36 in filing fees previously paid in connection with the filing of the Prior Prospectus Supplement and associated with such unsold securities is being applied to partially offset the filing fee payable in connection with this prospectus supplement. The offering pursuant to the Prior Prospectus Supplement has terminated.</ffd:TermntnCmpltnWdrwl>
    <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">The registration fee is calculated in accordance with Rules 457(o) 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's registration statement on Form S-3 (File No. 333-289004) filed on July 28, 2025 (the &#x201c;Registration Statement&#x201d;), paid with the filing of this prospectus supplement. The Proposed Maximum Offering Price Per Unit is estimated solely for purposes of calculating the registration fee in accordance with Rule 457(c) under the Securities Act based on the average of the high and low prices of the Registrant&#x2019;s common stock, $0.01 par value per share (the &#x201c;Common Stock&#x201d;), as reported on the New York Stock Exchange on July 23, 2026.</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>
