Exhibit 5.1

 

LOGO

Calise Y. Cheng

+1 650 843 5172

ccheng@cooley.com

August 14, 2020

Sunrun Inc.

225 Bush Street, Suite 1400

San Francisco, California 94104

Ladies and Gentlemen:

We have represented Sunrun Inc., a Delaware corporation (the “Company”), in connection with a registration statement on Form S-4 (the “Registration Statement”), filed by the Company with the Securities and Exchange Commission (the “Commission”) under the Securities Act of 1933, as amended (the “Securities Act”). The Registration Statement provides for the registration by the Company of 90,329,469 shares of the Company’s common stock, par value $0.0001 per share (the “Shares”), to be issued upon consummation of the merger (the “Merger”) of Viking Merger Sub, Inc., a Delaware corporation and a wholly owned subsidiary of the Company (“Merger Sub”), with Vivint Solar, Inc., a Delaware corporation (“Vivint Solar”), pursuant to that certain Agreement and Plan of Merger, dated July 6, 2020, by and among the Company, Merger Sub, and Vivint Solar (the “Merger Agreement”).

In connection with this opinion, we have examined and relied upon the Registration Statement in the form to be filed with the Commission on the date hereof, the Merger Agreement, the Company’s Certificate of Incorporation and Bylaws, each as currently in effect, and such other documents, records, certificates, memoranda and other instruments as in our judgment are necessary or appropriate to enable us to render the opinion expressed below. We have assumed the genuineness and authenticity of all documents submitted to us as originals, the conformity to originals of all documents submitted to us as copies thereof, the accuracy, completeness and authenticity of certificates of public officials and the due authorization, execution and delivery of all documents by all persons other than the Company where due authorization, execution and delivery are prerequisites to the effectiveness thereof. As to certain factual matters, we have relied upon a certificate of an officer of the Company and have not sought independently to verify such matters.

Our opinion is expressed only with respect to the General Corporation Law of the State of Delaware. We express no opinion to the extent that any other laws are applicable to the subject matter hereof and express no opinion and provide no assurance as to compliance with any federal or state securities law, rule or regulation.

In rendering this opinion, we have assumed that, before the issuance of the Shares, the conditions to consummating the transactions contemplated by the Merger Agreement will have been satisfied or duly waived, that all approvals for the issuance of the Shares referred to in the Registration Statement have become effective and that no shares of capital stock of the Company are issued or commitments to issue capital stock are made by the Company prior to consummation of the Merger, except as expressly permitted by the Merger Agreement.

On the basis of the foregoing, and in reliance thereon, we are of the opinion that the Shares, when issued in the manner contemplated by, and upon the terms and conditions set forth in the Registration Statement and the Merger Agreement, will be validly issued, fully paid and nonassessable.

 

Cooley LLP 3175 Hanover Street Palo Alto, CA 94304-1130

t: (650) 843-5000 f: (650) 849-7400 cooley.com


LOGO

Sunrun Inc.

August 14, 2020

Page Two

 

We consent to the reference to our firm under the caption “Legal Matters” in the proxy statement/prospectus included in the Registration Statement and to the filing of this opinion as an exhibit to the Registration Statement. In giving such consent, we do not thereby admit that we are in the category of persons whose consent is required under Section 7 of the Securities Act and the rules and regulations of the Commission promulgated thereunder. This opinion speaks only as of its date, and we undertake no (and hereby disclaim any) obligation to update this opinion.

Sincerely,

 

Cooley LLP

By:

 

/s/ Calise Y. Cheng

 

     Calise Y. Cheng

 

Cooley LLP 3175 Hanover Street Palo Alto, CA 94304-1130

t: (650) 843-5000 f: (650) 849-7400 cooley.com