Form: S-3

Registration statement for specified transactions by certain issuers

April 16, 2014

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

Dynex Capital, Inc.

Glen Allen, Virginia

We hereby consent to the incorporation by reference in this Registration Statement and the Prospectus constituting a part of this Registration Statement of our reports dated March 4, 2014, relating to the consolidated financial statements, and the effectiveness of Dynex Capital, Inc.’s internal control over financial reporting appearing in the Company’s Annual Report on Form 10-K for the year ended December 31, 2013.

We also consent to the reference to us under the caption “Experts” in the Prospectus.

/s/  BDO USA, LLP

Richmond, Virginia

April 16, 2014