Exhibit 5.1

April 22, 2013

Hannon Armstrong Sustainable Infrastructure Capital Inc.

1906 Towne Centre Blvd

Suite 370

Annapolis, MD 21401

(410)571-9860

Ladies and Gentlemen:

We have acted as counsel to Hannon Armstrong Sustainable Infrastructure Capital, Inc. (the “Company”) in connection with the offer and sale by the Company of 1,214,286 shares (the “Shares”) of its common stock, par value $0.01 per share (the “Common Stock”), pursuant to its 2013 Equity Incentive Plan (the “Plan”). The Common Stock is being sold pursuant to the Company’s Registration Statement on Form S-8 (the “Registration Statement”) under the Securities Act of 1933, as amended (the “Securities Act”).

In rendering the opinion expressed below, we have examined and relied upon originals or copies, certified or otherwise identified to our satisfaction, of such corporate records, documents, certificates and other instruments as in our judgment are necessary or appropriate. As to factual matters relevant to the opinion set forth below, we have, with your permission, relied upon certificates of officers of the Company and public officials.

Based on the foregoing, and such other examination of law as we have deemed necessary, we are of the opinion that the Shares have been duly and validly authorized and, when issued and sold in the manner contemplated by the Registration Statement and the Plan, will be legally issued, fully paid and non assessable.

We consent to the filing of this opinion as an exhibit to the Registration Statement. In giving this consent, we do not concede that we are within the category of persons whose consent is required under Section 7 of the Securities Act or the rules and regulations of the Securities and Exchange Commission thereunder.

Very truly yours,

/s/ Clifford Chance US LLP