<?xml version="1.0" encoding="utf-8"?>
<FilingSummary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>2.4.1.9</Version>
  <ProcessingTime />
  <ReportFormat>Html</ReportFormat>
  <ContextCount>145</ContextCount>
  <ElementCount>244</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>56</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
    </Report>
    <Report>
      <IsDefault>true</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Shareholders' Equity Statement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ConsolidatedStatementsOfShareholdersEquityStatement</Role>
      <ShortName>Consolidated Statements of Shareholders' Equity Statement</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006000 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Mortgage Backed Securities Mortgage backed securities (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dynexcapital.com/role/MortgageBackedSecuritiesMortgageBackedSecuritiesNotes</Role>
      <ShortName>Mortgage Backed Securities Mortgage backed securities (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Repurchase Agreements (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dynexcapital.com/role/RepurchaseAgreementsNotes</Role>
      <ShortName>Repurchase Agreements (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/Derivatives</Role>
      <ShortName>Derivatives</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2120100 - Disclosure - Fair Value of Financial Instruments (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dynexcapital.com/role/FairValueOfFinancialInstrumentsNotes</Role>
      <ShortName>Fair Value of Financial Instruments (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2125100 - Disclosure - Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ShareholdersEquity</Role>
      <ShortName>Shareholders' Equity</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2129100 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Mortgage Backed Securities Mortgage backed securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/MortgageBackedSecuritiesMortgageBackedSecuritiesTables</Role>
      <ShortName>Mortgage Backed Securities Mortgage backed securities (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Repurchase Agreements Repurchase Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/RepurchaseAgreementsRepurchaseAgreementsTables</Role>
      <ShortName>Repurchase Agreements Repurchase Agreements (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2316301 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/DerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2319300 - Schedule - Offsetting Assets and Liabilities Offsetting Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/OffsettingAssetsAndLiabilitiesOffsettingAssetsTables</Role>
      <ShortName>Offsetting Assets and Liabilities Offsetting Assets (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2319301 - Schedule - Offsetting Assets and Liabilities Offsetting Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/OffsettingAssetsAndLiabilitiesOffsettingLiabilitiesTables</Role>
      <ShortName>Offsetting Assets and Liabilities Offsetting Liabilities (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2320301 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/FairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2325301 - Disclosure - Shareholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ShareholdersEquityTables</Role>
      <ShortName>Shareholders' Equity (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Mortgage Backed Securities Mortgage backed securities designated as AFS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/MortgageBackedSecuritiesMortgageBackedSecuritiesDesignatedAsAfsDetails</Role>
      <ShortName>Mortgage Backed Securities Mortgage backed securities designated as AFS (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Repurchase Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/RepurchaseAgreementsDetails</Role>
      <ShortName>Repurchase Agreements (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2412403 - Disclosure - Repurchase Agreements Repurchase Agreements, Term to Original Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/RepurchaseAgreementsRepurchaseAgreementsTermToOriginalMaturityDetails</Role>
      <ShortName>Repurchase Agreements Repurchase Agreements, Term to Original Maturity (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2412404 - Disclosure - Repurchase Agreements Repurchase Agreements, Counterparty Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/RepurchaseAgreementsRepurchaseAgreementsCounterpartyInformationDetails</Role>
      <ShortName>Repurchase Agreements Repurchase Agreements, Counterparty Information (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2416402 - Disclosure - Derivatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/DerivativesDetails</Role>
      <ShortName>Derivatives (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2416403 - Disclosure - Derivatives Derivative Effect on Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/DerivativesDerivativeEffectOnAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Derivatives Derivative Effect on Accumulated Other Comprehensive Income (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2419402 - Schedule - Offsetting Assets and Liabilities Offsetting Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/OffsettingAssetsAndLiabilitiesOffsettingAssetsDetails</Role>
      <ShortName>Offsetting Assets and Liabilities Offsetting Assets (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2419403 - Schedule - Offsetting Assets and Liabilities Offsettting Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/OffsettingAssetsAndLiabilitiesOffsetttingLiabilitiesDetails</Role>
      <ShortName>Offsetting Assets and Liabilities Offsettting Liabilities (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2420402 - Disclosure - Fair Value of Financial Instruments Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/FairValueOfFinancialInstrumentsFairValueOnRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments Fair Value on a Recurring Basis (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2420403 - Disclosure - Fair Value of Financial Instruments Significant Unobservable Inputs Level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/FairValueOfFinancialInstrumentsSignificantUnobservableInputsLevel3Details</Role>
      <ShortName>Fair Value of Financial Instruments Significant Unobservable Inputs Level 3 (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2420404 - Disclosure - Fair Value of Financial Instruments Level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/FairValueOfFinancialInstrumentsLevel3Details</Role>
      <ShortName>Fair Value of Financial Instruments Level 3 (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2420405 - Disclosure - Fair Value of Financial Instruments Recorded basis and Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/FairValueOfFinancialInstrumentsRecordedBasisAndFairValueDetails</Role>
      <ShortName>Fair Value of Financial Instruments Recorded basis and Fair Value (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2425402 - Disclosure - Shareholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ShareholdersEquityDetails</Role>
      <ShortName>Shareholders' Equity (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2425403 - Disclosure - Shareholders' Equity Share-based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/ShareholdersEquityShareBasedCompensationDetails</Role>
      <ShortName>Shareholders' Equity Share-based Compensation (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2429401 - Disclosure - Subsequent Events Nonrecognized Subsequent Event (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dynexcapital.com/role/SubsequentEventsNonrecognizedSubsequentEventDetails</Role>
      <ShortName>Subsequent Events Nonrecognized Subsequent Event (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">Process Flow-Through: 1001000 - Statement - Consolidated Balance Sheets</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Mar. 31, 2014'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2013'</Log>
    <Log type="Info">Process Flow-Through: 1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Mar. 31, 2014'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2013'</Log>
    <Log type="Info">Process Flow-Through: 1002000 - Statement - Consolidated Statements of Comprehensive Income</Log>
    <Log type="Info">Process Flow-Through: 1006000 - Statement - Consolidated Statements of Cash Flows</Log>
  </Logs>
  <InputFiles>
    <File>dx-20150331.xml</File>
    <File>dx-20150331.xsd</File>
    <File>dx-20150331_cal.xml</File>
    <File>dx-20150331_def.xml</File>
    <File>dx-20150331_lab.xml</File>
    <File>dx-20150331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles />
  <BaseTaxonomies />
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
